[Rpm-maint] [rpm-software-management/rpm] Fix regression causing access to already closed sqlite handle (#1561)
Panu Matilainen
notifications at github.com
Mon Mar 1 10:59:07 UTC 2021
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210301/f927b1b9/attachment.html>
More information about the Rpm-maint
mailing list