[PATCH] awk: Avoid int overflow after year 2038
Bernhard M. Wiedemann
bernhardout at lsmod.de
Wed Jun 3 14:05:00 UTC 2026
See https://en.wikipedia.org/wiki/Year_2038_problem
This patch was done while reviewing potential year-2038 issues in openSUSE.
Signed-off-by: Bernhard M. Wiedemann <bwiedemann at suse.de>
---
editors/awk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/editors/awk.c b/editors/awk.c
index dd8f4ac..5f7df5c 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -2663,7 +2663,7 @@ static int awk_sub(node *rn, const char *repl, int
nm, var *src, var *dest /*,in
return match_no;
}
-static NOINLINE int do_mktime(const char *ds)
+static NOINLINE time_t do_mktime(const char *ds)
{
struct tm then;
int count;
--
2.54.0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20260603/a99283c6/attachment.sig>
More information about the busybox
mailing list