BUG in fixup_pack_header_footer(...) / pack-write.c checksum error never raised
- From
- Paolo Teti <paolo.teti@gmail.com>
- Date
- May 15, 2007, 11:47 UTC
- Message-ID
- <34a7ae040705150447k2e770b5ag3629632f61b813a0@mail.gmail.com>
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