lix/src/libutil
Vladimír Čunát 818aad3ec4
Detect and disallow base32 hash overflow
Example (before this commit):
$ nix-hash --type sha256 --to-base16 4n0igfxbd3kqvvj2k2xgysrp63l4v2gd110fwkk4apfpm0hvzwh0 \
    | xargs nix-hash --type sha256 --to-base32
0n0igfxbd3kqvvj2k2xgysrp63l4v2gd110fwkk4apfpm0hvzwh0

It's a real-life example:
https://github.com/NixOS/nixpkgs/pull/20208/files#r86695567
2016-11-06 22:17:37 +01:00
..
affinity.cc
affinity.hh
archive.cc
archive.hh
args.cc
args.hh
compression.cc
compression.hh
finally.hh
hash.cc Detect and disallow base32 hash overflow 2016-11-06 22:17:37 +01:00
hash.hh
json.cc
json.hh
local.mk
logging.cc
logging.hh
lru-cache.hh
monitor-fd.hh
pool.hh
ref.hh
serialise.cc
serialise.hh
sync.hh
thread-pool.cc
thread-pool.hh
types.hh
util.cc
util.hh
xml-writer.cc
xml-writer.hh