Query
Link to pull request with your CodeQL query:
Relevant PR: github/codeql#5325
Report
The query finds the places of erroneous use of logical operations. For example, unary minus does not work in front of a boolean type, and increment always evaluates to true. Or lack of precedence in an assignment and comparison expression. all of these situations can lead to an error in the program.
Describe the vulnerability. Provide any information you think will help GitHub assess the impact your query has on the open source community.
https://wiki.sei.cmu.edu/confluence/display/c/EXP00-C.+Use+parentheses+for+precedence+of+operation
Relevant PR: github/codeql#5325
Result(s)
Provide at least one useful result found by your query, on some revision of a real project.
Query
Link to pull request with your CodeQL query:
Relevant PR: github/codeql#5325
Report
The query finds the places of erroneous use of logical operations. For example, unary minus does not work in front of a boolean type, and increment always evaluates to true. Or lack of precedence in an assignment and comparison expression. all of these situations can lead to an error in the program.
Describe the vulnerability. Provide any information you think will help GitHub assess the impact your query has on the open source community.
https://wiki.sei.cmu.edu/confluence/display/c/EXP00-C.+Use+parentheses+for+precedence+of+operation
Relevant PR: github/codeql#5325
Result(s)
Provide at least one useful result found by your query, on some revision of a real project.