commit | 1e6d765541116146edefc76cc15c2ea2730483c9 | [log] [tgz] |
---|---|---|
author | nethercote <nethercote@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Sun Nov 02 17:43:27 2003 +0000 |
committer | nethercote <nethercote@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Sun Nov 02 17:43:27 2003 +0000 |
tree | 1f3daf609e6d488bc299cf30434e98feb86ac81c | |
parent | 561f6e02eef8316e0810bc04076ea9dc95a9a364 [diff] |
Fixed bug in overlap check in strncpy() -- it was assuming the src was 'n' bytes longs, when it could be shorter, which could cause false positives. Added an example of this to the regtest. MERGE TO STABLE git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1983 a5019735-40e9-0310-863c-91ae7b9d1cf9