Tree
- Tree:
bebe4d27475d41d048b415ce4bb2d93c01616eab
- Date:
- Message:
- check size before calling mmap(2) It's only a preparatory step, as checking whether a size_t is less than SIZE_MAX is moot. In a follow-up commit, however, the `filesize' field of the struct got_pack will become off_t and these checks will kick in. This also makes consistent how we guard mmap(2) against empty files. ok and improvements stsp@
Makefile | commits | blame |
got-read-object.c | commits | blame |