diff options
author | Gerald Carter <jerry@samba.org> | 2000-08-12 14:14:40 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2000-08-12 14:14:40 +0000 |
commit | 95496b974a2920369874c1cf29985723f6fc3058 (patch) | |
tree | febbc2ba256a054b6130b6f2485b8c68ed2fec32 /source3/lib/time.c | |
parent | 50cef4fa0d5ee9ac9ae6d5f41f88320bf02e9fb8 (diff) | |
download | samba-95496b974a2920369874c1cf29985723f6fc3058.tar.gz samba-95496b974a2920369874c1cf29985723f6fc3058.tar.bz2 samba-95496b974a2920369874c1cf29985723f6fc3058.zip |
reworked talloc() to in order to help track down invalid
memory access.
Tridge, I don't think using 0xdeadbeef for size allocations
of 0 is going to work. I ended up having to use NULL
as much code that works on UNISTR checks to see if the buffer ptr
is NULL. So valid code ends up with a seg fault.
Rather than rewriting it all, I added a DEBUG_TALLOC
#ifdef in talloc.h that sets a macro BAD_PTR.
This is the value assigned to ptr for an allocation of 0 bytes.
jerry
(This used to be commit 233b9cffa2350552d9f775f791d5d5e0464a1ed4)
Diffstat (limited to 'source3/lib/time.c')
0 files changed, 0 insertions, 0 deletions