Esme Povirk (@madewokherd) commented about dlls/sane.ds/ui.c:
> if (rc != TWCC_SUCCESS)
> {
> ERR("Unable to read number of options\n");
> - return FALSE;
> + optcount = gOptCount;
What situation causes this failure, and why is using a previous cached value OK?
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8778#note_113172
Esme Povirk (@madewokherd) commented about dlls/sane.ds/ui.c:
> }
>
> control_len += len + padding;
> + optionsExist[cntOptionsExist] = opt.optno;
`optionsExist` is not bounds-checked.
`cntOptionsExist` is never reset to 0 if `create_options_page` is called multiple times.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8778#note_113171