Closed Bug 599188 Opened 15 years ago Closed 15 years ago

potential overflow in shell ShapeOf

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bhackett1024, Assigned: gal)

Details

(Whiteboard: [fixed-in-tracemonkey])

Attachments

(1 file)

ShapeOf can read vp[2] if argc == 0. Here is the relevant code: static JSBool ShapeOf(JSContext *cx, uintN argc, jsval *vp) { jsval v = JS_ARGV(cx, vp)[0]; ...
Shell only. We don't have to block on this.
Attached patch patchSplinter Review
Assignee: general → gal
Attachment #478139 - Flags: review?(brendan)
Comment on attachment 478139 [details] [diff] [review] patch Traveling, going to ignore mail in a minute. Suggest jorendorff since luke is on paternity leave. Also suggest not nesting v = ... in actual argument to what was once a macro, but that's a style thing at this point. It does highlight that v is single use and really unnecessary, though! /be
Attachment #478139 - Flags: review?(brendan) → review?(jorendorff)
Attachment #478139 - Flags: review?(jorendorff) → review+
Keywords: checkin-needed
Please remove the checkin-needed keyword and request approval.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: