git-fast-import possible memory corruption problem
authorYONETANI Tomokazu <qhwt+git@les.ath.cx>
Sun, 14 Dec 2008 02:08:22 +0000 (11:08 +0900)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Dec 2008 00:41:32 +0000 (16:41 -0800)
Internal "allocate in bulk, we will never free this memory anyway"
allocator used in fast-import had a logic to round up the size of the
requested memory block in a wrong place (it computed if the available
space is enough to fit the request first, and then carved a chunk of
memory by size rounded up to the alignment, which could go beyond the
actually available space).

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found