From nobody Sun Aug 10 14:50:09 2025 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4c0LKF3Jwkz644wY for ; Sun, 10 Aug 2025 14:50:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4c0LKF2gpQz3XN1 for ; Sun, 10 Aug 2025 14:50:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754837409; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sLVfUK+h8MKeQBUsbqXIJwlnVJ5Mzk3YD8ph4t1vtX4=; b=PhAM2vFcM1ZJhkMYR76i918TN8Tnm9iNbf6WOtoKLISGdX3kOD3e5Xk4hHuP8HVEvK+81J xEFpzDbm1eCYll+N/OnW8HWCRu9ONswc9N9adhj4ew8xTGXYT26C1Hzub8UEvsD4kzptzM OiOHHvUVBcRRWp4CR1xWco9OZaDLdG305x8um4Ny8rSJnl8hCpM8NVgGkGX44Si15igZ8F 2J4LxXi8xnFvSzJU1l+eHrgV/GM+PsVyKjbHHZKGLTPtft7EKflaH8rJ99mj4tEYxz7AAG unlGxKVr21UbBx/K6wOIYsylo43JBy/v0mvb4Vv+ypoXDO3zpoJcIxxOzGJ2cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1754837409; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sLVfUK+h8MKeQBUsbqXIJwlnVJ5Mzk3YD8ph4t1vtX4=; b=gN+snQB6pbb1g/o94PmSdA6qYg8hSU03ROwt1ORomJc7H9fzVjTBxledskGFu1swGC8PEy cbGpwaBurCo9yE6eN2gNicSekcUNGvap5C9YkuHVeE3/dG+F5CjGkfYU5BcD6e0uv1ixed pucomMIEWEJ1NtnM5pNSqGxDOwF51pKV4jsyRM1lft3oBlwA6b4vU8ZRYNgibQ1UIwcm9o JwxdKWIfCe40d636+mtFU0UHLJCY35uK72+zQgkK3V0R6wO8rxykWFMa8qilXzst+MPlHv YmCOIbZ2dEdcuNesqfhY6emhyTvGkF1M10DDuANLceu6SrL10ZQMuYwlPOMHww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1754837409; a=rsa-sha256; cv=none; b=kGQ8zSOtMUvWolteIpRLPyvTTG+/8RgYWED7ysEOAGbJdrZYA7lumlhNJPEOWh1jGVJeYH oRSorudK0pBtCO9CnXqsQ3mWN8xF9SLQsHEgBSO91IR051QEHTEqd8+TS6Qalc8KMCJLOB So1XQs11AaxECdyngZiP3Z4zRf+WuA51qw2Aduq3CbLClvPpAjDSdrQzZLYldndRTC9ORe 6Se8VhEW7IB6cNJIk411UjFBnQCKj2TbYMb1SFpbTu/8tshebZ/Zx3FE33BGOfVRKI+H1S Idc6EKg0tQzY+VGoaHoLjU4mCcFsbkWSyjF3ptcxhREBOzA3CUkGuYBbat3OEQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4c0LKF230bz19C8 for ; Sun, 10 Aug 2025 14:50:09 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 57AEo9cd043364 for ; Sun, 10 Aug 2025 14:50:09 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 57AEo9RU043363 for bugs@FreeBSD.org; Sun, 10 Aug 2025 14:50:09 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 145341] localtime(3) doesn't handle overflow Date: Sun, 10 Aug 2025 14:50:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 8.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: wosch@FreeBSD.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cc Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D145341 Wolfram Schneider changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Open |In Progress CC| |wosch@FreeBSD.org --- Comment #5 from Wolfram Schneider --- I cannot reproduce this error on a 64 bit system running -current or stable= /14. With a time_t value of 67768036191676800 the gmtime function will return NU= LL due the year overflow and set the errno value to 84. time_t: 67768036191676799 time_t size in bytes: 8 t:67768036191676798, tp: 0x822c4b710 errno:0 sec: 58, min:59, hour:23, mday:31, mon:11, year:2147483647, wday:3, yday:364, isdst:0, gmtoff: 0, zone: UTC t:67768036191676799, tp: 0x822c4b710 errno:0 sec: 59, min:59, hour:23, mday:31, mon:11, year:2147483647, wday:3, yday:364, isdst:0, gmtoff: 0, zone: UTC t:67768036191676800, tp: 0x0 errno:84 --=20 You are receiving this mail because: You are the assignee for the bug.=