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
fix request for cpp exceptions #7177
base: main
Are you sure you want to change the base?
Conversation
|
Thanks!
|
|
Thanks. |
|
@JarLob |
cpp/ql/src/experimental/Security/CWE/CWE-703/FindIncorrectlyUsedExceptions.ql
Show resolved
Hide resolved
LGTM.
We lose 1 good result (in godotengine/godot), where a std::exception is created, converted to int and returned - which does not seem very sensible. All the other results removed by this change look like they were false positives. I think that's a good tradeoff!
|
Let me re-run it on LGTM before merging.
…On 2021-11-19, Fri at 15:41, Geoffrey White ***@***.***> wrote:
***@***.**** approved this pull request.
LGTM.
We lose 1 good result (in godotengine/godot), where a std::exception is
created, converted to int and returned - which does not seem very
sensible. All the other results removed by this change look like they were
false positives. I think that's a good tradeoff!
|
|
Results looks good. @geoffw0 @MathiasVP Do you think it is worth to change the message to something like "Object creation of exception type on stack. Did you forget the |
I definitely prefer "Object creation of exception type on stack. Did you forget the throw keyword?" |
|
@MathiasVP |
Done. |
|
maybe something else is needed from me for this PR to be accepted? |
|
This all looks good to me. I'd be happy to merge this as soon as @JarLob is happy with it. |
good day @geoffw0
I want to make changes to this request.
to qualify for the reward program, thank you.
The text was updated successfully, but these errors were encountered: