-
Notifications
You must be signed in to change notification settings - Fork 116
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 issues #559
Comments
Thanks! Is there any way we can run those tests? |
I don’t think coverity accept new opensource projects for free. I was subscribed at the time and get free reports for all the dependencies i use in radare2. |
Oh, I am not familiar with coverity, thanks for explaining! Cool to hear you are using it in radare2! I'll take a look at those issues as time allows. |
We plan to fuzz it and test qjsng more widely and report more issues soon. We have also some portability patches that may be good to be maintained upstream :) |
Excellent! |
Yeah, I found some things here that I needed to patch and I would be really glad to share it 💪 |
PRs are most welcome! 🙏 |
False positive, js_map_set() accesses argv[1] only when
False positive, only shifts 5 bits max but uses a lookup table, probably what confuses coverity
That's in r2's glue layer :-)
False positive, cannot realistically underflow/overflow
False positive, cannot realistically underflow/overflow; strings are max 2 GB
Legit, deserializer should check that
Legit, but harmless, just dead code
Legit, I think; needs bounds checks
False positive, coverity seems to get confused by the negative pointer arithmetic
False positive? I don't get why coverity thinks it's unreachable
Legit, but harmless, just dead code
Legit, 95% confidence rate. It's somewhat obscured but js_resize_array doesn't zero new elements when growing the idx_to_atom array
False positive,
False positive, looks intentional (rounding when fraction >= .5) but probably not Obviously Intentional to a tool like coverity; maybe make more explicit
Legit, looks like we forget to actually read the JS_FUNC type from the function object
Legit, deserializer should check |
running it thru coverity i get the following issues, so i'm lazily reporting them in here ^^
The text was updated successfully, but these errors were encountered: