Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

[b][u][i]GNU QUALITY[/i][/u][/b]

Name: Anonymous 2011-11-14 17:14

So my C code segfaults. Nothing new or interesting about that, let's just sprinkle the code with printfs and fire up gdb.
Oh wait, it segfaults WITHIN FUCKING malloc.
I call
malloc(24)
and the bitch just segfaults. What the fuck. (Yes, it's glibc)

GNU QUALITY

Name: FrozenVoid !!mJCwdV5J0Xy2A21 2011-11-15 2:12

if you want exact 24 bytes why don't use a static array?
If its used in a function you can make it a global first like
char somearray[24]; and assign values to it in functions or inside main. Problem solved

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List