Hello ArkProject,
The offset
is initially set to 0x20
, which skips the first 32 bytes (usually the length prefix of a dynamic array in Solidity). However, this offset is used throughout the function without further checks. This could lead to incorrect memory access if the string does not conform to the expected format.
Add Boundary Checks: Ensure that offset
does not exceed the bounds of strBytes
and that memory accesses are safe.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.