Closed
Bug 1362390
Opened 7 years ago
Closed 7 years ago
make Base64Encode on nsString more tolerant of allocation failures
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla55
People
(Reporter: froydnj, Assigned: froydnj)
References
Details
Attachments
(1 file)
1.90 KB,
patch
|
mccr8
:
review+
gchang
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Bug 1362194 is making Base64Decode more tolerant of allocation failures, we might as well apply the same treatment to Base64Encode as well, since that can get called from script too.
Assignee | ||
Comment 1•7 years ago
|
||
This patch is essentially the same as bug 1362194, just done as a single patch. This patch is dependent on some of the bits added in said bug. crash-stats says we have a few crashes in this function and its callees, so this is addressing a problem...though me might just be moving the crash someplace else...
Attachment #8864852 -
Flags: review?(continuation)
Updated•7 years ago
|
Attachment #8864852 -
Flags: review?(continuation) → review+
Pushed by nfroyd@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/a4b157d9d0e7 make Base64Encode tolerant of allocation failures; r=mccr8
Comment 3•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a4b157d9d0e7
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Assignee | ||
Comment 4•7 years ago
|
||
Comment on attachment 8864852 [details] [diff] [review] make Base64Encode tolerant of allocation failures Approval Request Comment [Feature/Bug causing the regression]: many eons ago [User impact if declined]: crashes (not in this bug, but this function is definitely implicated in crash signatures) [Is this code covered by automated tests?]: yes [Has the fix been verified in Nightly?]: no [Needs manual test from QE? If yes, steps to reproduce]: no [List of other uplifts needed for the feature/fix]: This is required for a clean uplift of bug 1362194, due to sloppy coding on the part of the author. [Is the change risky?]: No. [Why is the change risky/not risky?]: We are now failing on OOM on a common codepath. [String changes made/needed]: None.
Attachment #8864852 -
Flags: approval-mozilla-beta?
Assignee | ||
Comment 5•7 years ago
|
||
Note that this bug and bug 1362194 landed in the same push on inbound, so that's why we didn't see any problems with bug 1362194 compiling on inbound.
Updated•7 years ago
|
status-firefox54:
--- → affected
Comment 6•7 years ago
|
||
Comment on attachment 8864852 [details] [diff] [review] make Base64Encode tolerant of allocation failures Required by bug 1362194. Beta54+. Should be in 54 beta 7.
Attachment #8864852 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 7•7 years ago
|
||
bugherder uplift |
https://hg.mozilla.org/releases/mozilla-beta/rev/5ac536c5ce06
Comment 8•7 years ago
|
||
(In reply to Nathan Froyd [:froydnj] from comment #4) > [Is this code covered by automated tests?]: yes > [Has the fix been verified in Nightly?]: no > [Needs manual test from QE? If yes, steps to reproduce]: no Setting qe-verify- based on Nathan's assessment on manual testing needs and the fact that this fix has automated coverage.
Flags: qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•