From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UNnpHru0kGIZFwEAbAwnHQ (envelope-from ) for ; Fri, 27 May 2022 13:23:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id OEPZHru0kGK+6AAAauVa8A (envelope-from ) for ; Fri, 27 May 2022 13:23:39 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2E9A6FEB3 for ; Fri, 27 May 2022 13:23:39 +0200 (CEST) Received: from localhost ([::1]:48978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuY4A-0000wA-Cy for larch@yhetil.org; Fri, 27 May 2022 07:23:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39086) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuXtw-0000aH-0D for guix-patches@gnu.org; Fri, 27 May 2022 07:13:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:39010) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nuXtv-0006cE-L1 for guix-patches@gnu.org; Fri, 27 May 2022 07:13:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nuXtu-0000sp-Eh for guix-patches@gnu.org; Fri, 27 May 2022 07:13:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55673] [PATCH] cache: Catch valid integer for 'last-expiry-cleanup'. Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 27 May 2022 11:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55673 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: 55673@debbugs.gnu.org, Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 55673-submit@debbugs.gnu.org id=B55673.16536499733381 (code B ref 55673); Fri, 27 May 2022 11:13:02 +0000 Received: (at 55673) by debbugs.gnu.org; 27 May 2022 11:12:53 +0000 Received: from localhost ([127.0.0.1]:32907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuXtl-0000sT-7K for submit@debbugs.gnu.org; Fri, 27 May 2022 07:12:53 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:57734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nuXtj-0000sJ-Ag for 55673@debbugs.gnu.org; Fri, 27 May 2022 07:12:52 -0400 Received: from [172.20.10.5] ([188.188.253.34]) by baptiste.telenet-ops.be with bizsmtp id bnCo2700N0lHqdo01nCoE9; Fri, 27 May 2022 13:12:49 +0200 Message-ID: <24883447c6f3d9b27bcc6e11e117ee974916e091.camel@telenet.be> From: Maxime Devos Date: Fri, 27 May 2022 13:12:48 +0200 In-Reply-To: References: <20220527082519.501697-1-zimon.toutoune@gmail.com> <9432b1161007faacc0bd0e58da0bf839e2e8ec39.camel@telenet.be> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-0wDSiBAWS2r3RBlQeURS" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r22; t=1653649969; bh=00z/H1zefrsDqTex5tQxKSi8x+tN4NRMcR+ntrbClps=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=JEhXYDNMIYFTYmRmzAZ5d92wIRzCjj059aoGamNTnFdXUJ1kspNiLmmDYNtHIy+L6 Mb8VQD/pyvyIyR831z+09WLi/Ce7zf6xre8jaSZFQVOgmtPw6WOiK2a/WK124de5Bd sqD50Sh1C2otx4jkRYPfBWpubdXoRnJYdG0j18xLXMDrKmBogdhIX42GS6YQAt6icD MRZNKxp/PozU5z1WORomXpYxPIPcsFXy8KzXNwUjooHruuWpno+/qE64B5RXN1YSy5 AFznuMYhGJnQw1MUJ0rzVCo7ECAB0D5PA05osMRmMpDwqgMGq5eFRJwVLbiBicOGxB y0JtMc+06j0XA== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653650619; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=00z/H1zefrsDqTex5tQxKSi8x+tN4NRMcR+ntrbClps=; b=nwe3n1FFOPNV7uJLjd7DWWR36rg67vUQ4Bnv8bJZOdVxqeo0B5cr4crvG5xbb+AsbERXet pxPi9r6j7gcjW48q7PCCbR+lJT0vg2uj9UUmvTpXhD/QUVtzHr3DQaXwBNKfl32lNutRuS 72Bbd9HzWg+bKvSyfCa5MOan9DFsbp5Hutozz1Sq3+dQ3swhLb1CHW1N7jPI3CD/Kr6Klm dj85SS98Gtv8C3HK2gKm667mQpBAgLre/vhDcvsBwyIIUAD5So8pa/J2+gYIie4ge3Gtfz VyVit6u+/lOtLvrXLX+oUjQDdJqB700S+vOU/BtVQnk74R0Min7kUr4HiPfHbw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653650619; a=rsa-sha256; cv=none; b=l9HHqQRb0weJ68XEJlzClqjFkXXhPYYAKQjs12RQXtvhU/FdVCvnT5lixgIhxDZfm7lsnD DSrApMbkYHQfJTjmgfSHvRyVZ5XdXiR0Nl+0ci+FoTsJrxJFBxwLui2RxbV95QKe3lXrVy uLLrQ/pmu+eNMUnIJ7avbjJ+gOWdTHFPlp8E8yYKvaekAVu/IvagAVNfFXq8fF6iwBuvfM RF37QvmE9lwqYnKEPDiLKjl5CbNJZRBjku4hSGVshlZBcZu/jfhxnL9SnO9CBYmpk9UVY8 BmhKP+SlpL7zNVROA4+2VHXkPpJd1ChMcTFYEOUpSe5hF4Er0/o3NQ4TaIuwrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=JEhXYDNM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 2.95 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=telenet.be header.s=r22 header.b=JEhXYDNM; dmarc=fail reason="SPF not aligned (relaxed)" header.from=telenet.be (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2E9A6FEB3 X-Spam-Score: 2.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: zkq4LBWHGfAg --=-0wDSiBAWS2r3RBlQeURS Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable zimoun schreef op vr 27-05-2022 om 12:28 [+0200]: > > It might be possible to end up wit hsomething more bogus on some > > file > > system, it's possible to end up with something even more boguse > > (e.g., > > "unterminated-string), which 'read' doesn't understand.=C2=A0 I suggest > > using 'get-string-all' + 'number->string'. >=20 > I do not see how.=C2=A0 The integer is written by Guile using 'write'. > From my understanding, 'read' understands 'write', and vice-versa. But what if the computer crashes while the file is being made, and due to file system details, when rebooted, you end up with a non-integer? E.g. "unterminated-string. Greetings, Maxime. --=-0wDSiBAWS2r3RBlQeURS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYpCyMBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7gT8AQD2twn1+E72CzCF9kLMvtQWTUFo yITl2m/GN9JUzvttrwD/UDUQcO+I2D/DRY4wySSsxMlAo3n7uXDN6xNo6nO1gwU= =iTSw -----END PGP SIGNATURE----- --=-0wDSiBAWS2r3RBlQeURS--