]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_geolocation: Fix segfault when there's an empty element
authorGeorge Joseph <gjoseph@digium.com>
Tue, 13 Sep 2022 13:14:37 +0000 (07:14 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 13 Sep 2022 14:51:11 +0000 (09:51 -0500)
commit7beedd85e161d097a7927e7c0f8d0e667ff8afb2
tree79c9b1160160c7f2f781a4c0e63724e0685a2491
parentbdf8ef8882240cd432a2f6d29f733319c16e310b
res_geolocation: Fix segfault when there's an empty element

Fixed a segfault caused by var_list_from_loc_info() encountering
an empty location info element.

Fixed an issue in ast_strsep() where a value with only whitespace
wasn't being preserved.

Fixed an issue in ast_variable_list_from_quoted_string() where
an empty value was considered a failure.

ASTERISK-30215
Reported by: Dan Cropp

Change-Id: Ieca64e061a6d9298f0196c694b60d986ef82613a
include/asterisk/strings.h
main/config.c
main/utils.c
res/res_geolocation/geoloc_eprofile.c
tests/test_config.c