-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[BUG]: Coverity scan issue: Possible dereferencing iterator pos though it is already past the end of its container. #4822
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
triage
New bug, unverified
Comments
Did you try this with |
Yes, doing |
This appears to be happening with g++13 (not just coverity) now where it wasn't happening with older compilers.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
2.10.2
Problem description
Scan highlights possible issue in function
clear_patients
in "class.h" file:I assume the tools expects explicit check before dereferencing:
If such a change is agreeable, I'd be happy to open a PR.
Feel free to resolve this issue if you are against this change and believe this issue is a false positive in the Coverity scan.
Reproducible example code
No response
Is this a regression? Put the last known working version here if it is.
Not a regression
The text was updated successfully, but these errors were encountered: