]> 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:48:07 +0000 (09:48 -0600)
commit04ac4fe509ad56e911990538430b6b81479b3215
tree1b2f9554ae7c4d95da0ebf9b22e3d6024cb4fab1
parent70cdb0f9a88a5463327f58ee061480b1ef151467
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