HomePhabricator

Reject invalid coin height and output index when loading assumeutxo

Description

Reject invalid coin height and output index when loading assumeutxo

Summary:
This is a backport of core#22146

We can bypassing the temporary ubsan suppressions (core#22202).
The casting to uint32_t is necessary to avoid a -Wsign-compare warning. A block height can not be negative.

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Jun 4 2021, 07:21
PiRKCommitted on Oct 10 2022, 08:20
PiRKPushed on Oct 10 2022, 08:20
Reviewer
Restricted Project
Differential Revision
D12178: Reject invalid coin height and output index when loading assumeutxo
Parents
rABC25b4445fda46: consensus: move amount.h into consensus
Branches
Unknown
Tags
Unknown