Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ascli_refresh_cache: fix NULL pointer dereference #432

Merged
merged 1 commit into from Sep 19, 2022
Merged

ascli_refresh_cache: fix NULL pointer dereference #432

merged 1 commit into from Sep 19, 2022

Commits on Sep 19, 2022

  1. ascli_refresh_cache: fix NULL pointer dereference

    The command `appstreamcli refresh-cache --cachepath /tmp/cache`
    segfaults. In this code path, `ret` (initialized to `FALSE`) is not
    updated when `as_pool_load` returns successfully and sets the `error`
    pointer to NULL. Then the code tries to print `error->message`.
    r-ricci committed Sep 19, 2022