Date:   Mon Mar 10 01:10:45 2003
Author: mbp

Update of /data/cvs/samba/source/lib
In directory dp.samba.org:/tmp/cvs-serv28296

Modified Files:
        util_str.c 
Log Message:
Clobber strings with 0xf1f1f1f1 before writing to them to check buffer
lengths are correct.  Attempts to pstrcpy into an fstring or allocated
string should fail in developer builds.

This builds on abartlet's earlier overflow probe for safe_strcpy, but
by clobbering the whole string with a nonzero value is more likely to
find overflows on the stack.

This is only used in -DDEVELOPER mode.

Reviewed by abartlet, tpot.


Revisions:
util_str.c              1.83 => 1.84
        http://www.samba.org/cgi-bin/cvsweb/samba/source/lib/util_str.c?r1=1.83&r2=1.84

Reply via email to