CodeQL documentation
CodeQL resources
CodeQL overview
CodeQL guides
Writing CodeQL queries
CodeQL language guides
Reference docs
QL language reference
CodeQL standard-libraries
CodeQL query help
Source files
CodeQL repository
Academic
QL publications
CodeQL query help for C and C++
‘new’ object freed with ‘delete[]’
‘new[]’ array freed with ‘delete’
Accidental rethrow
Ambiguously signed bit-field member
Arithmetic operation assumes 365 days per year
Array argument size mismatch
Array offset used before range check
Assignment where comparison was intended
Authentication bypass by spoofing
Avoid floats in for loops
Bad check for oddness
Bad check for overflow of integer addition
Badly bounded write
Block with too many statements
CGI script vulnerable to cross-site scripting
Call to
memset
may be deleted
Call to a function with one or more incompatible arguments
Call to alloca in a loop
Call to function with extraneous arguments
Call to function with fewer arguments than declared parameters
Call to memory access function may overflow buffer
Cast between HRESULT and a Boolean type
Cast from char* to wchar_t*
Catching by value
Certificate not checked