View Single Post
Old 04-14-2022, 04:52 PM   #5
cfillion
Human being with feelings
 
cfillion's Avatar
 
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
Default

Scripts are allowed to set the size parameter bigger than the buffer:

Code:
// void Foo(const char *buf, int buf_sz)

reaper.Foo('a\0b\0', 1<<31) -- buffer over-read/crash

Last edited by cfillion; 04-16-2022 at 03:44 PM.
cfillion is offline   Reply With Quote