guix/tests
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
..
services
accounts.scm
base16.scm
base32.scm
base64.scm
boot-parameters.scm
bournish.scm
build-utils.scm
builders.scm
cache.scm
challenge.scm
channels.scm
civodul.key
combinators.scm
containers.scm
cpan.scm
cpio.scm
cran.scm
crate.scm
cve-sample.json
cve.scm
debug-link.scm
derivations.scm daemon: Do not deduplicate files smaller than 8 KiB. 2021-11-16 14:34:28 +01:00
discovery.scm
dsa.key
ed25519.key
ed25519.sec
ed25519bis.key
ed25519bis.sec
egg.scm tests: Adjust tests/egg.scm to latest API changes. 2021-11-14 00:10:58 +01:00
elpa.scm
file-systems.scm
gem.scm
gexp.scm tests: Factorize 'file=?'. 2021-11-16 14:34:28 +01:00
git-authenticate.scm
git.scm
glob.scm
gnu-maintenance.scm
go.scm
grafts.scm
graph.scm
gremlin.scm
guix-archive.sh
guix-authenticate.sh
guix-build-branch.sh
guix-build.sh ui: 'load*' correctly reports 'read-error' in all cases. 2021-11-07 23:10:41 +01:00
guix-daemon.sh
guix-describe.sh
guix-download.sh
guix-environment-container.sh environment: Add tests for '--profile'. 2021-10-25 19:02:32 +02:00
guix-environment.sh environment: Add tests for '--profile'. 2021-10-25 19:02:32 +02:00
guix-gc.sh
guix-git-authenticate.sh
guix-graph.sh
guix-hash.sh
guix-home.sh
guix-lint.sh
guix-pack-localstatedir.sh
guix-pack-relocatable.sh
guix-pack.sh
guix-package-aliases.sh
guix-package-net.sh
guix-package.sh
guix-repl.sh
guix-shell.sh shell: Error out when an unauthorized guix.scm/manifest.scm is found. 2021-10-30 19:12:40 +02:00
guix-system.sh
hackage.scm
home-import.scm home: Adjust 'guix home import' test for shell aliases. 2021-11-16 14:38:02 +01:00
import-git.scm
import-utils.scm
inferior.scm
ipfs.scm
lint.scm tests: Avoid literal strings for invalid Texinfo markup. 2021-11-06 23:01:21 +01:00
minetest.scm
modules.scm
monads.scm
nar.scm daemon: Do not deduplicate files smaller than 8 KiB. 2021-11-16 14:34:28 +01:00
networking.scm
offload.scm
opam.scm
openpgp.scm
pack.scm
packages.scm packages: Add 'package-development-inputs'. 2021-10-25 15:29:39 +02:00
pki.scm
print.scm import: print: Replace packages and origins in 'arguments'. 2021-11-11 00:14:31 +01:00
processes.scm
profiles.scm profiles: Add 'package->development-manifest'. 2021-10-25 15:29:42 +02:00
publish.scm
pypi.scm import: pypi: Allow imports of a specific version. 2021-11-11 00:14:30 +01:00
records.scm
rsa.key
scripts.scm
search-paths.scm
services.scm
sets.scm
signing-key.pub
signing-key.sec
size.scm
status.scm
store-database.scm
store-deduplication.scm daemon: Do not deduplicate files smaller than 8 KiB. 2021-11-16 14:34:28 +01:00
store-roots.scm
store.scm daemon: Read substitute nar size as 'unsigned long long'. 2021-11-25 00:17:21 +01:00
substitute.scm
swh.scm
syscalls.scm syscalls: Add 'openpty' and 'login-tty'. 2021-10-26 12:46:27 +02:00
system.scm
test.drv
texlive.scm tests: Replace texlive importer tests. 2021-11-18 13:17:57 +00:00
transformations.scm
ui.scm
union.scm
upstream.scm
utils.scm utils: Define a target-x86-32? and target-x86-64? predicate. 2021-11-07 01:38:23 -04:00
uuid.scm
workers.scm