From d723bb753ecd59d3ce0a82882e13258f7265aa3f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 2 Apr 2026 14:12:44 +0200 Subject: [PATCH] iso9660: add extra size regarding buffer size --- src/repart/iso9660.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/repart/iso9660.c b/src/repart/iso9660.c index ef10d05bf2..72d4c285cb 100644 --- a/src/repart/iso9660.c +++ b/src/repart/iso9660.c @@ -65,6 +65,7 @@ int iso9660_datetime_from_usec(usec_t usec, bool utc, struct iso9660_datetime *r return log_error_errno(SYNTHETIC_ERRNO(ERANGE), "GMT offset out of range."); char buf[17]; + assert_cc(sizeof(buf)-1 == offsetof(struct iso9660_datetime, zone)); /* Ignore leap seconds, no real hope for hardware. Deci-seconds always zero. */ xsprintf(buf, "%04d%02d%02d%02d%02d%02d00", t.tm_year + 1900, t.tm_mon + 1, t.tm_mday,