Closed
Bug 450174
Opened 16 years ago
Closed 16 years ago
Remove static string from nsDOMOfflineResourceList.cpp
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: dcamp, Assigned: dcamp)
References
Details
Attachments
(1 file)
4.37 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
As mentioned in bug 442806, the use of a static nsCAutoString could lead to a shutdown leak if we ever exceed an 80-character cached manifest.
Flags: blocking1.9.1?
Comment 1•16 years ago
|
||
Bug 442806 comment 8:
{{
Boris Zbarsky (todo: 200+ items) [gone 8/9--8/17] 2008-08-07 19:56:55 PDT
>+static nsCAutoString gCachedManifestSpec;
So... generally this is bad: it'll show up as a leak any time the string value
is longer than 80 chars or whatever we use now. Followup bug to not us a
static object here?
}}
It should be 64 (not 80).
***
IIRC, it was said that |static ns*String| (other than *Auto*) is even guaranteed to leak.
So the actual issue may be much wider than nsDOMOfflineResourceList.cpp only.
Depends on: 52352
Version: unspecified → Trunk
Comment 2•16 years ago
|
||
(In reply to comment #1)
> IIRC, it was said that |static ns*String| (other than *Auto*) is even
> guaranteed to leak.
> So the actual issue may be much wider than nsDOMOfflineResourceList.cpp only.
I filed bug 451497 about finding out these issues by static analysis tool(s).
Assignee | ||
Comment 3•16 years ago
|
||
Attachment #335407 -
Flags: superreview?(jst)
Attachment #335407 -
Flags: review?(jst)
Assignee | ||
Comment 4•16 years ago
|
||
Comment on attachment 335407 [details] [diff] [review]
make cached keys a member
Changes to the tests in bug 442806 expose this leak, so this should be fixed before we land that.
Attachment #335407 -
Flags: review?(bzbarsky)
Updated•16 years ago
|
Updated•16 years ago
|
Attachment #335407 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Updated•16 years ago
|
Attachment #335407 -
Flags: superreview?(jst)
Attachment #335407 -
Flags: superreview?(bzbarsky)
Attachment #335407 -
Flags: review?(jst)
Updated•16 years ago
|
Attachment #335407 -
Flags: superreview?(bzbarsky) → superreview+
Assignee | ||
Comment 5•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•16 years ago
|
Flags: blocking1.9.1?
Updated•12 years ago
|
Component: DOM: Mozilla Extensions → DOM
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•