summaryrefslogtreecommitdiff
path: root/t/t2006-checkout-index-basic.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-02-18 16:00:53 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-02-18 16:00:53 -0800
commit78368f2c1ad342719ccf1e719bd5126ca6c7b68b (patch)
tree7fbeaf3abefa9c7ecf66770309c5617b8f146667 /t/t2006-checkout-index-basic.sh
parentbuiltin/mv: don't use memory after free (diff)
downloadtgif-78368f2c1ad342719ccf1e719bd5126ca6c7b68b.tar.xz
open_istream(): do not dereference NULL in the error case
When stream-filter cannot be attached, it is expected to return NULL, and we should close the stream we opened and signal an error by returning NULL ourselves from this function. However, we attempted to dereference that NULL pointer between the point we detected the error and returned from the function. Brought-to-attention-by: John Keeping <john@keeping.me.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2006-checkout-index-basic.sh')
0 files changed, 0 insertions, 0 deletions