git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* BUG in fixup_pack_header_footer(...) / pack-write.c checksum error never raised
@ 2007-05-15 11:47 Paolo Teti
  2007-05-15 12:39 ` [PATCH] Fix signedness on return value from xread() Johan Herland
  0 siblings, 1 reply; 7+ messages in thread
From: Paolo Teti @ 2007-05-15 11:47 UTC (permalink / raw)
  To: git

In fixup_pack_header_footer(...) file pack-write.c
We have to change the size_t value returned by
xread() in ssize_t, otherwise the next check on negative
values has no sense.

size_t is an unsigned type!

I can't write now a patch because I'm on a customer site
and I can't install GIT...

I'm just looking at the souce code using gitweb during a coffebreak.

Someone can fix it?..

Pao

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

end of thread, other threads:[~2007-05-15 23:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-15 11:47 BUG in fixup_pack_header_footer(...) / pack-write.c checksum error never raised Paolo Teti
2007-05-15 12:39 ` [PATCH] Fix signedness on return value from xread() Johan Herland
2007-05-15 12:48   ` Paolo Teti
2007-05-15 12:49   ` [PATCH] Ensure return value from xread() is always stored into an ssize_t Johan Herland
2007-05-15 16:12     ` Dana How
2007-05-15 16:21       ` Johan Herland
2007-05-15 23:24   ` [PATCH] Fix signedness on return value from xread() Shawn O. Pearce

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).