1. Stefan Saasen
  2. git

Commits

Junio C Hamano  committed 45b65a6 Merge

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

  • Participants
  • Parent commits b17a01d, cb2912c
  • Branches master

Comments (0)

Files changed (1)

File sha1_file.c

View file
  • Ignore whitespace
 			return -1;
 		}
 	}
-	if (!memcmp(ent->base, objdir, pfxlen)) {
+	if (!strcmp(ent->base, objdir)) {
 		free(ent);
 		return -1;
 	}