public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug time/28338] New: undefined behavior in __tzfile_compute with oddball TZif file
@ 2021-09-14 5:47 eggert at cs dot ucla.edu
2021-10-07 14:03 ` [Bug time/28338] " adhemerval.zanella at linaro dot org
0 siblings, 1 reply; 2+ messages in thread
From: eggert at cs dot ucla.edu @ 2021-09-14 5:47 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28338
Bug ID: 28338
Summary: undefined behavior in __tzfile_compute with oddball
TZif file
Product: glibc
Version: 2.34
Status: NEW
Severity: normal
Priority: P2
Component: time
Assignee: unassigned at sourceware dot org
Reporter: eggert at cs dot ucla.edu
Target Milestone: ---
Created attachment 13665
--> https://sourceware.org/bugzilla/attachment.cgi?id=13665&action=edit
Fix access before array start in __tzfile_compute.
__tzfile_compute reads before the beginning of an array when given a
weird-but-valid TZif file and a localtime request exactly matching a negative
leap second. Patch attached. The bug in the unpatched version occurs when (i ==
0 && leaps[i].change <= 0); the code goes on to access leaps[-1] which is out
of the array bounds.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug time/28338] undefined behavior in __tzfile_compute with oddball TZif file
2021-09-14 5:47 [Bug time/28338] New: undefined behavior in __tzfile_compute with oddball TZif file eggert at cs dot ucla.edu
@ 2021-10-07 14:03 ` adhemerval.zanella at linaro dot org
0 siblings, 0 replies; 2+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2021-10-07 14:03 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28338
Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
Target Milestone|--- |2.35
CC| |adhemerval.zanella at linaro dot o
| |rg
--- Comment #1 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Fixed on 2.35.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-10-07 14:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 5:47 [Bug time/28338] New: undefined behavior in __tzfile_compute with oddball TZif file eggert at cs dot ucla.edu
2021-10-07 14:03 ` [Bug time/28338] " adhemerval.zanella at linaro dot org
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 read-only IMAP folder(s) and NNTP newsgroup(s).