From nobody Mon Aug 19 13:58:40 2024 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 4WnZ282V5Lz5T5C4 for ; Mon, 19 Aug 2024 13:58:40 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WnZ280zM8z4nl3 for ; Mon, 19 Aug 2024 13:58:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724075920; a=rsa-sha256; cv=none; b=GxiJrz/9zmusGZauDzxV0z6c+2DZWZ0ESwc2daOEkMOwKhc+nZxyeMnsaAmnecYJ5U0H6W TAqgt3Byxynz8+tLs54k7rkZHrvExaTlYRMcr4hlsvWOuW8SFuTpIdXi3n6fRMrgTmlyd/ zY9HuBayacq0B8pYwF85V+4q7drMYhAr3CvJaRF/gZy/qcAGun75JJnmXVVOWud3h2lcXf meW+mSR94EDGqYpRlQzt+cf6s9Lo+dYZ0oOkMkiXBuMH2IFbLwBY8gx3EXtYScKhWh0wxT NmWFHWjCJuIp1eHH/hYqmlC9bauV9iwjQNw6u5mCLd3wjyyObpqRNHydvWFbRw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724075920; 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=L/OJ/BBQXxcZej9g15vQivdQ7enbMonFPTkGzgIFlGE=; b=HLchHCFBe3WXuK+J+PdDDHKGyzoURLCuUZoqSVsRMCwkpYbfWh0RN9IflL0V/f+CI4CfUS Yj8ZqfrnVOAT7OjD3J9CkbeKXVlB5s0yxOvzTVXkzqyx9B86Q1I9ybuspXeB+cXqvB3zjB YyTb7qNPxKh9LfsYdMOOK9I9yK4SASHMcudpcmob7vVQCA6ULQB1BEfsJOFxRXSH5u6tXD qll8FSPinMpg11+FN/HqSGo7Ya4XH/4ZmDtSIaFQ+BsYkD2IkuM1woVvRUnvE56y9QU9Ku 44IBpAEpmED+DPiestTngU95BakmGMfob+TuM1WykqMCniLJ40XNiLffI3ntxA== 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 4WnZ280TM1zK9k for ; Mon, 19 Aug 2024 13:58:40 +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 47JDwdEm085693 for ; Mon, 19 Aug 2024 13:58:39 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 47JDwd31085692 for bugs@FreeBSD.org; Mon, 19 Aug 2024 13:58:39 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 280922] Change 46c599340f187db577b9212ab18022f3c7380c68 fixes one case (localtime / gmtime -> strftime('%s'), but breaks another Date: Mon, 19 Aug 2024 13:58:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 14.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: des@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3D280922 --- Comment #2 from Dag-Erling Sm=C3=B8rgrav --- Your patch makes no sense. You assume that fields that weren't explicitly initialized are zero, but that's frequently not the case. The correct fix = is to change cpython to explicitly initialize its `struct tm` either with an initializer or with `memset()`. --=20 You are receiving this mail because: You are the assignee for the bug.=