If you think a bug might affect users in the 57 release, please set the correct tracking and status flags for Release Management.

nsBuffer does not initialize mObserver

VERIFIED FIXED in M9

Status

()

Core
XPCOM
P1
normal
VERIFIED FIXED
18 years ago
8 months ago

People

(Reporter: rginda, Assigned: Scott Collins)

Tracking

Trunk
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

18 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

18 years ago
Assignee: dp → dougt

Updated

18 years ago
Assignee: dougt → scc
(Assignee)

Updated

18 years ago
Status: NEW → ASSIGNED
(Assignee)

Updated

18 years ago
Target Milestone: M9
(Assignee)

Updated

18 years ago
Priority: P3 → P1
(Assignee)

Comment 1

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

Updated

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

Updated

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