]> 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)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Tue, 30 Nov 2021 15:51:39 +0000 (09:51 -0600)
commit1dce155f07a59f11618800e082d99c9ef190825d
tree40e1ba3ec667d281536365e3d28a870f9abc0748
parent14c2121243c5313d8bc5f13ffa91401a4427aba8
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