Code

Fix buffer overflow in prepare_attr_stack
authorDmitry Potapov <dpotapov@gmail.com>
Wed, 16 Jul 2008 15:39:55 +0000 (19:39 +0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Jul 2008 21:05:50 +0000 (14:05 -0700)
commitf66cf96d7c613a8129436a5d76ef7b74ee302436
tree7581728bf4078e6f8cd00a2ace6430f7a5748dbb
parentfd55a19eb1d49ae54008d932a65f79cd6fda45c9
Fix buffer overflow in prepare_attr_stack

If PATH_MAX on your system is smaller than a path stored in the git repo,
it may cause the buffer overflow in prepare_attr_stack.

Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
attr.c