Wie Verhalten Pufferüberlauf in PHP/Python?

Hier ist ein Beispiel in c:

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

InformationsquelleAutor user198729 | 2010-01-17

Schreibe einen Kommentar