mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-05 01:37:00 +00:00
add defensive check for sfData length (#6449)
This commit is contained in:
@@ -1149,6 +1149,11 @@ EscrowFinish::doApply()
|
||||
|
||||
if (auto const& data = ledgerDataProvider->getData(); data.has_value())
|
||||
{
|
||||
if (data->size() > maxWasmDataLength)
|
||||
{
|
||||
// should already be checked in the updateData host function
|
||||
return tecINTERNAL; // LCOV_EXCL_LINE
|
||||
}
|
||||
slep->setFieldVL(sfData, makeSlice(*data));
|
||||
ctx_.view().update(slep);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user