Closed Bug 355478 Opened 18 years ago Closed 18 years ago

Crash with E4X, hasOwnProperty

Categories

(Core :: JavaScript Engine, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla1.9alpha1

People

(Reporter: jruderman, Assigned: brendan)

References

Details

(4 keywords)

Attachments

(1 file)

js> new <x/>.hasOwnProperty("y")

Opt: crash [@ HasProperty], looks like a null deref.

Debug: assert [@ JS_GetPrivate]
Assertion failure: OBJ_GET_CLASS(cx, obj)->flags & JSCLASS_HAS_PRIVATE, at jsapi.c:2358
Old bug.

/bea
OS: Mac OS X 10.4 → All
Priority: -- → P3
Hardware: Macintosh → All
Target Milestone: --- → mozilla1.9alpha
Blocks: 355569
Attached patch fixSplinter Review
I checked, and all other xml_* methods begin with XML_METHOD_PROLOG, or call PutProperty or ToXMLString, which type-check obj.

/be
Assignee: general → brendan
Status: NEW → ASSIGNED
Attachment #241358 - Flags: review?(igor.bukanov)
Attachment #241358 - Flags: approval1.8.1?
Attachment #241358 - Flags: approval1.8.1.1?
Attachment #241358 - Flags: review?(igor.bukanov) → review+
Checked into trunk:

Checking in jsxml.c;
/cvsroot/mozilla/js/src/jsxml.c,v  <--  jsxml.c
new revision: 3.130; previous revision: 3.129
done

/be
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Checking in regress-355478.js;
/cvsroot/mozilla/js/tests/e4x/Regress/regress-355478.js,v  <--  regress-355478.js
initial revision: 1.1
done
Flags: in-testsuite+
Comment on attachment 241358 [details] [diff] [review]
fix

Approved for RC3.
Attachment #241358 - Flags: approval1.8.1? → approval1.8.1+
Attachment #241358 - Flags: approval1.8.1.1?
Fixed on the 1.8 branch:

Checking in jsxml.c;
/cvsroot/mozilla/js/src/jsxml.c,v  <--  jsxml.c
new revision: 3.50.2.48; previous revision: 3.50.2.47
done

/be
Keywords: fixed1.8.1
verified fixed 1.9 20061007 windows/linux
Status: RESOLVED → VERIFIED
Comment on attachment 241358 [details] [diff] [review]
fix

approved for 1.8.0 branch, a=dveditz for drivers
Attachment #241358 - Flags: approval1.8.0.8+
verified fixed 20061009 1.8 windows/linux/mac* 1.9 windows/linux
Checking in jsxml.c;
/cvsroot/mozilla/js/src/jsxml.c,v  <--  jsxml.c
new revision: 3.50.2.15.2.23; previous revision: 3.50.2.15.2.22
done

/be
Keywords: fixed1.8.0.8
verified fixed 1.8.0.8 20061014 windows/linux/mac*
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: