Closed
Bug 630649
Opened 13 years ago
Closed 13 years ago
jump bypasses variable initialization
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: espindola, Assigned: espindola)
References
Details
Attachments
(1 file)
3.14 KB,
patch
|
dmandelin
:
review+
ehsan.akhgari
:
approval2.0+
|
Details | Diff | Splinter Review |
Clang rejects code like void* r; void pushNewFrame(void *); int match() { { bool minSatisfied = true; pushNewFrame( &&RRETURN_1); RRETURN_1: ; } goto *r; } with the error "jump bypasses variable initialization". IMHO the error is reasonable, so the attached patch changes the pcre code. If you think otherwise, let me know why and I will try to change clang instead.
Assignee | ||
Updated•13 years ago
|
Attachment #508867 -
Attachment is patch: true
Attachment #508867 -
Flags: review?(dmandelin)
Assignee | ||
Updated•13 years ago
|
Blocks: clang-macosx
Updated•13 years ago
|
Attachment #508867 -
Flags: review?(dmandelin) → review+
Assignee | ||
Updated•13 years ago
|
Attachment #508867 -
Flags: approval2.0?
Comment 1•13 years ago
|
||
That needs to go upstream too, right?
Assignee | ||
Comment 2•13 years ago
|
||
Maybe. I noticed that the minSatisfied was recently introduced. I am not sure if it is a mozilla local change or not. If it is not, then yes, this should go upstream too.
Comment 3•13 years ago
|
||
It is a mozilla-only change. cdleary and I added it to correctly implement ECMA-262 repeated-empty-match semantics.
Comment 4•13 years ago
|
||
What's the testcase that the change fixed? (it would be useful to have YARR be conformant with the spec upstream -- at least where it's possible)
Comment 5•13 years ago
|
||
(In reply to comment #4) > What's the testcase that the change fixed? (it would be useful to have YARR be > conformant with the spec upstream -- at least where it's possible) The change was in PCRE--I thought you weren't using it anymore (yarr-interpreter instead). Bug 627609 is the most recent one fixed by these changes: it and its dups have some test cases.
Comment 6•13 years ago
|
||
Oh, I assumed it was a reference to YARR interpreter (with some significant code style changes :D ) Not sure why i'm CC'd on this bug :) (In reply to comment #5) > (In reply to comment #4) > > What's the testcase that the change fixed? (it would be useful to have YARR be > > conformant with the spec upstream -- at least where it's possible) > > The change was in PCRE--I thought you weren't using it anymore > (yarr-interpreter instead). Bug 627609 is the most recent one fixed by these > changes: it and its dups have some test cases.
Updated•13 years ago
|
Attachment #508867 -
Flags: approval2.0? → approval2.0+
Updated•13 years ago
|
Keywords: checkin-needed
Assignee: general → respindola
This patch doesn't apply anymore, because of the similar changes from Bug 632964.
OS: Mac OS X → Windows 7
Assignee | ||
Comment 8•13 years ago
|
||
The good news is that that change fixed this bug too :-)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 9•13 years ago
|
||
so looks like checkin-needed is not needed anymore here, correct if I'm wrong please.
Keywords: checkin-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•