nsBuffer does not initialize mObserver

VERIFIED FIXED in M9

Status

()

P1
normal
VERIFIED FIXED
20 years ago
2 years ago

People

(Reporter: rginda, Assigned: scc-obsolete)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

20 years ago
xpcom/ds/nsBuffer.cpp does not initialize the mObserver member in the
constructor.

creating/destroying an nsBuffer without calling Init() causes a crash.


Index: nsBuffer.cpp
===================================================================
RCS file: /cvsroot/mozilla/xpcom/ds/nsBuffer.cpp,v
retrieving revision 3.17
diff -u -r3.17 nsBuffer.cpp
--- nsBuffer.cpp        1999/07/15 01:38:08     3.17
+++ nsBuffer.cpp        1999/07/31 06:34:53
@@ -29,6 +29,7 @@
     : mGrowBySize(0),
       mMaxSize(0),
       mAllocator(nsnull),
+      mObserver(nsnull),
       mBufferSize(0),
       mReadSegment(nsnull),
       mReadCursor(0),

Updated

20 years ago
Assignee: dp → dougt

Updated

20 years ago
Assignee: dougt → scc
(Assignee)

Updated

20 years ago
Status: NEW → ASSIGNED
(Assignee)

Updated

20 years ago
Target Milestone: M9
(Assignee)

Updated

20 years ago
Priority: P3 → P1
(Assignee)

Comment 1

20 years ago
this is a crasher, it needs to be a high priority
(Assignee)

Updated

20 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 20 years ago
Resolution: --- → FIXED
(Reporter)

Updated

20 years ago
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.