Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[patch] git: fix overflow in update-cache.c
[gitweb.git]
/
update-cache.c
diff --git
a/update-cache.c
b/update-cache.c
index d7caed64f3384bac8f7a95992ce02c39190db4af..3b44fe14efd1398bdca6e7dd12a20507b4b5d60d 100644
(file)
--- a/
update-cache.c
+++ b/
update-cache.c
@@
-131,7
+131,7
@@
static int compare_data(struct cache_entry *ce, unsigned long expected_size)
if (fd >= 0) {
void *buffer;
unsigned long size;
- char type[
1
0];
+ char type[
2
0];
buffer = read_sha1_file(ce->sha1, type, &size);
if (buffer) {