guix/nix
Ludovic Courtès f9b1bb916c
daemon: Read substitute nar size as 'unsigned long long'.
Fixes <https://issues.guix.gnu.org/46212>.
Reported by Christopher Baines <mail@cbaines.net>.

Previously, the nar size returned by 'guix substitute' would be read as
an 'int'; thus, values above 2^31 - 1 would be read and then stored as
negative integers in the database.

Regression introduced in 9dfa20a22a.

* nix/libstore/build.cc (SubstitutionGoal::finished): Use templatized
'string2Int' instead of 'std::atoi' to get an 'unsigned long long',
which is the type of 'hash.second'.
* tests/store.scm ("substitute and large size"): New test.
2021-11-25 00:17:21 +01:00
..
boost
libstore daemon: Read substitute nar size as 'unsigned long long'. 2021-11-25 00:17:21 +01:00
libutil daemon: Micro-optimize 'deletePath'. 2021-11-19 23:04:19 +01:00
nix-daemon daemon: Remove dead code. 2021-04-03 22:08:33 +02:00
.gitignore
AUTHORS
COPYING
local.mk build: Don’t delete ‘guix-gc.timer’ file. 2021-10-01 08:58:06 +00:00