Closed Bug 374116 Opened 18 years ago Closed 18 years ago

Crash [@ JS_GetPrivate] with E4X

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9alpha3

People

(Reporter: jruderman, Assigned: brendan)

Details

(4 keywords)

Crash Data

Attachments

(2 files)

js> <a/>.@b[1] = 2; Segmentation fault Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_INVALID_ADDRESS (0x0001) at 0x8000000c Thread 0 Crashed: 0 js 0x00015c58 JS_GetPrivate + 15 (jsapi.c:2317) 1 js 0x000d5524 PutProperty + 1295 (jsxml.c:4312) 2 js 0x000d768f xml_setProperty + 93 (jsxml.c:5129) 3 js 0x00067877 js_Interpret + 57921 (jsinterp.c:3827) 4 js 0x000587c6 js_Execute + 715 (jsinterp.c:1612) 5 js 0x0001a12c JS_ExecuteScript + 54 (jsapi.c:4212) 6 js 0x000029d2 Process + 912 (js.c:268) 7 js 0x00003354 ProcessArgs + 1910 (js.c:494) 8 js 0x00007efd main + 612 (js.c:3159) 9 js 0x000024e6 _start + 216 10 js 0x0000240d start + 41
Flags: blocking1.9?
Whiteboard: [sg:critical?]
Assignee: general → crowder
Attached patch fixSplinter Review
I don't believe this is exploitable. It's a guaranteed load from 0x80000000+16, which if successful leads to other dependent loads, no jumps thru vtbls. /be
Assignee: crowder → brendan
Status: NEW → ASSIGNED
Attachment #258729 - Flags: review?(igor)
Group: security
OS: Mac OS X → All
Priority: -- → P1
Hardware: PC → All
Whiteboard: [sg:critical?]
Target Milestone: --- → mozilla1.9alpha3
Attachment #258729 - Flags: review?(igor) → review+
Fixed: js/src/jsxml.c 3.149 /be
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment on attachment 258729 [details] [diff] [review] fix Safe fix for dumb crash bug. /be
Attachment #258729 - Flags: approval1.8.1.4?
Attachment #258729 - Flags: approval1.8.0.12?
/cvsroot/mozilla/js/tests/e4x/Regress/regress-374116.js,v <-- regress-374116.js initial revision: 1.1
Flags: in-testsuite+
fix bug number. sorry. /cvsroot/mozilla/js/tests/e4x/Regress/regress-374116.js,v <-- regress-374116.js new revision: 1.2; previous revision: 1.1
verified fixed 1.9.0 20070320 win/mac*/linux
Status: RESOLVED → VERIFIED
Comment on attachment 258729 [details] [diff] [review] fix approved for 1.8.0.12 and 1.8.1.4, a=dveditz for release-drivers
Attachment #258729 - Flags: approval1.8.1.4?
Attachment #258729 - Flags: approval1.8.1.4+
Attachment #258729 - Flags: approval1.8.0.12?
Attachment #258729 - Flags: approval1.8.0.12+
Attached patch branch patchSplinter Review
Trunk skewed far enough that this had to be hand-merged. I'm landing it on both branches now. /be
js/src/jsxml.c 3.50.2.59 js/src/jsxml.c 3.50.2.15.2.30 /be
verified fixed linux, windows, mac* 1.8.0, 1.8.1 shell 20070406
Crash Signature: [@ JS_GetPrivate]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: