mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
fuzz: Avoid unsigned integer overflow in FormatParagraph
This commit is contained in:
@@ -328,6 +328,7 @@ bool ParseUInt64(const std::string& str, uint64_t* out)
|
||||
|
||||
std::string FormatParagraph(const std::string& in, size_t width, size_t indent)
|
||||
{
|
||||
assert(width >= indent);
|
||||
std::stringstream out;
|
||||
size_t ptr = 0;
|
||||
size_t indented = 0;
|
||||
|
||||
Reference in New Issue
Block a user