From: Lennart Poettering Date: Thu, 2 Apr 2026 12:12:44 +0000 (+0200) Subject: iso9660: add extra size regarding buffer size X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d723bb753ecd59d3ce0a82882e13258f7265aa3f;p=thirdparty%2Fsystemd.git iso9660: add extra size regarding buffer size --- diff --git a/src/repart/iso9660.c b/src/repart/iso9660.c index ef10d05bf26..72d4c285cb6 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,