Closed Bug 1331954 Opened 9 years ago Closed 9 years ago

dtoa.c: Incorrect error handling

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: fobo66, Assigned: fobo66)

Details

Attachments

(2 files)

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 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 on attachment 8827924 [details] [diff] [review] My fix to this problem clearing old one.
Attachment #8827924 - Flags: review?(jorendorff)
Assignee: nobody → skiinale2011
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
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)
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)
Flags: needinfo?(arai.unmht)
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: