git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* verify_pack ignores return value of verify_fn
@ 2015-11-18  0:31 David Turner
  2015-11-24 22:11 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: David Turner @ 2015-11-18  0:31 UTC (permalink / raw)
  To: git mailing list

In pack-check.c, line 129, a caller-supplied verification function is
called.  The function returns an int, but that return value is ignored.

The only caller of verify_pack is in builtin/fsck.c, whose verify_fn
*does* return a meaningful error code (which is then ignored).  If it
were not ignored, fsck might return a different error code (in the
unlikely event that a weird object gets into a pack and is somehow not 
totally corrupt enough to fail an earlier check).

I think we should probably have verify_pack return a non-zero result if
any call to verify_fn returns a non-zero result.  Any objections to
this?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-24 22:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-18  0:31 verify_pack ignores return value of verify_fn David Turner
2015-11-24 22:11 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).