Closed
Bug 290907
Opened 19 years ago
Closed 19 years ago
[FIXr]nsStorageStream crashes if used before init()
Categories
(Core :: XPCOM, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla1.8beta2
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
(Keywords: crash)
Attachments
(1 file)
3.79 KB,
patch
|
Biesinger
:
review+
darin.moz
:
superreview+
asa
:
approval1.8b2+
|
Details | Diff | Splinter Review |
nsStorageStream crashes if you call various methods on it without calling init() (because mSegmentedBuffer is null and is not null-checked). Perhaps it should throw NS_ERROR_NOT_INITIALIZED instead? That would make a lot more sense to me...
Comment 1•19 years ago
|
||
yes, i agree.
Comment 2•19 years ago
|
||
personally it would be fine with me if stuff crashes when not initialized, but sure...
Assignee | ||
Comment 3•19 years ago
|
||
Assignee: dougt → bzbarsky
Status: NEW → ASSIGNED
Attachment #181191 -
Flags: superreview?(darin)
Attachment #181191 -
Flags: review?(cbiesinger)
Assignee | ||
Updated•19 years ago
|
Priority: -- → P1
Summary: nsStorageStream crashes if used before init() → [FIX]nsStorageStream crashes if used before init()
Target Milestone: --- → mozilla1.8beta2
Updated•19 years ago
|
Attachment #181191 -
Flags: superreview?(darin) → superreview+
Updated•19 years ago
|
Attachment #181191 -
Flags: review?(cbiesinger) → review+
Assignee | ||
Comment 4•19 years ago
|
||
Comment on attachment 181191 [details] [diff] [review] Proposed patch Requesting 1.8b approval for this simple safety-fix...
Attachment #181191 -
Flags: approval1.8b2?
Assignee | ||
Updated•19 years ago
|
Summary: [FIX]nsStorageStream crashes if used before init() → [FIXr]nsStorageStream crashes if used before init()
Comment 5•19 years ago
|
||
Comment on attachment 181191 [details] [diff] [review] Proposed patch a=asa
Attachment #181191 -
Flags: approval1.8b2? → approval1.8b2+
Assignee | ||
Comment 6•19 years ago
|
||
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Comment 7•19 years ago
|
||
*** Bug 247258 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•