Closed
Bug 1024801
Opened 10 years ago
Closed 10 years ago
nsUrlClassifierPrefixSet::GetPrefixes leaks |prefixArray| if it does |return NS_ERROR_FILE_CORRUPTED|
Categories
(Toolkit :: Safe Browsing, defect)
Toolkit
Safe Browsing
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: mccr8, Assigned: mccr8)
References
(Blocks 1 open bug)
Details
(Keywords: coverity, memory-leak, Whiteboard: [MemShrink:P3][CID 1221192])
Attachments
(2 files)
1.13 KB,
patch
|
gcp
:
review+
|
Details | Diff | Splinter Review |
1022 bytes,
patch
|
gcp
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Updated•10 years ago
|
Whiteboard: [MemShrink][CID 1221192] → [MemShrink:P3][CID 1221192]
Assignee | ||
Comment 1•10 years ago
|
||
Thinking about this some more, this one makes me a little nervous. I'm guessing this array can be decently large, and I know with the old network cache they ended up getting corrupted or invalidating quite frequently, so maybe that's a possibility here. I'll just fix this.
Assignee: nobody → continuation
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8446015 -
Flags: review?(gpascutto)
Comment 3•10 years ago
|
||
Comment on attachment 8446015 [details] [diff] [review] Free prefixArray if nsUrlClassifierPrefixSet::GetPrefixes returns an error. Review of attachment 8446015 [details] [diff] [review]: ----------------------------------------------------------------- It looks to me like the caller has exactly the same bug: http://dxr.mozilla.org/mozilla-central/source/toolkit/components/url-classifier/LookupCache.cpp#699 This probably doesn't trigger right now because they're infallible arrays, but that tends to change. Can you fix that one as well?
Attachment #8446015 -
Flags: review?(gpascutto) → review+
Assignee | ||
Comment 4•10 years ago
|
||
This is a little odd so I'm asking for review.
Attachment #8446049 -
Flags: review?(gpascutto)
Updated•10 years ago
|
Attachment #8446049 -
Flags: review?(gpascutto) → review+
Assignee | ||
Comment 5•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/11dccfc5d6c3 https://hg.mozilla.org/integration/mozilla-inbound/rev/cc67c4e78d8d
Comment 6•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/11dccfc5d6c3 https://hg.mozilla.org/mozilla-central/rev/cc67c4e78d8d
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Updated•6 years ago
|
Blocks: coverity-analysis
You need to log in
before you can comment on or make changes to this bug.
Description
•