Commit 13cd2bf
Fix undefined behaviour in datetime.time.fromisoformat() (pythonGH-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).
(cherry picked from commit 21615f7)
Co-authored-by: T. Wouters <thomas@python.org>1 parent cd3e2d3 commit 13cd2bf
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4649 | 4649 | | |
4650 | 4650 | | |
4651 | 4651 | | |
4652 | | - | |
| 4652 | + | |
4653 | 4653 | | |
4654 | 4654 | | |
4655 | 4655 | | |
| |||
0 commit comments