]> 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:37 +0000 (09:51 -0500)
commitbd2fb077ac4547705d83c3d0ec0c597b4074657c
tree471a20ea6d649f3ca26f856692dcb056148a0a45
parentfc63688e3b4826145c57de5742a383739e4d4272
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