Closed Bug 507453 Opened 15 years ago Closed 15 years ago

negative indexes on built-in objects sometimes return special properties

Categories

(Core :: JavaScript Engine, defect, P2)

defect

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta1-fixed
status1.9.1 --- .8-fixed

People

(Reporter: sayrer, Assigned: brendan)

References

()

Details

Attachments

(1 file)

See attached URL for the stuff people have turned up. Secure JavaScript subsets consider this a problem.
js> function args() { print(arguments[-3] == arguments.callee); print(typeof arguments[-3]); } js> args() true function
Flags: blocking1.9.2+
KILL IT. KILL IT WITH FIRE.
Sure, remove it, and bye bye introspection when "use strict" will be considered, right? This was my last hope about your .callee decision ... gone! You have [-2] and [-1] as well at this point, have a look.
P.S. my first comment in that post: I wrote about arguments secrets few weeks ago but I tested performances as well. Length, as callee, cost definitively more to be exposed but if these property will be there with “use strict” they could save JS debug!
Depends on: 507573
Blake says this is a P2. Brendan, if this requires a beta, please mark as P2.
Priority: -- → P2
This was fixed by the patch for bug 453728. /be
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [fixed by bug 453728]
bug 453728 was fixed last year.
Whiteboard: [fixed by bug 453728]
(In reply to comment #7) > bug 453728 was fixed last year. Sorry, pasted wrong bug #, as the "Depends on:" line shows; should be bug 507573. There's some interest in a spot-fix to 1.9.1.x. Cc'ing dveditz, I'll attach the minimal patch in a bit. /be
OS: Mac OS X → All
Hardware: x86 → All
Attached patch one-line fixSplinter Review
This is wanted on 1.9.1.x for the object-capability language verifiers targeting JS, so they don't have to blacklist indexing to avoid capability leaks. /be
Attachment #420403 - Flags: review?(igor)
Attachment #420403 - Flags: review?(igor) → review+
Attachment #420403 - Flags: approval1.9.1.8?
Comment on attachment 420403 [details] [diff] [review] one-line fix Approved for 1.9.1.8, a=dveditz for release-drivers
Attachment #420403 - Flags: approval1.9.1.8? → approval1.9.1.8+
Whiteboard: [needs 1.9.1 landing]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: