Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27fe996 commit 6a14748Copy full SHA for 6a14748
1 file changed
cpp/ql/test/query-tests/Likely Bugs/Arithmetic/BadAdditionOverflowCheck/test.cpp
@@ -144,3 +144,9 @@ void useMarkRange(int offs) {
144
markRange(buffer, offs, offs + 10);
145
markRange(buffer, offs, offs); // GOOD (comparison is in the macro)
146
}
147
+
148
+#define MY_MACRO(x) (x)
149
150
+void myMacroTest(int x) {
151
+ MY_MACRO(x == x); // BAD [NOT DETECTED]
152
+}
0 commit comments