Closed
Bug 1586706
Opened 6 years ago
Closed 6 years ago
Use QuoteString instead of StringToNewUTF8CharsZ when NUL characters are possible
Categories
(Core :: JavaScript: Internationalization API, enhancement)
Core
JavaScript: Internationalization API
Tracking
()
RESOLVED
FIXED
mozilla71
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: anba, Assigned: anba)
Details
Attachments
(1 file)
https://phabricator.services.mozilla.com/D40067#inline-258336 proposed to use QuoteString instead of StringToNewUTF8CharsZ to properly handle resp. escape NUL characters. Because that suggestion not only applies to that patch, but actually to multiple other places, let's track it in a new bug.
Assignee | ||
Comment 1•6 years ago
|
||
QuoteString always returns an ASCII string, so we can also change JS_ReportErrorNumberUTF8
to JS_ReportErrorNumberASCII in a few places.
Assignee | ||
Comment 2•6 years ago
|
||
Try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=1086c9244116a32f938ae44200ed09c20af2e3e9
Keywords: checkin-needed
Pushed by dluca@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6d243ec1c977
Use QuoteString for JSString to char* conversion to ensure NUL characters don't cut off the result string. r=jwalden
Keywords: checkin-needed
Comment 4•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in
before you can comment on or make changes to this bug.
Description
•