author | Nicolas Pitre <nico@cam.org> | |
Wed, 10 May 2006 16:26:08 +0000 (12:26 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 10 May 2006 17:53:59 +0000 (10:53 -0700) | ||
commit | 639ca5497279607665847f2e3a11064441a8f2a6 | |
tree | 85e5fd0d2435d34fa42d1a96840fca8d267aa6bb | tree | snapshot |
parent | f7a3276bab880222e3117f8b8cbef40920dfe884 | commit | diff |
fix diff-delta bad memory access
It cannot be assumed that the given buffer will never be moved when
shrinking the allocated memory size with realloc(). So let's ignore
that optimization for now.
This patch makes Electric Fence happy on Linux.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Acked-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
It cannot be assumed that the given buffer will never be moved when
shrinking the allocated memory size with realloc(). So let's ignore
that optimization for now.
This patch makes Electric Fence happy on Linux.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Acked-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff-delta.c | diff | blob | history |