Skip to content

Redundant NULL check for 'exc' after dereference in ceval.c #135161

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

Closed
rialbat opened this issue Jun 5, 2025 · 0 comments
Closed

Redundant NULL check for 'exc' after dereference in ceval.c #135161

rialbat opened this issue Jun 5, 2025 · 0 comments
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)

Comments

@rialbat
Copy link
Contributor

rialbat commented Jun 5, 2025

Redundant comparison with a NULL value at

if (exc && PyTuple_Check(args) && PyTuple_GET_SIZE(args) == 1) {

for pointer 'exc', which was dereferenced at
PyObject *args = PyException_GetArgs(exc);

Linked PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interpreter-core (Objects, Python, Grammar, and Parser dirs)
Projects
None yet
Development

No branches or pull requests

3 participants