From 788a026a3ee86a242a19636f349dcba47b09272a Mon Sep 17 00:00:00 2001 From: Nick Johnson Date: Tue, 12 Mar 2019 12:16:06 +1300 Subject: [PATCH] Remediate issue 3.1 in ENS audit --- contracts/Buffer.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/Buffer.sol b/contracts/Buffer.sol index 6ef6039..815d7d7 100644 --- a/contracts/Buffer.sol +++ b/contracts/Buffer.sol @@ -35,7 +35,7 @@ library Buffer { let ptr := mload(0x40) mstore(buf, ptr) mstore(ptr, 0) - mstore(0x40, add(ptr, capacity)) + mstore(0x40, add(32, add(ptr, capacity))) } return buf; }