Texas Instruments TI-RTOS returns a valid pointer to a small buffer on extremely large values. This can trigger an integer overflow vulnerability in 'HeapTrack_alloc' and result in code execution.
https://www.cisa.gov/news-events/ics-advisories/icsa-21-119-04
https://www.tenable.com/cyber-exposure/2021-threat-landscape-retrospective