GNU bug report logs -
#55673
[PATCH] cache: Catch valid integer for 'last-expiry-cleanup'.
Previous Next
Reported by: zimoun <zimon.toutoune <at> gmail.com>
Date: Fri, 27 May 2022 08:26:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Maxime,
On Fri, 27 May 2022 at 15:04, Maxime Devos <maximedevos <at> telenet.be> wrote:
> scheme@(guile-user)> (call-with-input-file "a" read)
> ice-9/boot-9.scm:1669:16: In procedure raise-exception:
> In procedure scm_lreadr: a:2:1: end of file in string constant
This is an ad-hoc example and not a real test case.
--8<---------------cut here---------------start------------->8---
$ echo "foo" > ~/.cache/guix/inferiors/last-expiry-cleanup
$ cat ~/.cache/guix/inferiors/last-expiry-cleanup
foo
$ ./pre-inst-env guix time-machine --commit=9d795fb -- help
Usage: guix OPTION | COMMAND ARGS...
Run COMMAND with ARGS, if given.
--8<---------------cut here---------------end--------------->8---
As previously mentioned, the patch fixes:
- empty file
- non-integer
I am not able to imagine an incomplete file worse than \\x00.
> The difference is that ^R is interpreted as a symbol, whereas "foo
> cannot be interpreted as anything at all by 'read'.
I do not understand what you mean and I think you are overengineering.
If you are able to produce a corrupted file which breaks "guix
time-machine", then we can examine. Else let move on. :-)
Cheers,
simon
This bug report was last modified 2 years and 351 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.