Closed
Bug 985858
Opened 11 years ago
Closed 11 years ago
Snapshots.cpp:411:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
Categories
(Core :: JavaScript Engine: JIT, defect)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: dholbert, Assigned: dholbert)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
|
842 bytes,
patch
|
nbp
:
review+
|
Details | Diff | Splinter Review |
New build warning, introduced by bug 962555:
=============
js/src/jit/Snapshots.cpp:411:21: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
fprintf(fp, ValTypeToString(p.type));
^~~~~~~~~~~~~~~~~~~~~~~
=============
(I'm using clang 3.4 on Linux.)
| Assignee | ||
Updated•11 years ago
|
Blocks: buildwarning
| Assignee | ||
Comment 1•11 years ago
|
||
IIRC we can fix this by adding
"%s",
before the ValTypeToString invocation.
| Assignee | ||
Comment 2•11 years ago
|
||
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Attachment #8393998 -
Flags: review?(nicolas.b.pierron)
Updated•11 years ago
|
Attachment #8393998 -
Flags: review?(nicolas.b.pierron) → review+
| Assignee | ||
Comment 3•11 years ago
|
||
Flags: in-testsuite-
Comment 4•11 years ago
|
||
Or just fputs?
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in
before you can comment on or make changes to this bug.
Description
•