mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-11 12:03:04 +02:00
Remove use of snprintf and simplify
One test case uses snprintf to convert an int to a string. Change it to use ToString (which uses a locale-independent version of std::to_string). Also remove unnecessary parts of StringContentsSerializer.
This commit is contained in:
@@ -45,7 +45,6 @@ from subprocess import check_output, CalledProcessError
|
||||
|
||||
KNOWN_VIOLATIONS = [
|
||||
"src/dbwrapper.cpp:.*vsnprintf",
|
||||
"src/test/dbwrapper_tests.cpp:.*snprintf",
|
||||
"src/test/fuzz/locale.cpp:.*setlocale",
|
||||
"src/test/fuzz/string.cpp:.*strtol",
|
||||
"src/test/fuzz/string.cpp:.*strtoul",
|
||||
|
Reference in New Issue
Block a user