]> git.ipfire.org Git - thirdparty/asterisk.git/commit
func_strings.c: Prevent SEGV in HASH single-argument mode.
authorGeorge Joseph <gjoseph@sangoma.com>
Thu, 30 Jan 2025 15:49:33 +0000 (08:49 -0700)
committerGeorge Joseph <gjoseph@sangoma.com>
Tue, 4 Feb 2025 14:24:32 +0000 (14:24 +0000)
commit1d5a6f57067c6f05c6830947faa9dac8e8f893b0
tree7253252c610526db00fd8fd1b2bbe3d508497bca
parenta1b0d3492a0209617e7a5540f651c1ffc28d4061
func_strings.c: Prevent SEGV in HASH single-argument mode.

When in single-argument mode (very rarely used), a malformation of a column
name (also very rare) could cause a NULL to be returned when retrieving the
channel variable for that column.  Passing that to strncat causes a SEGV.  We
now check for the NULL and print a warning message.

Resolves: #1101
funcs/func_strings.c