Although it's quite unlikely that we will see shared memory objects in practice that are greater than 2GiB, there is a possibility of integer overflow when comparing intptr_t and size_t, since the former is signed and the latter is unsigned. Explicitly check to ensure that the addend is less than INTPTR_MAX before subtraction. This fixes CID 487734 Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com> |
||
|---|---|---|
| .. | ||
| acpi | ||
| cpp | ||
| crc | ||
| hash | ||
| heap | ||
| libc | ||
| mem_blocks | ||
| net_buf | ||
| open-amp | ||
| os | ||
| posix | ||
| runtime | ||
| smf | ||
| utils | ||
| CMakeLists.txt | ||
| Kconfig | ||