GNSPS / solidity-bytes-utils

Utility Solidity library composed of basic operations for tightly packed bytes arrays
The Unlicense
514 stars 109 forks source link

First require of the slice #52

Open ngurmen opened 2 years ago

ngurmen commented 2 years ago

Hi, I have a question on the first require on the slice method. Shouldn't this require(_length + 31 >= _length, "slice_overflow"); be require(_bytes.length + 31 >= _length, "slice_overflow"); to be meaningful?