Skip to content

Commit cfbb2e6

Browse files
ernestognwAmxx
andauthored
Update .changeset/witty-hats-flow.md
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
1 parent 655c3c0 commit cfbb2e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.changeset/witty-hats-flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
'openzeppelin-solidity': patch
33
---
44

5-
`Bytes`: Fix an issue when calling `lastIndexOf(bytes,byte,uint256)` with an empty buffer and a lookup position that is not 2²⁵⁶-1.
5+
`Bytes`: Fix `lastIndexOf(bytes,byte,uint256)` with empty buffers and finite position to correctly return `type(uint256).max` instead of accessing uninitialized memory sections.

0 commit comments

Comments
 (0)