HomePhabricator

secp256k1/src/tests.c: Properly handle sscanf return value

Description

secp256k1/src/tests.c: Properly handle sscanf return value

Summary:
This pull request fixes a bug which allows the sh variable to be used uninitialized when sscanf returns EOF.

Signed-off-by: Mustapha Abiola <mustapha@trilemma.net>

This is a backport of secp256k1 PR650

Test Plan:

ninja check-secp256k1

Reviewers: #bitcoin_abc, nakihito

Reviewed By: nakihito

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

Details

Provenance
Mustapha Abiola <mustapha@trilemma.net>Authored on Jul 14 2019, 15:02
deadalnixCommitted on Feb 28 2020, 01:36
deadalnixPushed on Feb 28 2020, 01:36
Reviewer
nakihito
Differential Revision
D5356: secp256k1/src/tests.c: Properly handle sscanf return value
Parents
rABC30b847e3177a: Fix typo
Branches
Unknown
Tags
Unknown