Skip to content

Commit

Permalink
Remediate issue 3.7 in ENS audit
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachnid committed Mar 11, 2019
1 parent 0b3a69d commit 9e4483a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/Buffer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ library Buffer {
function write(buffer memory buf, uint off, bytes memory data, uint len) internal pure returns(buffer memory) {
require(len <= data.length);

if (off + len + buf.buf.length > buf.capacity) {
if (off + len > buf.capacity) {
resize(buf, max(buf.capacity, len + off) * 2);
}

Expand Down

0 comments on commit 9e4483a

Please sign in to comment.