Query PR
github/codeql#8247
Language
C/C++
CVE(s) ID list
CVE-2021-43618
CWE
CWE-190: Integer Overflow or Wraparound
Report
- in integer overflow, signed or unsigned.
- when the multiplication result overflows, we can get truncated data, which can lead to problems when using the result. (pointer offset, memory allocation).
- The query is looking for an explicit late conversion that would have happened anyway.
- The subsequent transformation makes the detection either a security error detection or a stylistic error detection.
Are you planning to discuss this vulnerability submission publicly? (Blog Post, social networks, etc).
Blog post link
https://twitter.com/ihsinme/status/1501068796202782725