-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Handle errors correctly in tmtotuple
in timemodule
#118998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
May 13, 2024
Loading
Loading status checks…
sobolevn
added a commit
to sobolevn/cpython
that referenced
this issue
May 13, 2024
Loading
Loading status checks…
sobolevn
added a commit
that referenced
this issue
May 13, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 13, 2024
Loading
Loading status checks…
…e` (pythonGH-118999) (cherry picked from commit fc75792) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 13, 2024
Loading
Loading status checks…
…e` (pythonGH-118999) (cherry picked from commit fc75792) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
sobolevn
added a commit
that referenced
this issue
May 13, 2024
sobolevn
added a commit
that referenced
this issue
May 13, 2024
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug report
This call is problematic:
cpython/Modules/timemodule.c
Line 465 in f526314
It can return
NULL
in theory.These calls also can return
NULL
:cpython/Modules/timemodule.c
Lines 477 to 478 in f526314
cpython/Modules/timemodule.c
Lines 481 to 482 in f526314
This error guard in the end will only show the last error:
cpython/Modules/timemodule.c
Lines 486 to 489 in f526314
XDECREF
whenv
cannot beNULL
at this point?Refs #116714
I will send a PR adding our regular macro for the job.
Linked PRs
tmtotuple
intimemodule
#118999tmtotuple
intimemodule
(GH-118999) #119018tmtotuple
intimemodule
(GH-118999) #119019The text was updated successfully, but these errors were encountered: