]> 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:39 +0000 (14:24 +0000)
commit6574f6532d964ca6f31ff04b0a6d0f3b7aa7f215
treefdf668c6f3616b4dc2ce34dd5b5a6509deccc732
parent8dd5c2349417c0b463e87082c254eefe10e2c4fe
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