Thread
:
Extension API: in parameter pair "char* buf" "int buf_sz", size is incorrect
View Single Post
04-14-2022, 04:52 PM
#
5
cfillion
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
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
__________________
💖 Donate (PayPal)
|
Sponsor (GitHub)
|
The Endless Journey (Keyboard Ensemble)
ReaPack
, a package manager for REAPER
| SWS 2.14 is now available in ReaPack
[new!]
Developer tools:
Lua profiler
|
Interactive ReaScript
|
ReaPack Editor
|
ReaImGui
Last edited by cfillion; 04-16-2022 at
03:44 PM
.
cfillion
View Public Profile
Send a private message to cfillion
Visit cfillion's homepage!
Find More Posts by cfillion