mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix ABI encoding of empty string literal.
This commit is contained in:
parent
f36e021ffc
commit
83ea7793d9
@ -15,6 +15,7 @@ Bugfixes:
|
||||
* Type Checker: Make UTF8-validation a bit more sloppy to include more valid sequences.
|
||||
* Fixed crash concerning non-callable types.
|
||||
* Unused variable warnings no longer issued for variables used inside inline assembly.
|
||||
* Code Generator: Fix ABI encoding of empty literal string.
|
||||
* Inline Assembly: Enforce function arguments when parsing functional instructions.
|
||||
|
||||
### 0.4.11 (2017-05-03)
|
||||
|
@ -128,7 +128,7 @@ void CompilerUtils::storeInMemoryDynamic(Type const& _type, bool _padToWordBound
|
||||
m_context << Instruction::DUP1;
|
||||
storeStringData(bytesConstRef(str->value()));
|
||||
if (_padToWordBoundaries)
|
||||
m_context << u256(((str->value().size() + 31) / 32) * 32);
|
||||
m_context << u256(max<size_t>(32, ((str->value().size() + 31) / 32) * 32));
|
||||
else
|
||||
m_context << u256(str->value().size());
|
||||
m_context << Instruction::ADD;
|
||||
|
Loading…
Reference in New Issue
Block a user