Closed Bug 569589 Opened 14 years ago Closed 6 months ago

Access violation when XDR decoding a custom object

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: soubok, Unassigned)

Details

Attachments

(2 files)

In js_XDRObject(), you try to call js_GetClassPrototype with a NULL JSClass argument (in  xdr->mode != JSXDR_ENCODE  case).
This leads to an "Access violation reading location 0x00000000" in js_FindClassObject() on the following line (jsobj.cpp:3848):
  JSAtom *atom = js_Atomize(cx, clasp->name, strlen(clasp->name), 0);
Attached file testcase
Attached file stacktrace
The bug is not present prior tracemonkey-e643badaabc2 (2010.02.05)
(I made a terrible mistake when exposing XDR API such that it could be called in such ways. Apologies to all involved.)
Assignee: general → nobody
Severity: normal → S3
Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: