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

Co-authored-by: Simon Friis Vindum <paldepind@github.com>
This commit is contained in:
Mathias Vorreiter Pedersen
2025-01-23 13:41:48 +00:00
committed by GitHub
parent a1449bf0bd
commit e0f2f1dd80

View File

@@ -820,6 +820,9 @@ void write_to_const_ptr_ptr(const char **p_out, const char **p_in) {
}
void take_const_ptr(const char *out, const char *in) {
// NOTE: We take the address of `out` in `take_const_ptr`'s stack space.
// Assigning to this pointer does not change `out` in
// `test_write_to_const_ptr_ptr`.
write_to_const_ptr_ptr(&out, &in);
}