Closed
Bug 715098
Opened 13 years ago
Closed 12 years ago
nsICacheMetadata::visitMetaData blows up in debug mode if the visitor returns false
Categories
(Core :: Networking: Cache, defect)
Core
Networking: Cache
Tracking
()
RESOLVED
FIXED
mozilla12
People
(Reporter: Gijs, Assigned: Gijs)
References
()
Details
Attachments
(1 file, 1 obsolete file)
696 bytes,
patch
|
michal
:
review+
Gijs
:
checkin+
|
Details | Diff | Splinter Review |
http://mxr.mozilla.org/mozilla-central/source/netwerk/cache/nsCacheMetaData.cpp?rev=e7854b4d29ba#181 181 NS_ABORT_IF_FALSE(data == limit, "Metadata corrupted"); But data != limit whenever the visitor returns false. The documentation doesn't specify when that should happen (just that it returns a boolean). Firebug currently uses this code and returns false, which crashes debug builds. I don't really know what the original goal of the assert was, but from what I can tell it can be removed.
Assignee | ||
Comment 1•13 years ago
|
||
One thing we could do is nuke the assert...
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Attachment #585705 -
Flags: review?(jduell.mcbugs)
Assignee | ||
Comment 2•13 years ago
|
||
Or we could keep the assert and return early. NB: this returns NS_OK even if the visitor code fails. Whether that's desirable is up to you guys...
Attachment #585706 -
Flags: review?(jduell.mcbugs)
Comment 3•12 years ago
|
||
Comment on attachment 585705 [details] [diff] [review] Option 1: Remove the assert Review of attachment 585705 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for the patches, Gijs! Michal is a better reviewer for them.
Attachment #585705 -
Flags: review?(jduell.mcbugs) → review?(michal.novotny)
Updated•12 years ago
|
Attachment #585706 -
Flags: review?(jduell.mcbugs) → review?(michal.novotny)
Updated•12 years ago
|
Attachment #585705 -
Flags: review?(michal.novotny)
Updated•12 years ago
|
Attachment #585706 -
Flags: review?(michal.novotny) → review+
Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Updated•12 years ago
|
Attachment #585705 -
Attachment is obsolete: true
Assignee | ||
Comment 4•12 years ago
|
||
Pushed to inbound: http://hg.mozilla.org/integration/mozilla-inbound/rev/2c215e31b7d0
Keywords: checkin-needed
Assignee | ||
Updated•12 years ago
|
Attachment #585706 -
Flags: checkin+
Comment 5•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2c215e31b7d0
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla12
You need to log in
before you can comment on or make changes to this bug.
Description
•