attr: fix segfault in gitattributes parsing code
authorSteffen Prohaska <prohaska@zib.de>
Thu, 18 Oct 2007 20:02:35 +0000 (22:02 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 19 Oct 2007 01:11:27 +0000 (21:11 -0400)
commitd7b0a09316fe8dcb62ad247dbbb45c3c777667ad
treea502781dd4cb2d46d3e4937263e61866ada2f66d
parent415e7b877c54440bf92137a7021416efdf0a29b5
attr: fix segfault in gitattributes parsing code

git may segfault if gitattributes contains an invalid
entry. A test is added to t0020 that triggers the segfault.
The parsing code is fixed to avoid the crash.

Signed-off-by: Steffen Prohaska <prohaska@zib.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
attr.c
t/t0020-crlf.sh