mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Validate data size before calling uint256::fromVoid
This commit is contained in:
@@ -419,6 +419,14 @@ class ReportingETL_test : public beast::unit_test::suite
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
auto [status, reply] =
|
||||
grpcLedgerData(env.closed()->seq(), "bad marker");
|
||||
BEAST_EXPECT(!status.ok());
|
||||
BEAST_EXPECT(
|
||||
status.error_code() == grpc::StatusCode::INVALID_ARGUMENT);
|
||||
}
|
||||
|
||||
num_accounts = 3000;
|
||||
|
||||
for (auto i = 0; i < num_accounts; i++)
|
||||
|
||||
Reference in New Issue
Block a user