fsck: do not dereference NULL while checking resolve-undo data
commite0ad13977a7f6226d753ec12aedaaa9db7e57dad
authorJunio C Hamano <gitster@pobox.com>
Mon, 11 Jul 2022 23:25:14 +0000 (11 16:25 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Jul 2022 23:26:33 +0000 (11 16:26 -0700)
tree2d12540c2dda893d1236d6e2c02ee4cd0c9fb86b
parent5a5ea141e7d5317cd049cb1e93b9127c1cec04bb
fsck: do not dereference NULL while checking resolve-undo data

When we found an invalid object recorded in the resolve-undo data,
we would have ended up dereferencing NULL while fsck.  Reporting the
problem and going on to the next object is the right thing to do
here.

Noticed by SZEDER Gábor.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsck.c