mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix length check when decoding error data.
This commit is contained in:
parent
b965446182
commit
0437ee7ad9
@ -8,6 +8,7 @@ Compiler Features:
|
||||
* SMTChecker: Support ABI functions as uninterpreted functions.
|
||||
|
||||
Bugfixes:
|
||||
* Code Generator: Fix length check when decoding malformed error data in catch clause.
|
||||
* SMTChecker: Fix false negatives in overriding modifiers.
|
||||
|
||||
### 0.8.0 (2020-12-16)
|
||||
|
@ -4031,7 +4031,7 @@ string YulUtilFunctions::tryDecodeErrorMessageFunction()
|
||||
if gt(length, 0xffffffffffffffff) { leave }
|
||||
|
||||
let end := add(add(msg, 0x20), length)
|
||||
if gt(end, add(data, returndatasize())) { leave }
|
||||
if gt(end, add(data, sub(returndatasize(), 4))) { leave }
|
||||
|
||||
mstore(<freeMemoryPointer>, add(add(msg, 0x20), <roundUp>(length)))
|
||||
ret := msg
|
||||
|
Loading…
Reference in New Issue
Block a user