mirror of
https://github.com/github/codeql.git
synced 2026-04-26 01:05:15 +02:00
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:
committed by
GitHub
parent
a1449bf0bd
commit
e0f2f1dd80
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user