Page MenuHomePhabricator

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

Authored by deadalnix on Feb 28 2020, 01:01.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable