Page MenuHomePhabricator

test: Replace remaining sprintf with snprintf
ClosedPublic

Authored by Fabien on Mar 18 2019, 12:59.

Details

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

Diff Detail

Repository
rABC Bitcoin ABC
Branch
PR9867
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 5231
Build 8525: Bitcoin ABC Buildbot (legacy)
Build 8524: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Mar 18 2019, 16:52
This revision was automatically updated to reflect the committed changes.