HomePhabricator

tests: Abort if malloc() fails during context cloning tests

Description

tests: Abort if malloc() fails during context cloning tests

Summary:
Found by the clang static analyzer.

This is the worst true positive that it found. I feel somewhat proud.

This is a backport of libsecp256k1 PR774

Test Plan:

ninja check-secp256k1

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

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

Details

Provenance
Tim Ruffing <crypto@timruffing.de>Authored on Jul 27 2020, 11:43
deadalnixCommitted on Sep 27 2020, 23:08
deadalnixPushed on Sep 27 2020, 23:08
Reviewer
Restricted Project
Differential Revision
D7596: tests: Abort if malloc() fails during context cloning tests
Parents
rABCba5ec2d4634f: Remove unnecessary sign variable from wnaf_const
Branches
Unknown
Tags
Unknown