mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
Merge branch 'maint-1.6.0' into maint
* maint-1.6.0: avoid 31-bit truncation in write_loose_object
This commit is contained in:
commit
8561b522d7
|
@ -2337,7 +2337,8 @@ static int create_tmpfile(char *buffer, size_t bufsiz, const char *filename)
|
|||
static int write_loose_object(const unsigned char *sha1, char *hdr, int hdrlen,
|
||||
void *buf, unsigned long len, time_t mtime)
|
||||
{
|
||||
int fd, size, ret;
|
||||
int fd, ret;
|
||||
size_t size;
|
||||
unsigned char *compressed;
|
||||
z_stream stream;
|
||||
char *filename;
|
||||
|
|
Loading…
Reference in a new issue