We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 258ed14 commit c7b4256Copy full SHA for c7b4256
tests/practical/use-after-free.c
tests/regression/79-assembly/03-asm-use-after-free.c
@@ -0,0 +1,11 @@
1
+//PARAM: --set ana.activated[+] useAfterFree --disable asm_is_nop
2
+#include <stdlib.h>
3
+
4
+int main(void) {
5
+ int *x = malloc(16);
6
+ free(x);
7
+ // write
8
+ asm ("nop" : "=x" (*x)); // WARN
9
+ // read
10
+ asm ("nop" : : "x" (*x)); // WARN
11
+}
0 commit comments