summaryrefslogtreecommitdiff
path: root/accel-pppd/memdebug.c
AgeCommit message (Collapse)Author
2014-11-22remove trailing whitespacesDmitry Kozlov
2014-06-03get out of SPINLOCK_INITIALIZER as it is not cross-platform compatibleDmitry Kozlov
2013-07-18memdbg: Implement asprintf()Guillaume Nault
Define md_asprintf() as an equivalent of the GNU libc's asprintf() (with buffer allocated by md_malloc). Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
2013-07-18memdbg: Accept short strings in md_strndup()Guillaume Nault
Don't fail if string to duplicate is shorter than the size parameter and handle memory allocation failure. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
2013-07-18memdbg: Handle memory allocation failures in strdup()Guillaume Nault
Don't fail if _md_malloc() returns NULL. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
2013-07-18memdbg: improve md_realloc() compliance with plain realloc()Guillaume Nault
-Allow reallocation of NULL pointers (equivalent to a malloc() call) -Allow 'size' to be 0 (equivalent to a free() call) -Handle case where 'size' is smaller than the original buffer length Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
2013-07-18memdbg: Allow NULL pointer as argument to freeGuillaume Nault
free(NULL) is a no-op, but beside that it's a valid call which should be supported. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
2013-07-18memdbg: Handle memory allocation failuresGuillaume Nault
Report memory allocation failures in md_alloc() by returning a NULL pointer. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
2011-01-17memory usage optimizationDmitry Kozlov
2011-01-05rename accel-pptp to accel-pppDmitry Kozlov