three lines of code ...
I am reading the "Buffer Overflow Attacks" and i cannot understand
three simple (i think) lines of code:
(code = malloc(flen))
50 void (*fptr)(void);
...
64 fptr = (void (*)(void)) code;
65 (*fptr)();
in 50 i presume tht fptr is a pointer to a function that has one void argument and returns a void...
is this true?
and what about line 64 and 65 ... they puzzled me...
any help ?
Thank you very much!
|