Merge branch 'tr/xsize-bits'
* tr/xsize-bits: xsize_t: check whether we lose bits
This commit is contained in:
commit
7e00a9104b
@ -388,6 +388,8 @@ extern int odb_pack_keep(char *name, size_t namesz, unsigned char *sha1);
|
||||
|
||||
static inline size_t xsize_t(off_t len)
|
||||
{
|
||||
if (len > (size_t) len)
|
||||
die("Cannot handle files this big");
|
||||
return (size_t)len;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user