Files
asterisk/pbx
Alexey Khabulyak 2d9a75c68e pbx_lua.c: segfault when pass null data to term_color function
This can be reproduced under certain curcomstences.
For example: call app.playback from lua with invalid data: app.playback({}).
pbx_lua.c will try to get data for this playback using lua_tostring function.
This function returs NULL for everything but strings and numbers.
Then, it calls term_color with NULL data.
term_color function can call(if we don't use vt100 compat term)
ast_copy_string with NULL inbuf which cause segfault. bt example:
ast_copy_string (size=8192, src=0x0, dst=0x7fe44b4be8b0)
at /usr/src/asterisk/asterisk-20.11.0/include/asterisk/strings.h:412

Resolves: https://github.com/asterisk/asterisk/issues/1363
(cherry picked from commit a321038cad)
2025-09-10 19:52:59 +00:00
..
2021-11-15 18:30:07 -06:00
2023-05-08 18:13:35 +00:00
2025-03-20 18:18:28 +00:00
2016-10-27 09:53:55 -04:00