]> git.ipfire.org Git - thirdparty/asterisk.git/commit
config.c: Prevent UB in ast_realtime_require_field.
authorSean Bright <sean.bright@gmail.com>
Sun, 28 Nov 2021 20:52:24 +0000 (15:52 -0500)
committerKevin Harwell <kharwell@digium.com>
Tue, 30 Nov 2021 18:57:54 +0000 (12:57 -0600)
commitdbc1a151469fbba7f2e1c93a976e3e4b58ed2295
treee11fc291892eeb417b5d4fbd3f890017bbb67560
parent05032c7cabd7a31617e61c770115de9f4b088d34
config.c: Prevent UB in ast_realtime_require_field.

A backend's implementation of the realtime 'require' function may call
va_arg() and then fail, leaving the va_list in an undefined
state. Pass a copy of the va_list instead.

ASTERISK-29771 #close

Change-Id: I555565a72af84e96d49f62fe8cb66ba5a78461f4
main/config.c