diff options
author | T. Wouters <thomas@python.org> | 2023-11-11 23:56:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-11 23:56:27 (GMT) |
commit | 21615f77b5a580e83589abae618dbe7c298700e2 (patch) | |
tree | bff2f57f9477d5113b69373b9c8d1301434fb1ea /Python/symtable.c | |
parent | 38035fed9ba543d587c1fbba5c463d34edf3aff9 (diff) | |
download | cpython-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/symtable.c')
0 files changed, 0 insertions, 0 deletions