mirror of
https://github.com/github/codeql.git
synced 2026-06-15 18:01:10 +02:00
4 lines
107 B
C++
4 lines
107 B
C++
bool not_in_range(T *ptr, T *ptr_end, size_t i) {
|
|
return ptr + i >= ptr_end || ptr + i < ptr; // BAD
|
|
}
|