0

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();
}

2 Answers 2

2

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.

Sign up to request clarification or add additional context in comments.

3 Comments

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.
Sometimes you say can't is just because you can't.
0
function Recurse()
{
    Recurse();
}

1 Comment

It will only report "too much recursion"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.