-
-
Notifications
You must be signed in to change notification settings - Fork 18
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
Coverity flagged Out-of-bounds read (CWE-125) #13
Comments
This was caught in a recent Coverity scan. Happy to help run more and confirm / trial any fixes, as you see fit 👍 |
well, coverity obviously doesn't understand that if ((channum % 9) < 2) will only allow max channum of 10 to actually pass the condition so no out of bounds index will ever happen (13 < 18) this is the problem with static analyzers - they're unreliable and the typical large amount of false positives makes one waste time coding around them rather than doing something productive - which is why I rely solely on sanitizers these days. they're reliable and free |
Thanks @kmar, Indeed - the code as a whole is good. Coverity's flagged the The I believe Coverity would be happy either way:
|
"Incorrect values read from a different memory region will cause incorrect computations. In OPL3_Reset: Out-of-bounds read from a buffer (CWE-125)"
The text was updated successfully, but these errors were encountered: