[Webkit-unassigned] [Bug 31089] New: Uninitialized member m_createdByParser in WebCore::ProcessingInstruction
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Nov 3 15:19:18 PST 2009
https://bugs.webkit.org/show_bug.cgi?id=31089
Summary: Uninitialized member m_createdByParser in
WebCore::ProcessingInstruction
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebCore Misc.
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: dank at kegel.com
Caught by the chromium valgrind layout bot. Valgrind complains
Warning: set address range perms: large range [0x3901d000, 0x5901d000)
(defined)
Conditional jump or move depends on uninitialised value(s)
at WebCore::Document::addStyleSheetCandidateNode(WebCore::Node*, bool)
(Document.cpp:2411)
by WebCore::ProcessingInstruction::insertedIntoDocument()
(ProcessingInstruction.cpp:262)
by WebCore::dispatchChildInsertionEvents(WebCore::Node*)
(ContainerNode.cpp:876)
...
Uninitialised value was created by a heap allocation
at 0x4C2312C: malloc (vg_replace_malloc.c:195)
by 0x13B3CDA: WTF::fastMalloc(unsigned long) (FastMalloc.cpp:233)
by 0x8B6AEE: WTF::FastAllocBase::operator new(unsigned long)
(FastAllocBase.h:96)
by 0xC1528A: WebCore::ProcessingInstruction::create(WebCore::Document*,
WebCore::String const&, WebCore::String const&) (ProcessingInstruction.cpp:53)
Looks like somebody forgot to initialize m_createdByParser. The following
patch seems to resolve the problem:
--- WebCore/dom/ProcessingInstruction.cpp (revision 50454)
+++ WebCore/dom/ProcessingInstruction.cpp (working copy)
@@ -42,6 +42,7 @@
, m_cachedSheet(0)
, m_loading(false)
, m_alternate(false)
+ , m_createdByParser(false)
#if ENABLE(XSLT)
, m_isXSL(false)
#endif
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list