summaryrefslogtreecommitdiffstats
path: root/Python/pystate.c
diff options
context:
space:
mode:
authorT. Wouters <thomas@python.org>2023-11-11 23:56:27 (GMT)
committerGitHub <noreply@github.com>2023-11-11 23:56:27 (GMT)
commit21615f77b5a580e83589abae618dbe7c298700e2 (patch)
treebff2f57f9477d5113b69373b9c8d1301434fb1ea /Python/pystate.c
parent38035fed9ba543d587c1fbba5c463d34edf3aff9 (diff)
downloadcpython-21615f77b5a580e83589abae618dbe7c298700e2.zip
cpython-21615f77b5a580e83589abae618dbe7c298700e2.tar.gz
cpython-21615f77b5a580e83589abae618dbe7c298700e2.tar.bz2
Fix undefined behaviour in datetime.time.fromisoformat() (#111982)
Fix undefined behaviour in datetime.time.fromisoformat() when parsing a string without a timezone. 'tzoffset' is not assigned to by parse_isoformat_time if it returns 0, but time_fromisoformat then passes tzoffset to another function, which is undefined behaviour (even if the function in question does not use the value).
Diffstat (limited to 'Python/pystate.c')
0 files changed, 0 insertions, 0 deletions