author | Nicolas Pitre <nico@cam.org> | |
Mon, 9 Apr 2007 05:06:30 +0000 (01:06 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 10 Apr 2007 19:48:14 +0000 (12:48 -0700) | ||
commit | d7dd02231f75604e388afb905f7bf8afd1bf4b24 | |
tree | 6325b2d2941ae62713c30b7cf0b6c7b9d259a835 | tree | snapshot |
parent | 8723f216263ba4a0f06be7b93fada863c0931e09 | commit | diff |
add overflow tests on pack offset variables
Change a few size and offset variables to more appropriate type, then
add overflow tests on those offsets. This prevents any bad data to be
generated/processed if off_t happens to not be large enough to handle
some big packs.
Better be safe than sorry.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Change a few size and offset variables to more appropriate type, then
add overflow tests on those offsets. This prevents any bad data to be
generated/processed if off_t happens to not be large enough to handle
some big packs.
Better be safe than sorry.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-pack-objects.c | diff | blob | history | |
builtin-unpack-objects.c | diff | blob | history | |
index-pack.c | diff | blob | history |