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 9dfa20a22ae0be3d3b01a7b3d422af97428c627e.
* 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
..
2021-08-02 17:23:30 -04:00
2020-08-29 16:24:17 +02:00
2021-08-29 01:05:26 -04:00
2020-11-16 11:21:42 +01:00
2020-03-22 16:49:47 +01:00
2021-01-16 11:51:03 +00:00
2021-09-18 19:37:45 +02:00
2020-05-04 09:56:12 +02:00
2020-10-01 12:51:13 +02:00
2020-01-15 18:40:43 +01:00
2020-01-16 23:14:05 +01:00
2021-01-13 22:42:49 +01:00
2020-12-21 17:47:35 +01:00
2019-10-23 16:40:17 +02:00
2021-11-16 14:34:28 +01:00
2020-05-04 09:56:12 +02:00
2020-05-04 09:56:12 +02:00
2020-05-04 09:56:12 +02:00
2020-06-05 22:54:06 +02:00
2020-06-05 22:54:06 +02:00
2021-11-14 00:10:58 +01:00
2021-03-06 11:41:48 +01:00
2021-07-18 02:10:49 -04:00
2020-04-27 23:29:40 +02:00
2021-11-16 14:34:28 +01:00
2020-06-28 23:26:53 +02:00
2021-09-18 19:37:45 +02:00
2020-12-09 22:25:17 +01:00
2021-05-28 23:04:44 +02:00
2021-09-28 22:00:47 +02:00
2021-04-15 03:22:55 -04:00
2021-09-21 15:15:52 +02:00
2020-12-15 17:32:09 +01:00
2020-09-15 14:40:20 +02:00
2020-09-28 21:06:36 -05:00
2021-11-07 23:10:41 +01:00
2020-09-28 21:06:36 -05:00
2020-09-28 21:06:36 -05:00
2021-10-25 19:02:32 +02:00
2021-10-25 19:02:32 +02:00
2020-09-28 21:06:36 -05:00
2020-09-28 21:06:36 -05:00
2020-09-28 21:06:36 -05:00
2021-01-04 11:51:48 +01:00
2021-10-09 19:24:19 +03:00
2021-02-22 12:07:45 +01:00
2020-12-04 13:12:08 +00:00
2020-09-28 21:06:36 -05:00
2020-10-02 23:28:09 +02:00
2020-09-28 21:06:36 -05:00
2021-04-29 01:22:04 +02:00
2020-09-16 16:04:01 +02:00
2021-10-30 19:12:40 +02:00
2021-08-29 01:05:26 -04:00
2021-09-15 14:28:38 +02:00
2021-11-16 14:38:02 +01:00
2021-09-18 19:37:45 +02:00
2021-09-01 23:41:42 +02:00
2021-05-15 12:14:47 +01:00
2021-04-12 18:42:22 +02:00
2021-11-06 23:01:21 +01:00
2021-10-02 17:16:43 +02:00
2021-11-16 14:34:28 +01:00
2021-01-16 23:30:59 +01:00
2020-08-25 13:45:27 -04:00
2021-09-18 19:37:44 +02:00
2020-09-29 22:53:36 +02:00
2021-07-18 02:02:34 -04:00
2021-10-25 15:29:39 +02:00
2021-11-11 00:14:31 +01:00
2019-12-10 10:49:42 +01:00
2021-10-25 15:29:42 +02:00
2021-05-16 23:28:11 +02:00
2021-11-11 00:14:30 +01:00
2021-08-12 12:34:13 +02:00
2020-05-04 09:56:12 +02:00
2021-01-31 21:49:58 +01:00
2021-11-16 14:34:28 +01:00
2021-11-25 00:17:21 +01:00
2021-04-09 17:46:38 +02:00
2021-01-21 11:22:08 +01:00
2021-10-26 12:46:27 +02:00
2021-08-29 01:05:26 -04:00
2021-11-18 13:17:57 +00:00
2021-09-08 18:03:50 +02:00
2020-03-25 16:02:53 +01:00
2021-11-07 01:38:23 -04:00