summaryrefslogtreecommitdiff
path: root/tests/diff/diffiter.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2016-03-10 10:40:47 +0100
committerPatrick Steinhardt <ps@pks.im>2016-03-11 13:30:33 +0100
commit1a8c11f44356e7b1379b3bced5bbf86fce576c28 (patch)
tree7d6041ebfc81d4cc9ae97e27ec45bc5d50c007e9 /tests/diff/diffiter.c
parent486302d6af009d8c62fa1bd1d5b1ff2b36c31189 (diff)
downloadlibgit2-1a8c11f44356e7b1379b3bced5bbf86fce576c28.tar.gz
diff_tform: fix potential NULL pointer access
When the user passes in a diff which has no repository associated we may call `git_config__get_int_force` with a NULL-pointer configuration. Even though `git_config__get_int_force` is designed to swallow errors, it is not intended to be called with a NULL pointer configuration. Fix the issue by only calling `git_config__get_int_force` only when configuration could be retrieved from the repository.
Diffstat (limited to 'tests/diff/diffiter.c')
0 files changed, 0 insertions, 0 deletions