On Mon, Apr 13, 2026 at 8:16 AM Bruno Haible <[email protected]> wrote:
> In the function re_search_internal, there are 4 occurrences of
> 'goto free_return;' before the declaration and initialization of
> 'save_state_log'. In all these cases, an uninitialized value is
> getting passed to the free() function.
>
> This patch fixes it.
>
>
> 2026-04-13  Bruno Haible  <[email protected]>
>
>         regex: Fix use of uninitialized variable (regression yesterday).
>         Reported by Coverity.
>         * lib/regexec.c (re_search_internal): Move initialization of variable
>         'save_state_log' further up.
...

Nice! Thank you. It's good to see coverity helping out.

Reply via email to