Closed
Bug 283545
Opened 20 years ago
Closed 19 years ago
OOM crash [@ nsFTPDirListingConv::OnDataAvailable]
Categories
(Core Graveyard :: Networking: FTP, defect)
Core Graveyard
Networking: FTP
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: timeless, Assigned: bastiaan)
References
()
Details
(Keywords: crash)
Crash Data
Attachments
(1 file, 5 obsolete files)
|
4.69 KB,
patch
|
darin.moz
:
superreview+
asa
:
approval1.8b3+
|
Details | Diff | Splinter Review |
checking only some allocations isn't enough :)
| Assignee | ||
Comment 1•20 years ago
|
||
| Assignee | ||
Updated•20 years ago
|
Assignee: dougt → b.jacques
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•19 years ago
|
||
Attachment #187675 -
Attachment is obsolete: true
| Assignee | ||
Updated•19 years ago
|
Attachment #187784 -
Flags: superreview?(darin)
Attachment #187784 -
Flags: review?(cbiesinger)
| Assignee | ||
Comment 3•19 years ago
|
||
nsCString -> nsCAutoString
Attachment #187784 -
Attachment is obsolete: true
Attachment #187787 -
Flags: superreview?(darin)
Attachment #187787 -
Flags: review?(cbiesinger)
| Assignee | ||
Updated•19 years ago
|
Attachment #187784 -
Flags: superreview?(darin)
Attachment #187784 -
Flags: review?(cbiesinger)
Comment 4•19 years ago
|
||
why not use nsAutoArrayPtr<char> and new char[...]? That way, you can avoid the goto, and just return.
OS: Windows XP → All
Hardware: PC → All
| Assignee | ||
Updated•19 years ago
|
Attachment #187787 -
Flags: superreview?(darin)
Attachment #187787 -
Flags: review?(cbiesinger)
| Assignee | ||
Updated•19 years ago
|
Attachment #187799 -
Flags: review?(cbiesinger)
Comment 6•19 years ago
|
||
Comment on attachment 187799 [details] [diff] [review] address comment buffer = ToNewCString(mBuffer); oh... I didn't realize that buffer gets a new value... you are now mismatching allocators
Attachment #187799 -
Flags: review?(cbiesinger) → review-
| Assignee | ||
Comment 7•19 years ago
|
||
Attachment #187799 -
Attachment is obsolete: true
| Assignee | ||
Updated•19 years ago
|
Attachment #187846 -
Flags: review?(cbiesinger)
Comment 8•19 years ago
|
||
Comment on attachment 187846 [details] [diff] [review] address comments + nsAutoArrayPtr<char> tmpBuffer (new char[mBuffer.Length()+1]); I can't figure out why you didn't just reuse buffer here... or does: buffer = new char[...]; not work? I think I wouldn't have removed the blank line here: rv = NS_NewCStringInputStream(getter_AddRefs(inputData), indexFormat); - if (NS_FAILED(rv)) return rv; -
Attachment #187846 -
Flags: review?(cbiesinger) → review+
| Assignee | ||
Comment 9•19 years ago
|
||
(In reply to comment #8) > (From update of attachment 187846 [details] [diff] [review] [edit]) > + nsAutoArrayPtr<char> tmpBuffer (new char[mBuffer.Length()+1]); > > I can't figure out why you didn't just reuse buffer here... or does: > buffer = new char[...]; > not work? It does, but I assumed it didn't, because |nsAutoArrayPtr<char> buffer = new char[..];| throws a compiler error. I've changed the code to do what you described, though. > I think I wouldn't have removed the blank line here: > rv = NS_NewCStringInputStream(getter_AddRefs(inputData), indexFormat); > - if (NS_FAILED(rv)) return rv; > - done.
| Assignee | ||
Updated•19 years ago
|
Attachment #187846 -
Attachment is obsolete: true
| Assignee | ||
Updated•19 years ago
|
Attachment #187875 -
Flags: superreview?(darin)
Updated•19 years ago
|
Attachment #187875 -
Flags: superreview?(darin) → superreview+
| Assignee | ||
Updated•19 years ago
|
Attachment #187875 -
Flags: approval1.8b3?
Updated•19 years ago
|
Attachment #187875 -
Flags: approval1.8b3? → approval1.8b3+
| Assignee | ||
Comment 10•19 years ago
|
||
Checked in by timeless (2005-07-08 12:40).
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
Crash Signature: [@ nsFTPDirListingConv::OnDataAvailable]
Updated•7 months ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•