-
-
Save Gottox/78f1d98eafef02f9af41 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~/src/xbps(master ✗) time xbps-uhelper digest /tmp/testfile | |
| 78cb14b60e49246fa5db70e63b44272367a7eb8acb16bc18d62eec682787915d | |
| xbps-uhelper digest /tmp/testfile 3.12s user 0.52s system 99% cpu 3.644 total | |
| ~/src/xbps(master ✗) time LD_PRELOAD=lib/libxbps.so.2.0.0 xbps-uhelper digest /tmp/testfile | |
| 78cb14b60e49246fa5db70e63b44272367a7eb8acb16bc18d62eec682787915d | |
| LD_PRELOAD=lib/libxbps.so.2.0.0 xbps-uhelper digest /tmp/testfile 2.73s user 0.10s system 99% cpu 2.832 total | |
| ~/src/xbps(master ✗) git diff|cat | |
| diff --git a/lib/util_hash.c b/lib/util_hash.c | |
| index 6306dfb..a374c33 100644 | |
| --- a/lib/util_hash.c | |
| +++ b/lib/util_hash.c | |
| @@ -65,7 +65,7 @@ xbps_file_hash(const char *file) | |
| char hash[SHA256_DIGEST_LENGTH * 2 + 1]; | |
| unsigned char digest[SHA256_DIGEST_LENGTH]; | |
| ssize_t ret; | |
| - unsigned char buf[256]; | |
| + unsigned char buf[4096]; | |
| int fd; | |
| if ((fd = open(file, O_RDONLY)) == -1) | |
| ~/src/xbps(master ✗) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment