Closed Bug 946382 Opened 12 years ago Closed 12 years ago

RangedPtr::operator* should assert if pointing at the end of the range

Categories

(Core :: MFBT, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: Waldo, Unassigned)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
Amazingly it doesn't right now. Docs are clear that people shouldn't do this. Let's see if they obeyed. https://tbpl.mozilla.org/?tree=Try&rev=60127ae99ad9
Attachment #8342549 - Flags: review?(Ms2ger)
Comment on attachment 8342549 [details] [diff] [review] Patch Review of attachment 8342549 [details] [diff] [review]: ----------------------------------------------------------------- Apparently not: https://tbpl.mozilla.org/php/getParsedLog.php?id=31452114&tree=Try
Attachment #8342549 - Flags: review?(Ms2ger)
Comment on attachment 8342549 [details] [diff] [review] Patch Fixed the apparent issue (in the "Check for an empty string" rev there, landed in inbound), at least going by preliminary results: https://tbpl.mozilla.org/?tree=Try&rev=c607bc59df84 Retry?
Attachment #8342549 - Flags: review?(Ms2ger)
Comment on attachment 8342549 [details] [diff] [review] Patch Review of attachment 8342549 [details] [diff] [review]: ----------------------------------------------------------------- > Make RangedPtr::operator* assert if the pointer is at the end of its range. NOT REVIEWED YET I would probably say something like "Make RangedPtr::operator* assert that the pointer is in its range.".
Attachment #8342549 - Flags: review?(Ms2ger) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: