Commit 2f63b34ce3d2db78052d19284337414845664b6f

Stefan Sperling 2020-07-23T14:21:30

restore 8k buffer size for hashing file contents in got_object_blob_create()

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/object_create.c b/lib/object_create.c
index cf8a728..ed77449 100644
--- a/lib/object_create.c
+++ b/lib/object_create.c
@@ -161,7 +161,7 @@ got_object_blob_create(struct got_object_id **id, const char *ondisk_path,
 		goto done;
 	}
 	for (;;) {
-		char buf[PATH_MAX];
+		char buf[PATH_MAX * 8];
 		ssize_t inlen;
 
 		if (S_ISLNK(sb.st_mode)) {