tags:

views:

65

answers:

2

Like the following:

#include <stdio.h>
#include <string.h>

void bad() {
    printf("Oh shit really bad~!\r\n");
}

void foo() {
    char overme[4] = "WOW";
    *(int*)(overme+8) = (int)bad;
}

int main() {
   foo();
}
A: 
function Recurse()
{
    Recurse();
}
rahul
It will only report "too much recursion"
+2  A: 

Well, first you find a JavaScript runtime with a bug in its memory management system…

The short answer is that you can't. JavaScript doesn't let you manually manage your memory allocation.

David Dorward
Sometimes you say can't is just because you don't know.
A little politeness has never yet done any harm. So hold your tongue (that is, your keys). David is right on this one.
Boldewyn
Sometimes you say can't is just because you can't.
Andy E