]> 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:23 +0000 (09:48 -0600)
commit2478bfcff99dfc044ed2d045da6c579858c78cb2
tree1fea5ee09f0448be5abe9447320d2d84e090e461
parentd374d63ef8df7bdb811a4178ed97ba513040037d
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