Skip to content

Commit e0f2f1d

Browse files
MathiasVPpaldepind
andauthored
Update cpp/ql/test/library-tests/dataflow/taint-tests/taint.cpp
Co-authored-by: Simon Friis Vindum <[email protected]>
1 parent a1449bf commit e0f2f1d

File tree

1 file changed

+3
-0
lines changed
  • cpp/ql/test/library-tests/dataflow/taint-tests

1 file changed

+3
-0
lines changed

cpp/ql/test/library-tests/dataflow/taint-tests/taint.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,9 @@ void write_to_const_ptr_ptr(const char **p_out, const char **p_in) {
820820
}
821821

822822
void take_const_ptr(const char *out, const char *in) {
823+
// NOTE: We take the address of `out` in `take_const_ptr`'s stack space.
824+
// Assigning to this pointer does not change `out` in
825+
// `test_write_to_const_ptr_ptr`.
823826
write_to_const_ptr_ptr(&out, &in);
824827
}
825828

0 commit comments

Comments
 (0)