Message ID | 20250105055750.1668721-48-eggert@cs.ucla.edu (mailing list archive) |
---|---|
State | New |
Headers |
Return-Path: <libc-alpha-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C2A93385840B for <patchwork@sourceware.org>; Sun, 5 Jan 2025 06:19:05 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail.cs.ucla.edu (mail.cs.ucla.edu [131.179.128.66]) by sourceware.org (Postfix) with ESMTPS id 9F9F6385842C for <libc-alpha@sourceware.org>; Sun, 5 Jan 2025 06:00:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9F9F6385842C Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=cs.ucla.edu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=cs.ucla.edu ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9F9F6385842C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=131.179.128.66 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736056817; cv=none; b=aJFr9u9LMiFJ6zEjddsZrpQ7fZHQpiBy7qypPVcD+yPE3p17lLp2Iht61MziwoLg6bCIrpYUeD/qDcg7jypQBGTvO/ukR54/6Jwuyu8zcU5LV9GP/d4xZscwfjYTfsLBd2hXJkzuEZJAOjLkAYshTj/bEn52+brwMKmsFzDpies= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1736056817; c=relaxed/simple; bh=1L3MNvU0Mhue9HLN+nmR7USia6oroscReyJH+5NPDw0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=oY+hIqXpA8/ZnyKjxpw4rUXVsHVqwo0hIwvn7Uupb5vDnQrnhk2BuWK7ubNT8eQQ4PQiaUlqyDwG1NfFr/NN1ZfCqSEjgpMpMaQRpEArSMD6doV70I3Rordy2KYzv96uFh/IiPRwPGRM/aIhnkhw6cQ++sXX0u1yhAea6SoJaHA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F9F6385842C Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=cs.ucla.edu header.i=@cs.ucla.edu header.a=rsa-sha256 header.s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C header.b=NcorpVSS Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 228313C123847 for <libc-alpha@sourceware.org>; Sat, 4 Jan 2025 22:00:17 -0800 (PST) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id qvuLPJcrROl3; Sat, 4 Jan 2025 22:00:16 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id D45F33C123844; Sat, 4 Jan 2025 22:00:16 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu D45F33C123844 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1736056816; bh=ADc5JthCh5yOh6pHWAuXVU2Q95ufdm46aSbboRrxZP0=; h=From:To:Date:Message-ID:MIME-Version; b=NcorpVSSZkX2G6Wt+uOlQesl1+d9jVAhEGlFDVZjNjLIF/siHD9OuI8pU8/aDKo+M sx/TAKyXaqxIs4mTkeuwLfx/pqMXXQIflR55el3R8zSJHTZVz/SvGZlSBkGxgTFp38 TDmNBfMWz9L3+I22t7YKWjMaI6uLAf7iC3tjgWAmvE+p+CTGCuMXurQ8gicY5lWTku c3SlDxhzIjvhf4ODm6RAkYYkDU9HqgRaE0SJQ3Vv5CKoBpY3kDasyrgGOumXO8cAd8 0m8SGGpSpegVKGwTkFiIVkAqHwbxRaDfcm9Rf9pPiWYXsLoMtySZwdtRz0jQ6URlDT oaKetd5hvotBg== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id 9iPF3N-1pG2w; Sat, 4 Jan 2025 22:00:16 -0800 (PST) Received: from wing.home (unknown [47.154.28.214]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id B0F713C082EB9; Sat, 4 Jan 2025 22:00:16 -0800 (PST) From: Paul Eggert <eggert@cs.ucla.edu> To: libc-alpha@sourceware.org Cc: Paul Eggert <eggert@cs.ucla.edu> Subject: [PATCH 47/59] Minor compute_change widening tweak Date: Sat, 4 Jan 2025 21:57:22 -0800 Message-ID: <20250105055750.1668721-48-eggert@cs.ucla.edu> X-Mailer: git-send-email 2.45.2 In-Reply-To: <01207110-bd60-46ae-9c08-fb39c2011067@cs.ucla.edu> References: <01207110-bd60-46ae-9c08-fb39c2011067@cs.ucla.edu> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-10.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list <libc-alpha.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libc-alpha/> List-Post: <mailto:libc-alpha@sourceware.org> List-Help: <mailto:libc-alpha-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libc-alpha>, <mailto:libc-alpha-request@sourceware.org?subject=subscribe> Errors-To: libc-alpha-bounces~patchwork=sourceware.org@sourceware.org |
Series |
time: sync mktime from Gnulib
|
|
Checks
Context | Check | Description |
---|---|---|
redhat-pt-bot/TryBot-apply_patch | success | Patch applied to master at the time it was sent |
Commit Message
Paul Eggert
Jan. 5, 2025, 5:57 a.m. UTC
* time/tzset.c (compute_change): Subtract before widening. This can't overflow. --- time/tzset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/time/tzset.c b/time/tzset.c index b5bbd05573..f3af960620 100644 --- a/time/tzset.c +++ b/time/tzset.c @@ -533,7 +533,7 @@ compute_change (tz_rule *rule, long long int year) /* T is now the Epoch-relative time of 00:00:00 UT on the day we want. Just subtract the UT offset and add the time of day, and we're done. */ - rule->change = t - rule->offset + rule->secs; + rule->change = t - (rule->offset - rule->secs); rule->computed_for = year; }