Closed
Bug 1331954
Opened 9 years ago
Closed 9 years ago
dtoa.c: Incorrect error handling
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla54
| Tracking | Status | |
|---|---|---|
| firefox54 | --- | fixed |
People
(Reporter: fobo66, Assigned: fobo66)
Details
Attachments
(2 files)
|
613 bytes,
patch
|
Details | Diff | Splinter Review | |
|
59 bytes,
text/x-review-board-request
|
arai
:
review+
|
Details |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0
Build ID: 20161209095719
Steps to reproduce:
Define multiple constants, such as IEEE_8087, VAX or IBM, at a time.
Actual results:
Compiler errors:
~/dev/spidermonkey/js/src/dtoa.c:258:1: error: ‘Exactly’ does not name a type
Exactly one of IEEE_8087, IEEE_MC68k, VAX, or IBM should be defined.
^
~/dev/spidermonkey/js/src/dtoa.c:261:41: error: ‘U’ does not name a type
typedef union { double d; ULong L[2]; } U;
^
~/dev/spidermonkey/js/src/dtoa.c:1166:3: error: ‘U’ was not declared in this scope
(U x)
^
//and something like that
Expected results:
Compiler error will not be handled properly, so we get an UB and a lot of strange compile errors.
Attachment #8827924 -
Flags: review?(jorendorff)
| Comment hidden (mozreview-request) |
Comment 2•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8833704 [details]
Fix for bug #1331954
https://reviewboard.mozilla.org/r/109884/#review112032
(taking review over per IRC conversation)
Thank you for your patch :)
looks good.
Attachment #8833704 -
Flags: review+
Comment 3•9 years ago
|
||
Comment on attachment 8827924 [details] [diff] [review]
My fix to this problem
clearing old one.
Attachment #8827924 -
Flags: review?(jorendorff)
Updated•9 years ago
|
Assignee: nobody → skiinale2011
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment 4•9 years ago
|
||
forgot to check commit message.
can you update the commit message to follow the rule described in this document?
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Committing_Rules_and_Responsibilities#Commit_message_restrictions
for this bug, "Bug 1331954 - Put forgotten #error directive to dtoa.c" or something like that.
Flags: needinfo?(skiinale2011)
Comment 5•9 years ago
|
||
I guess I should land it manually with the modified commit message, instead of using autoland.
I'll land it shortly
Flags: needinfo?(skiinale2011) → needinfo?(arai.unmht)
Comment 6•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/f9cc96d0a27a659a90e153051010e0d5436d7a2b
Bug 1331954 - Put forgotten #error directive to dtoa.c. r=arai
Updated•9 years ago
|
Flags: needinfo?(arai.unmht)
Comment 7•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•