lix/src/libutil
Eelco Dolstra 41c4558afe
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.
2017-04-28 15:24:05 +02:00
..
affinity.cc printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00
affinity.hh Run the daemon worker on the same CPU as the client 2013-08-07 14:02:04 +02:00
archive.cc Include config.h implicitly with '-include config.h' in CFLAGS 2017-02-08 21:51:02 +02:00
archive.hh Revert fa125b9b28 2017-03-06 13:56:20 +01:00
args.cc Revert "Get rid of unicode quotes (#1140)" 2016-11-26 00:38:01 +01:00
args.hh Revert "Get rid of unicode quotes (#1140)" 2016-11-26 00:38:01 +01:00
compression.cc Fix xz decompression 2017-03-22 11:53:33 +01:00
compression.hh LocalFSStore::getBuildLog(): Handle corrupted logs 2017-03-21 19:23:35 +01:00
config.cc Improve nix show-config --json 2017-04-20 17:34:47 +02:00
config.hh Improve nix show-config --json 2017-04-20 17:34:47 +02:00
finally.hh Add missing #include 2016-11-07 14:35:47 +01:00
hash.cc Fix hash computation when importing NARs greater than 4 GiB 2017-04-28 15:24:05 +02:00
hash.hh Cache path info lookups in SQLite 2016-04-20 14:12:38 +02:00
istringstream_nocopy.hh Move istringstream_nocopy to a separate file 2017-03-21 14:43:03 +01:00
json.cc Improve nix show-config --json 2017-04-20 17:34:47 +02:00
json.hh Improve nix show-config --json 2017-04-20 17:34:47 +02:00
local.mk Add support for brotli compression 2017-03-15 16:49:06 +01:00
logging.cc Add warn function 2017-04-13 16:03:31 +02:00
logging.hh Add warn function 2017-04-13 16:03:31 +02:00
lru-cache.hh nix-daemon: Disable path info cache 2017-04-06 14:30:31 +02:00
monitor-fd.hh Fix interrupt handling 2017-01-26 20:40:33 +01:00
pool.hh Add Store nesting to fix import-from-derivation within filterSource 2017-04-26 14:15:47 -04:00
ref.hh Allow setting the state directory as a store parameter 2016-06-02 16:02:48 +02:00
serialise.cc readString(): Read directly into std::string 2017-03-01 14:54:11 +01:00
serialise.hh RemoteStore::addToStore(): Send NAR rather than string containing NAR 2017-03-01 16:07:15 +01:00
sync.hh nix-daemon: Disable path info cache 2017-04-06 14:30:31 +02:00
thread-pool.cc printMsg(lvlError, ...) -> printError(...) etc. 2016-09-21 16:54:53 +02:00
thread-pool.hh Fix assertion failure in ThreadPool::enqueue() 2016-07-21 18:14:16 +02:00
types.hh Add a Config class to simplify adding configuration settings 2017-04-13 16:03:31 +02:00
util.cc nix repl: Use $XDG_DATA_HOME for the readline history 2017-04-25 18:56:29 +02:00
util.hh nix repl: Use $XDG_DATA_HOME for the readline history 2017-04-25 18:56:29 +02:00
xml-writer.cc OCD: foreach -> C++11 ranged for 2015-07-17 20:13:56 +02:00
xml-writer.hh And another one 2014-02-26 18:55:18 +01:00