Closed Bug 1484988 Opened 6 years ago Closed 6 years ago

Avoid writing past the logical length of a string in Toolkit

Categories

(Toolkit :: General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox63 --- fixed

People

(Reporter: hsivonen, Assigned: hsivonen)

References

Details

Attachments

(1 file)

Don't use BeginWriting() to write past the logical length of a string in Toolkit. See bug 1484668 for details.
Also remove a useless call to SetCapacity().

MozReview-Commit-ID: LarsWKI3qwz
Comment on attachment 9002750 [details]
Bug 1484988 - Avoid writing past the logical length of a string in Toolkit.

Nathan Froyd [:froydnj] has approved the revision.
Attachment #9002750 - Flags: review+
Pushed by hsivonen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d263a0a200f5
Avoid writing past the logical length of a string in Toolkit. r=froydnj
https://hg.mozilla.org/mozilla-central/rev/d263a0a200f5
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: