Assertion failure: JSID_BITS(id) == JSID_TYPE_VOID
Originally disclosed on Mozilla
- Fixed in 28 days
- Paid in 2.6 years
- Disclosed after 28 days
Attached test case triggers this with -j in debug mode: Assertion failure: JSID_BITS(id) == JSID_TYPE_VOID, at ../jsapi.h:452
In release mode this triggers some scary errors before it crashes:
js(86322) malloc: *** error for object 0x50a090: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug js(86322) malloc: *** error for object 0x50a0d8: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug js(86322) malloc: *** error for object 0x50a120: pointer being freed was not allocated ...repeated many times...
The weird part is that this seems to depend on the full path to the script. If I store the file as /tmp/test.js, I get the crash in release mode but not the messages and I don't get the assert in a debug build. If I store the file as /tmp/test1234567891234567890.js (length 31) I get the assert and error messages. I hope somebody will be able to reproduce.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A security bug in JavaScript Engine. Mozilla made it public on 7 January 2011.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.