Files
codeql/cpp/ql/src/Likely Bugs/Arithmetic/ComparisonWithCancelingSubExprExample.cpp
2018-08-02 17:53:23 +01:00

4 lines
123 B
C++

bool compare_xyz(unsigned short x, unsigned short y, unsigned short z) {
return (x + y < x + z); // x can be canceled
}