[Webkit-unassigned] [Bug 15715] Nested XSL stylesheets can produce memory corruption

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 6 07:48:39 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=15715





------- Comment #13 from darin at apple.com  2007-11-06 07:48 PDT -------
(From update of attachment 16995)
It seems unfortunate that we need to create a UTF-8 copy of the entire sheet
just so libxml2 can parse it; we went out of our way to avoid this in the past.

Is there a way to avoid this part of the change?

What guarantees that the parent style sheet will outlast the child one? Can
m_parentStyleSheet become a stale pointer?

These are reference-counted objects, so a typical approach would be to use a
RefPtr rather than a raw pointer. Unless there's a guarantee that the parent
style sheet outlives this one.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list