1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-01 18:16:08 +02:00

Merge branch 'hv/link-alt-odb-entry' into maint

* hv/link-alt-odb-entry:
  link_alt_odb_entry: fix read over array bounds reported by valgrind
This commit is contained in:
Junio C Hamano 2012-08-15 13:36:47 -07:00
commit 45b65a6b67

View File

@ -298,7 +298,7 @@ static int link_alt_odb_entry(const char * entry, int len, const char * relative
return -1;
}
}
if (!memcmp(ent->base, objdir, pfxlen)) {
if (!strcmp(ent->base, objdir)) {
free(ent);
return -1;
}