diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-04-28T13·10+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-04-28T13·24+0200 |
commit | 41c4558afe04d1cad0d0ef3b18a1a8155b40b06e (patch) | |
tree | 22ea76ca305ae3bebf07ab31f426191c9cac6d0e /src/libutil/lru-cache.hh | |
parent | 39b08f4c0c8851d96daa2b7d4e674b13c75afec7 (diff) |
Fix hash computation when importing NARs greater than 4 GiB
This caused "nix-store --import" to compute an incorrect hash on NARs that don't fit in an unsigned int. The import would succeed, but "nix-store --verify-path" or subsequent exports would detect an incorrect hash. A deeper issue is that the export/import format does not contain a hash, so we can't detect such issues early. Also, I learned that -Wall does not warn about this.
Diffstat (limited to 'src/libutil/lru-cache.hh')
0 files changed, 0 insertions, 0 deletions