Menu

#93 SLPBufferAlloc permits invalid alloc size

open
nobody
5
2012-11-14
2007-06-22
Alan
No

Calling SLPBufferAlloc with 0xFFFFFFFF as the size on x86 returns a valid(-ish) SLPBuffer pointer with SLPBuffer.allocated = 0xFFFFFFFF.

The "sizeof(struct _SLPBuffer) + size + 1" math wraps and allows xmalloc to "succeed".

Discussion


Log in to post a comment.