Skip to content

Commit

Permalink
Merge pull request #4 from ensdomains/issue-3.7
Browse files Browse the repository at this point in the history
Remediate issue 3.7 in ENS audit
  • Loading branch information
Arachnid authored Mar 12, 2019
2 parents 0b3a69d + d04562c commit f6b2651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ensdomains/buffer",
"version": "0.0.6",
"version": "0.0.7",
"requires": true,
"lockfileVersion": 1,
"devDependencies": {
Expand Down

0 comments on commit f6b2651

Please sign in to comment.