HomePhabricator

script: prevent UB when computing abs value for num opcode serialize

Description

script: prevent UB when computing abs value for num opcode serialize

Summary: Backport of core PR18413.

Test Plan:

ninja all check-all
ninja bitcoin-fuzzers
./test/fuzz/test_runner.py <path_to_corpus>

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
pierrenn <git@pnn.sh>Authored on Jan 22 2021, 09:21
FabienCommitted on Jan 22 2021, 09:22
abc-botPushed on Jan 22 2021, 09:28
Reviewer
Restricted Project
Differential Revision
D9017: script: prevent UB when computing abs value for num opcode serialize
Parents
rABC963a1a09a080: test: Add fuzzing harnesses for various classes/functions in primitives/
Branches
Unknown
Tags
Unknown