Closed Bug 449152 Opened 17 years ago Closed 17 years ago

valgrind umr in js1_5/extensions/regress-435345-01.js

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: bc, Assigned: mrbkap)

Details

(Keywords: verified1.9.0.2)

Attachments

(1 file)

==28877== Conditional jump or move depends on uninitialised value(s) ==28877== at 0x47BA71: obj_watch(JSContext*, unsigned, long*) (jsobj.cpp:1437) ==28877== by 0x4FFD67: js_Interpret (jsinterp.cpp:4928) ==28877== by 0x466F5E: js_Execute (jsinterp.cpp:1553) ==28877== by 0x40EDA8: JS_ExecuteScript (jsapi.cpp:4926) ==28877== by 0x40A590: Process(JSContext*, JSObject*, char*, int) (js.cpp:272) ==28877== by 0x40AD32: ProcessArgs(JSContext*, JSObject*, char**, int) (js.cpp:500) ==28877== by 0x40B0AC: main (js.cpp:3967)
Attached patch FixSplinter Review
We need to ensure that we write to all out parameters when we're about to bail. If we can't get information about the attributes, 0 is just as good a value as any.
Assignee: general → mrbkap
Status: NEW → ASSIGNED
Attachment #332294 - Flags: review?(brendan)
Attachment #332294 - Flags: review?(brendan) → review+
Keywords: checkin-needed
changeset: 16403:0da3b307d627
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Comment on attachment 332294 [details] [diff] [review] Fix While this isn't exploitable, it might be nice to get this into 1.9.0.2. I'm not sure what our testing policy is for testing bugs like this -- by its nature, this could cause random behavior (watching properties on a dense array will randomly fail to call the watch function).
Attachment #332294 - Flags: approval1.9.0.2?
Flags: in-testsuite-
Flags: in-litmus-
Flags: in-testsuite- → in-testsuite+
Comment on attachment 332294 [details] [diff] [review] Fix Approved for 1.9.0.2. Please land in CVS. a=ss
Attachment #332294 - Flags: approval1.9.0.2? → approval1.9.0.2+
Checked into the 1.9 branch.
Keywords: fixed1.9.0.2
verified 1.9.0/1.9.1 linux shell/browser
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: