Closed
Bug 539022
Opened 15 years ago
Closed 15 years ago
HEAP_ALLOCA should be defined for Windows builds with RTC enabled
Categories
(Tamarin Graveyard :: Virtual Machine, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
flash10.1
People
(Reporter: stejohns, Unassigned)
Details
Attachments
(1 file)
822 bytes,
patch
|
lhansen
:
review+
|
Details | Diff | Splinter Review |
MSVC has a debug facility that checks for overwrites of stack variables, including alloca usage. Unfortunately, this checking doesn't work properly with longjmp/setjmp and will get all crashy in some configurations, eg void foo() { jmp_buf jb; if (!setjmp(jb)) { long* aa = (long*)alloca(8); longjmp(jb, 1); } } (note that this is the case whether you use msvc's normal longjmp, or our hacked no-unwind longjmp) (note also that no such code construct appears to be in use in Tamarin itself, but embedders might be subject to it) Fortunately, solution is simple: enable HEAP_ALLOCA for these builds.
Reporter | ||
Comment 1•15 years ago
|
||
Comment on attachment 421085 [details] [diff] [review] Patch Note that this patch also adds the missing-but-necessary define for Symbian, as well
Attachment #421085 -
Attachment is patch: true
Attachment #421085 -
Attachment mime type: application/octet-stream → text/plain
Attachment #421085 -
Flags: review?(lhansen)
Updated•15 years ago
|
Attachment #421085 -
Flags: review?(lhansen) → review+
Reporter | ||
Comment 2•15 years ago
|
||
http://hg.mozilla.org/tamarin-redux/rev/8098ac5d12ad
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•15 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•