author | Dmitry Potapov <dpotapov@gmail.com> | |
Wed, 16 Jul 2008 14:54:02 +0000 (18:54 +0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 16 Jul 2008 21:03:24 +0000 (14:03 -0700) | ||
commit | fd55a19eb1d49ae54008d932a65f79cd6fda45c9 | |
tree | 924e7874961e54d268e36a1e71b6b88414dc421b | tree | snapshot |
parent | 620e2bb93785ed8eb60846d94fd4753d4817c8ec | commit | diff |
Fix buffer overflow in git diff
If PATH_MAX on your system is smaller than a path stored, it may cause
buffer overflow and stack corruption in diff_addremove() and diff_change()
functions when running git-diff
Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
If PATH_MAX on your system is smaller than a path stored, it may cause
buffer overflow and stack corruption in diff_addremove() and diff_change()
functions when running git-diff
Signed-off-by: Dmitry Potapov <dpotapov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-lib.c | diff | blob | history | |
diff.c | diff | blob | history | |
diff.h | diff | blob | history | |
revision.c | diff | blob | history | |
tree-diff.c | diff | blob | history |