From: Andrew Hamilton <adhamilt@gmail.com>
To: grub-devel@gnu.org
Cc: daniel.kiper@oracle.com, masayuki.moriyama@miraclelinux.com,
andrea.biardi@viavisolutions.com, phcoder@gmail.com,
Andrew Hamilton <adhamilt@gmail.com>
Subject: [PATCH v4 0/2] Support dates outside of 1901..2038 range
Date: Mon, 25 Aug 2025 22:17:36 -0500 [thread overview]
Message-ID: <20250826031738.86977-1-adhamilt@gmail.com> (raw)
Support dates outside of 1901..2038.
Add tests for dates outside this range.
Vast majority of the work was done by Vladimir Serbinenko
Fixes: https://savannah.gnu.org/bugs/?63894
Fixes: https://savannah.gnu.org/bugs/?66301
V3 -> V4: Add additional commentary for a few magic numbers
and fix some coding standard issues.
V2 -> V3: Added additional commentary to datetime.c to describe
the origin of some of the numbers used in calculations.
Andrew Hamilton (2):
datetime: Support dates outside of 1901..2038 range
date_unit_test: test dates outside of 32-bit unix range
grub-core/lib/datetime.c | 64 ++++++++++++++++++++++++++++++++--------
include/grub/datetime.h | 27 ++++++++++++-----
tests/date_unit_test.c | 44 +++++++++++++++++++++------
3 files changed, 106 insertions(+), 29 deletions(-)
--
2.39.5
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel
next reply other threads:[~2025-08-26 3:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-26 3:17 Andrew Hamilton [this message]
2025-08-26 3:17 ` [PATCH v4 1/2] datetime: Support dates outside of 1901..2038 range Andrew Hamilton
2025-08-26 15:06 ` Daniel Kiper via Grub-devel
2025-08-26 15:28 ` Andrew Hamilton
2025-08-26 16:53 ` Daniel Kiper via Grub-devel
2025-08-26 17:00 ` Andrew Hamilton
2025-08-26 3:17 ` [PATCH v4 2/2] date_unit_test: test dates outside of 32-bit unix range Andrew Hamilton
2025-08-26 15:25 ` Daniel Kiper via Grub-devel
2025-08-26 15:35 ` Andrew Hamilton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250826031738.86977-1-adhamilt@gmail.com \
--to=adhamilt@gmail.com \
--cc=andrea.biardi@viavisolutions.com \
--cc=daniel.kiper@oracle.com \
--cc=grub-devel@gnu.org \
--cc=masayuki.moriyama@miraclelinux.com \
--cc=phcoder@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).