Closed Bug 10993 Opened 26 years ago Closed 26 years ago

nsBuffer does not initialize mObserver

Categories

(Core :: XPCOM, defect, P1)

x86
Linux
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: rginda, Assigned: scc-obsolete)

Details

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),
Assignee: dp → dougt
Assignee: dougt → scc
Status: NEW → ASSIGNED
Target Milestone: M9
Priority: P3 → P1
this is a crasher, it needs to be a high priority
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.