Revision 58e3dd21f68c5eec945e7ddd4690733bd0103ce5 authored by Junio C Hamano on 11 December 2015, 19:14:38 UTC, committed by Junio C Hamano on 11 December 2015, 19:14:38 UTC
mark_tree_uninteresting() has code to handle the case where it gets
passed a NULL pointer in its 'tree' parameter, but the function had
'object = &tree->object' assignment before checking if tree is
NULL.  This gives a compiler an excuse to declare that tree will
never be NULL and apply a wrong optimization.  Avoid it.

* sn/null-pointer-arith-in-mark-tree-uninteresting:
  revision.c: fix possible null pointer arithmetic
2 parent s abca668 + a2678df
History
File Mode Size
.gitignore -rw-r--r-- 7 bytes
README -rw-r--r-- 10.6 KB
TEAMS -rw-r--r-- 1.9 KB
bg.po -rw-r--r-- 433.4 KB
ca.po -rw-r--r-- 336.2 KB
de.po -rw-r--r-- 361.4 KB
fr.po -rw-r--r-- 356.0 KB
git.pot -rw-r--r-- 220.7 KB
is.po -rw-r--r-- 3.1 KB
it.po -rw-r--r-- 128.2 KB
pt_PT.po -rw-r--r-- 99.8 KB
ru.po -rw-r--r-- 422.2 KB
sv.po -rw-r--r-- 345.2 KB
vi.po -rw-r--r-- 382.2 KB
zh_CN.po -rw-r--r-- 326.9 KB

README

back to top