Message 1 of 3
Potential buffer overrun in script_interface.cpp, copy_lua_variable_to_c
Not applicable
07-13-2017
04:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
if you're on a release build of Stringray and do a Lua::pushstring and the size of the string exceeds the maximum string length you'll get a buffer overrun in script_interface.cpp, copy_lua_variable_to_c. The code in question does a strcpy but the XENSURE macro will expand to nothing, so there's nothing to catch this.
Thanks.
Reply
Reply