]> git.ipfire.org Git - thirdparty/git.git/commit
Always check the return value of `repo_read_object_file()`
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 5 Feb 2024 14:35:53 +0000 (14:35 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Feb 2024 18:42:28 +0000 (10:42 -0800)
commit568459bf5e97a4f61429e3bdd1f97b54b39a1383
tree7b17660c5d8aecf25dc3060c5c80ffa19d7b22c1
parent564d0252ca632e0264ed670534a51d18a689ef5d
Always check the return value of `repo_read_object_file()`

There are a couple of places in Git's source code where the return value
is not checked. As a consequence, they are susceptible to segmentation
faults.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bisect.c
builtin/cat-file.c
builtin/grep.c
builtin/notes.c
combine-diff.c
rerere.c