Merge pull request #6556

5ed37ba serialization: fix bad rapidjson api usage (moneromooo-monero)
pull/320/head
luigi1111 4 years ago
commit 445f74c71a
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

@ -120,7 +120,7 @@ void read_hex(const rapidjson::Value& val, epee::span<std::uint8_t> dest)
throw WRONG_TYPE("string");
}
if (!epee::from_hex::to_buffer(dest, {val.GetString(), val.Size()}))
if (!epee::from_hex::to_buffer(dest, {val.GetString(), val.GetStringLength()}))
{
throw BAD_INPUT();
}

Loading…
Cancel
Save