Closed stoeckmann closed 6 months ago
The block_get function could return -1 if end of block is reached.
Do not left shift a negative value to prevent undefined behavior due to signed integer overflow.
The issue has been introduced with 4a5e3e7d255f3f8eba9ecdb8bd8080db43bf0aeb which is not contained in any release.
Adjusted to just check just high. Probably not that timing relevant, but:
high
low
Thanks. Fixed. I changed the (long) to (unsigned long).
(long)
(unsigned long)
The block_get function could return -1 if end of block is reached.
Do not left shift a negative value to prevent undefined behavior due to signed integer overflow.
The issue has been introduced with 4a5e3e7d255f3f8eba9ecdb8bd8080db43bf0aeb which is not contained in any release.