Closed
Bug 476497
Opened 16 years ago
Closed 16 years ago
FEATURE_BUFFER_GUARD needs to be exterminated
Categories
(Tamarin Graveyard :: Virtual Machine, defect)
Tamarin Graveyard
Virtual Machine
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: stejohns, Assigned: edwsmith)
References
Details
Attachments
(2 files)
64.20 KB,
patch
|
stejohns
:
review+
|
Details | Diff | Splinter Review |
2.43 KB,
patch
|
stejohns
:
review+
|
Details | Diff | Splinter Review |
We’re close to eliminating MIR entirely, at which point GrowableBuffer goes away... that will leave BufferGuard as the only remaining code in the VM that uses the magic cpu-exception handling code that is a pain to deal with, and can't be counted on to exist on all platforms anyway (especially small mobile devices). We need to replace the code with explicit buffer-overflow checks where appropriate.
(It's worth pointing out that the comment for FEATURE_BUFFER_GUARD says "CRUFT: this define exists only for the interm In a few days I'll toast the rest" so this was never intended to be a long-lived feature anyway...)
Assignee | ||
Comment 1•16 years ago
|
||
(In reply to comment #0)
> We need to replace the code with explicit buffer-overflow checks
> where appropriate.
I will be code-reviewing where these need to go, but if you know of some already please add comments.
Assignee | ||
Comment 2•16 years ago
|
||
also removed:
AVMPLUS_MACH_EXCEPTIONS
AVMPLUS_ROSETTA
Extra manual checks not yet added anywhere.. this shouldn't land until code audit is complete and checks are added.
Assignee: nobody → edwsmith
Attachment #363704 -
Flags: review?(stejohns)
Reporter | ||
Updated•16 years ago
|
Attachment #363704 -
Flags: review?(stejohns) → review+
Assignee | ||
Comment 3•16 years ago
|
||
I've gone over the code and it looks like we already do bounds checking on the abc where we need to, and this should land asap unless we find i missed something.
note that SAFE_PARSE was already defined all the time, even on platforms that supported FEATURE_BUFFER_GUARD.
Attachment #364105 -
Flags: review?(stejohns)
Reporter | ||
Updated•16 years ago
|
Attachment #364105 -
Flags: review?(stejohns) → review+
Assignee | ||
Comment 4•16 years ago
|
||
removed FEATURE_BUFFER_GUARD
http://hg.mozilla.org/tamarin-redux/rev/42221e58f6b4
removed SAFE_PARSE
http://hg.mozilla.org/tamarin-redux/rev/0c430ad6c249
Status: NEW → RESOLVED
Closed: 16 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
•