File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
cpp/ql/test/query-tests/Security/CWE/CWE-193 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ void test5(int size) {
6464 }
6565
6666 for (char * p = begin; p <= end; ++p) {
67- *p = 0 ; // $ deref=L53->L62->L67 deref=L53-> L66->L67 // BAD
67+ *p = 0 ; // $ deref=L53->L66->L67 // BAD
6868 }
6969
7070 for (char * p = begin; p < end; ++p) {
@@ -804,7 +804,7 @@ void test6_no_field_flow(int size) {
804804 }
805805
806806 for (char * p = begin; p <= end; ++p) {
807- *p = 0 ; // $ deref=L794->L802->L807 deref=L794-> L806->L807 // BAD
807+ *p = 0 ; // $ deref=L794->L806->L807 // BAD
808808 }
809809
810810 for (char * p = begin; p < end; ++p) {
@@ -868,4 +868,4 @@ void test17(int size) {
868868 char * p = (char *)g_malloc (size);
869869 char * q = p + size; // $ alloc=L868
870870 char a = *q; // $ deref=L869->L870 // BAD
871- }
871+ }
You can’t perform that action at this time.
0 commit comments