Closed Bug 476497 Opened 16 years ago Closed 16 years ago

FEATURE_BUFFER_GUARD needs to be exterminated

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: stejohns, Assigned: edwsmith)

References

Details

Attachments

(2 files)

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...)
Depends on: 477785
(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.
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)
Attachment #363704 - Flags: review?(stejohns) → review+
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)
Attachment #364105 - Flags: review?(stejohns) → review+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: