Commit fb5888417727edbd8ce1b389b1b6ee9ac899d8e4 introduced a regression
where on database open failure we end up accessing the already freed
handle when trying to report the error.

Now that we're no longer implicitly creating non-existent databases,
just simplify the whole logic to get rid of it. 4.16.x branch will need
a different fix, maybe use sqlite3_errstr() instead of _errmsg().

Reported and initial patch by Demi M. Obenour.
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/1561

-- Commit Summary --

  * Fix regression causing access to already closed sqlite handle

-- File Changes --

    M lib/backend/sqlite.c (15)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1561.patch
https://github.com/rpm-software-management/rpm/pull/1561.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1561
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to