]> 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)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Tue, 4 Feb 2025 14:24:46 +0000 (14:24 +0000)
commit75840bd4a514f70ff771382362258d2f62437703
treed69afc40fa73cb3bccca1d6640a9319ad440fd9a
parent03f1c246746655a21e4f6d66fb4be5aef8b301f8
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