Closed
Bug 140484
Opened 24 years ago
Closed 23 years ago
tagStr incorrectly freed in nsListCommand::GetCurrentState (lurking crash)
Categories
(Core :: DOM: Editor, defect, P2)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
mozilla1.0
People
(Reporter: mcguirk, Assigned: mozeditor)
Details
(Whiteboard: [adt2 rtm],custrtm-)
Attachments
(1 file)
|
717 bytes,
patch
|
mozeditor
:
review+
kinmoz
:
superreview+
|
Details | Diff | Splinter Review |
Look at nsListCommand::GetCurrentState(nsIEditor*, const char*,
nsICommandParams*) and GetListState() in
mozilla/editor/composer/src/nsComposerCommands.cpp. Notice that in the latter
function, _retval is never touched if you're in a mixed state, but in the former
function, tagStr is freed if it is not NULL, and it has never been initialized
to NULL. In other words, you get a bad free if you're in a mixed state.
The parallel cases in this file seem to be OK, because the called functions set
*_retval = nsnull at the beginning.
| Reporter | ||
Comment 1•24 years ago
|
||
Suggested patch: Set *_retval to NULL, as is done in the parallel cases, to
avoid the bad free.
Updated•24 years ago
|
Comment 2•24 years ago
|
||
probably introduced by mjudge but I'll reassign to jfrancis for review of this patch
| Assignee | ||
Comment 3•24 years ago
|
||
Comment on attachment 81249 [details] [diff] [review]
Suggested patch
r = jfrancis
Attachment #81249 -
Flags: review+
Attachment #81249 -
Flags: superreview+
Comment 6•23 years ago
|
||
nsbeta1+.
| Assignee | ||
Comment 7•23 years ago
|
||
fixed on trunk. Thanks Dan!
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 10•23 years ago
|
||
adding adt1.0.0+. Please get drivers approval and then check into the 1.0 branch.
Comment 11•23 years ago
|
||
changing to adt1.0.1+ for checkin to the 1.0 branch for the Mozilla1.0.1
milestone. Please get drivers approval before checking in.
Updated•23 years ago
|
Keywords: mozilla1.0.1
Comment 12•23 years ago
|
||
please checkin to the 1.0.1 branch. once there, remove the "mozilla1.0.1+"
keyword and add the "fixed1.0.1" keyword.
Keywords: mozilla1.0.1 → mozilla1.0.1+
| Assignee | ||
Comment 13•23 years ago
|
||
Branch landing completed. Now we sit back and watch the money roll in!
Keywords: mozilla1.0.1+ → fixed1.0.1
You need to log in
before you can comment on or make changes to this bug.
Description
•