Commit de5d825f authored by Brian Christiansen's avatar Brian Christiansen
Browse files

Check for size 0 when xmalloc'ing

If size is 0, it will allocate 0 + 2. 2 for the magic and the size. But
xmalloc will then retun the pointer pointing past the newly allocated
memory (p[2]) which can cause a segfault.
parent a0654d34
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment