Closed Bug 735081 Opened 12 years ago Closed 7 years ago

Debug functions to control amount of remaining stack space

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1395240

People

(Reporter: jruderman, Unassigned)

Details

(Keywords: sec-want, Whiteboard: [js:p2][fuzzblocker])

I'd like a debug function that takes two parameters:
* The amount of native stack space to leave available
* A callback

The function would use alloca to gobble up the difference between a stack dummy and RuntimeFriendFields::get(rt)->nativeStackLimit, then call its callback.

This would let my fuzzer create more precise and more portable testcases than my current "nearNativeStackLimit" gadget.

I'd also like something similar for script stack space (to replace another gadget, "nearScriptStackLimit"), but I don't understand that as well.
Whiteboard: [js:p2]
Keywords: sec-want
See also bug 735082.
Whiteboard: [js:p2] → [js:p2][fuzzblocker]
Assignee: general → nobody
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.