Closed Bug 696599 Opened 8 years ago Closed 8 years ago
Corrupted free [@ free | moz
_free | ns ACString _internal::Finalize| ns FSURLEncoded::URLEncode]
For PR_Malloc(), nspr_use_zone_allocator is read, after s/PRBool/bool, the value becomes a random int, and zone allocator is used. It crashed when moz_free() is used to free the buffer.
Assignee: nobody → ginn.chen
Status: NEW → ASSIGNED
Attachment #568901 - Flags: review?(benjamin)
Besides changing it back to PRBool, I wonder if it is right to use PR_Malloc() in nsSaveAsCharset::DoCharsetConversion().
Comment on attachment 568901 [details] [diff] [review] patch The patch is definitely right. NSPR types need to be used for NSPR symbols. (I don't know about comment 2.)
Attachment #568901 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla10
You need to log in before you can comment on or make changes to this bug.