HomePhabricator

[backport#14268] Introduce SafeDbt to handle DB_DBT_MALLOC raii-style

Description

[backport#14268] Introduce SafeDbt to handle DB_DBT_MALLOC raii-style

Summary:
This provides additional exception-safety and case handling for the proper
freeing of the associated buffers.

https://github.com/bitcoin/bitcoin/pull/14268/commits/1a9f9f7e5e2e73fb832f5b96ad7e9e57954f3f3c


Depends on D7321

Partial backport of Core PR14268

Test Plan:

ninja check check-functional

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D7322

Details

Provenance
Ben Woosley <ben.woosley@gmail.com>Authored on Sep 19 2018, 06:38
majcostaCommitted on Sep 2 2020, 20:30
majcostaPushed on Sep 2 2020, 20:30
Reviewer
Restricted Project
Differential Revision
D7322: [backport#14268] Introduce SafeDbt to handle DB_DBT_MALLOC raii-style
Parents
rABC88e8e4d48b9d: [backport#14268] Drop unused setRange arg to BerkeleyBatch::ReadAtCursor
Branches
Unknown
Tags
Unknown