summaryrefslogtreecommitdiff
path: root/cgit.h
diff options
context:
space:
mode:
authorLukas Fleischer <cgit@cryptocrack.de>2011-04-05 10:38:53 +0200
committerLars Hjemli <hjemli@gmail.com>2011-05-23 22:58:35 +0200
commit9afc883297b0d0943e9b358d2299950f33e8e5ed (patch)
tree27e81428c0a6ad4bbdf5633fc95b946b4a631d30 /cgit.h
parenta0bf375a1a9b74056a913f3687c6f5b42ad4acf6 (diff)
downloadcgit-9afc883297b0d0943e9b358d2299950f33e8e5ed.tar.gz
cgit-9afc883297b0d0943e9b358d2299950f33e8e5ed.tar.bz2
cgit-9afc883297b0d0943e9b358d2299950f33e8e5ed.zip
Avoid null pointer dereference in cgit_print_diff().
When calling cgit_print_diff() with a bad new_rev and a NULL old_rev, checking for new_rev's parent commit will result in a null pointer dereference. Returning on an invalid commit before dereferencing fixes this. Spotted with clang-analyzer. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h')
0 files changed, 0 insertions, 0 deletions
491912621&follow=1'>Sync portage and the DB after emerge syncRené 'Necoro' Neumann1-0/+9 2009-08-11Do not show masking label, if the package is not in system anymoreRené 'Necoro' Neumann1-2/+2 2009-08-11Update turkish translationGürkan Gür1-640/+676 2009-08-11Fix handling of slots in /etc/portage/*René 'Necoro' Neumann2-2/+4 2009-08-11Fix package detailsRené 'Necoro' Neumann1-1/+1 2009-08-11Fix GPytage pluginRené 'Necoro' Neumann1-2/+2 2009-08-11Update translationRené 'Necoro' Neumann2-1112/+1120 2009-08-11Update changelogRené 'Necoro' Neumann1-0/+1 2009-08-10Fixed pt_BR translationAlberto Federman Neto1-2/+5 2009-08-10Add credits for translationRené 'Necoro' Neumann2-0/+2