Judge has assessed an item in Issue #49 as 2 risk. The relevant finding follows:
QA10. readKeyValue() fails to enforce the constraint offset+len<=input.length. As a result, the key-value pair might be read from dirty memory area that is beyond the memory range of input and thus could be wrong.
Judge has assessed an item in Issue #49 as 2 risk. The relevant finding follows:
QA10. readKeyValue() fails to enforce the constraint
offset+len<=input.length
. As a result, the key-value pair might be read from dirty memory area that is beyond the memory range ofinput
and thus could be wrong.https://github.com/code-423n4/2023-04-ens/blob/45ea10bacb2a398e14d711fe28d1738271cd7640/contracts/dnsregistrar/RecordParser.sol#L14-L40
Mitigation: make sure
offset+len<=input.length
: