Closed Bug 1690172 Opened 5 years ago Closed 5 years ago

ReportTooBigCharacter's buffer is too small

Categories

(Core :: JavaScript Engine, defect)

defect

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: glandium, Assigned: glandium)

Details

Attachments

(1 file)

No description provided.

The format string is "0x%u", which can output up to 10 characters...
plus a nul terminator. So it needs a max of 11 bytes, otherwise,
SprintfLiteral truncates and adds a nul terminator, which leaves
all values > 0x7fffffff displayed without their lowest bits.

Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/c2d4686467a1 Fix Sprintf buffer size in ReportTooBigCharacter. r=sfink
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: