X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=sha1_file.c;h=53f0a3693fef1e03659cf3b41d15246ad419911e;hp=cc0f43ea849569664d1af9fe05a6b42917990a7f;hb=bdfef0492cada3fb36f454804796bf12c79a7136;hpb=649406644dc94caec3e3f2499a1786daffd90231 diff --git a/sha1_file.c b/sha1_file.c index cc0f43ea84..53f0a3693f 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -2209,7 +2209,7 @@ int read_loose_object(const char *path, goto out; } - if (*type == OBJ_BLOB) { + if (*type == OBJ_BLOB && *size > big_file_threshold) { if (check_stream_sha1(&stream, hdr, *size, path, expected_sha1) < 0) goto out; } else {