File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
cpp/ql/test/library-tests/dataflow/taint-tests Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -6646,6 +6646,17 @@ WARNING: Module TaintTracking has been deprecated and may be removed in future (
66466646| taint.cpp:738:17:738:31 | call to indirect_source | taint.cpp:739:30:739:35 | source | |
66476647| taint.cpp:739:22:739:28 | call to realloc | taint.cpp:740:7:740:10 | dest | |
66486648| taint.cpp:739:30:739:35 | source | taint.cpp:739:22:739:28 | call to realloc | TAINT |
6649+ | taint.cpp:743:40:743:45 | buffer | taint.cpp:744:5:744:10 | buffer | |
6650+ | taint.cpp:743:40:743:45 | buffer | taint.cpp:745:27:745:32 | buffer | |
6651+ | taint.cpp:744:4:744:10 | * ... | taint.cpp:744:3:744:10 | * ... | TAINT |
6652+ | taint.cpp:744:5:744:10 | buffer | taint.cpp:744:4:744:10 | * ... | TAINT |
6653+ | taint.cpp:744:14:744:19 | call to source | taint.cpp:744:3:744:21 | ... = ... | |
6654+ | taint.cpp:745:19:745:25 | call to realloc | taint.cpp:743:40:743:45 | buffer | |
6655+ | taint.cpp:745:19:745:25 | call to realloc | taint.cpp:745:3:745:36 | ... = ... | |
6656+ | taint.cpp:745:19:745:25 | call to realloc | taint.cpp:746:10:746:15 | buffer | |
6657+ | taint.cpp:745:27:745:32 | buffer | taint.cpp:745:19:745:25 | call to realloc | TAINT |
6658+ | taint.cpp:746:9:746:15 | * ... | taint.cpp:746:8:746:15 | * ... | TAINT |
6659+ | taint.cpp:746:10:746:15 | buffer | taint.cpp:746:9:746:15 | * ... | TAINT |
66496660| vector.cpp:16:43:16:49 | source1 | vector.cpp:17:26:17:32 | source1 | |
66506661| vector.cpp:16:43:16:49 | source1 | vector.cpp:31:38:31:44 | source1 | |
66516662| vector.cpp:17:21:17:33 | call to vector | vector.cpp:19:14:19:14 | v | |
Original file line number Diff line number Diff line change @@ -738,4 +738,10 @@ void test_realloc() {
738738 char *source = indirect_source ();
739739 char *dest = (char *)realloc (source, 16 );
740740 sink (dest); // $ ir MISSING: ast
741+ }
742+
743+ void test_realloc_2_indirections (int **buffer) {
744+ **buffer = source ();
745+ buffer = (int **)realloc (buffer, 16 );
746+ sink (**buffer); // $ MISSING: ir,ast
741747}
You can’t perform that action at this time.
0 commit comments