]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix meridian type in getdate.y
authorJulien Rische <jrische@redhat.com>
Tue, 21 Feb 2023 09:03:35 +0000 (10:03 +0100)
committerGreg Hudson <ghudson@mit.edu>
Thu, 6 Jul 2023 21:15:02 +0000 (17:15 -0400)
commit5c2f26a24235228a436e7a03bb567a1269db71f2
treedb8cb86f8ec5c41540d7831a9c7b774ce5ff4b6f
parent81a226597d5d92c0c96a063da53a586a7cdd9bb7
Fix meridian type in getdate.y

Commit d3356bc42191c1896ab06835a2fb245e00471420 (ticket 8927)
incorrectly tagged tMERIDIAN as <Number>.  So while the lexer assigns
meridian values to the Meridian union field, the parser erroneously
reads them from the Number field.  On 64-bit IBM zSystems (s390x),
this can result in using the most recently read number as a meridian
value, leading to an abort in ToSeconds().

Fix the tMERIDIAN token type to be <Meridian>.

[ghudson@mit.edu: edited commit message]

(cherry picked from commit 0108d7d7fbb1111c062ac580e69e97103662fc2b)

ticket: 9087
version_fixed: 1.20.2
src/kadmin/cli/getdate.y