diff options
author | Martin Pool <mbp@samba.org> | 2003-03-10 01:10:45 +0000 |
---|---|---|
committer | Martin Pool <mbp@samba.org> | 2003-03-10 01:10:45 +0000 |
commit | de6b39d898d5fb3106d7ed80249be7f74f83caf6 (patch) | |
tree | e1c9f9bfb3c80d5d0a992e94727ada7c58a04133 /source3/rpcclient/display_sec.c | |
parent | becf7a099710ba50f4611d0e16151337236b8a93 (diff) | |
download | samba-de6b39d898d5fb3106d7ed80249be7f74f83caf6.tar.gz samba-de6b39d898d5fb3106d7ed80249be7f74f83caf6.tar.bz2 samba-de6b39d898d5fb3106d7ed80249be7f74f83caf6.zip |
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.
(This used to be commit 8d915e266cd8ccc8b27e9c7ea8e9d003d05f8182)
Diffstat (limited to 'source3/rpcclient/display_sec.c')
0 files changed, 0 insertions, 0 deletions