blob: 789b8a37f9aaa918bc8c8672ac3dfa7e3ed385cf (
plain)
1
2
3
4
5
6
7
|
Components.utils.import("resource://gre/modules/ctypes.jsm");
privateNoteIntentionalCrash();
var zero = new ctypes.intptr_t(8);
var badptr = ctypes.cast(zero, ctypes.PointerType(ctypes.int32_t));
var crash = badptr.contents;
|