lightning icon indicating copy to clipboard operation
lightning copied to clipboard

setconfig: fix crash on dynamic multi-value plugin options

Open wqxoxo opened this issue 4 weeks ago • 0 comments

We had an assert(!(ot->type & OPT_MULTI)) which crashed when using setconfig on a plugin option marked as both dynamic and multi.

The fix changes plugin_set_dynamic_opt to accept an array of values (scalar options pass a 1-element array, multi options pass the complete set). For multi options, setconfig replaces ALL values atomically - an empty array clears them.

Fixes: #8295

Changelog-Fixed: setconfig no longer crashes on dynamic multi-value plugin options

wqxoxo avatar Dec 03 '25 15:12 wqxoxo