]> git.proxmox.com Git - libgit2.git/commit
Fix possible segfaults in src/tree.c (issue 1)
authorVicent Marti <tanoku@gmail.com>
Wed, 6 Oct 2010 21:07:32 +0000 (00:07 +0300)
committerVicent Marti <tanoku@gmail.com>
Wed, 6 Oct 2010 21:14:09 +0000 (00:14 +0300)
commitc4b5bedc972d9238db5d6422bc6f4de35b4b67ed
treeca019aa4c44c8f88e6b7feef1dceff9ec11f5e0c
parent2a884588b405c4dee78494119a123fb1878f3490
Fix possible segfaults in src/tree.c (issue 1)

git_tree_entry_byname was dereferencing a NULL pointer when the searched
file couldn't be found on the tree.

New test cases have been added to check for entry access methods.

Signed-off-by: Vicent Marti <tanoku@gmail.com>
src/tree.c
tests/t0901-readtree.c