Closed technotip closed 1 year ago
When invalid object is passed to slot_set() as argument, it halts the rippled server.
uint8_t keylet[34]; int64_t slot_no = slot_set(SBUF(keylet), 0);
keylet has 00000000000000000000000000000000000000000000000000000000000000000000.
It should return a 'error code' indicating the invalid parameter or INVALID_ARGUMENT(-7).
Halts rippled.
rippled: /root/rippled/src/ripple/app/ledger/Ledger.cpp:411: virtual std::shared_ptr<const ripple::STLedgerEntry> ripple::Ledger::read(const ripple::Keylet&) const: Assertion `false' failed. Aborted (core dumped)
Fixed in https://github.com/XRPL-Labs/xrpld-hooks/commit/7f72ef014be8a4eff833791f4f2f84444fdb966d
Issue Description
When invalid object is passed to slot_set() as argument, it halts the rippled server.
Steps to Reproduce
keylet has 00000000000000000000000000000000000000000000000000000000000000000000.
Expected Result
It should return a 'error code' indicating the invalid parameter or INVALID_ARGUMENT(-7).
Actual Result
Halts rippled.