HomePhabricator

test: Replace remaining sprintf with snprintf

Description

test: Replace remaining sprintf with snprintf

Summary:
Use of sprintf is seen as a red flag as many of its uses are insecure.
OpenBSD warns about it while compiling, and some modern platforms, e.g.
cloudlibc from cloudabi don't
even provide it anymore.

Backport of core PR9867

Test Plan:

make check

Reviewers: #bitcoin_abc, deadalnix, jasonbcox

Reviewed By: #bitcoin_abc, deadalnix, jasonbcox

Subscribers: teamcity, schancel

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

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Feb 26 2017, 20:08
FabienCommitted on Mar 19 2019, 09:31
FabienPushed on Mar 19 2019, 09:32
Reviewer
Restricted Project
Differential Revision
D2697: test: Replace remaining sprintf with snprintf
Parents
rABCb189803bde62: [LINTER] Fix check doc incompatibility with BSD grep
Branches
Unknown
Tags
Unknown

Event Timeline