diff options
author | Jim Meyering <jim@meyering.net> | 2006-12-11 19:06:34 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-11 14:04:43 -0800 |
commit | 554a2636f7c5125a83bb07194632445467d46c83 (patch) | |
tree | 986dadaab34789ac35b71270d133af0dee9ea5ba /tag.c | |
parent | no need to install manpages as executable (diff) | |
download | tgif-554a2636f7c5125a83bb07194632445467d46c83.tar.xz |
Don't use memcpy when source and dest. buffers may overlap
git-index-pack can call memcpy with overlapping source and destination
buffers. The patch below makes it use memmove instead.
If you want to demonstrate a failure, add the following two lines
+ if (input_offset < input_len)
+ abort ();
before the existing memcpy call (shown in the patch below),
and then run this:
(cd t; sh ./t5500-fetch-pack.sh)
Signed-off-by: Jim Meyering <jim@meyering.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'tag.c')
0 files changed, 0 insertions, 0 deletions