CVE-2024-7264: Pointer Post Increment Length Underflow
Initializing an end pointer using post-increment from a start pointer ($PTR_END = $PTR_START++) causes $PTR_END to evaluate to the current position while $PTR_START advances. If $PTR_END fails to advance further (e.g., due to an immediate loop condition failure), subtracting $PTR_START from $PTR_END to calculate a length will yield a negative number. When as
greprules fetch cve-2024-7264-pointer-post-increment-length-underflow --engine opengrepDescription
Initializing an end pointer using post-increment from a start pointer ($PTR_END = $PTR_START++) causes $PTR_END to evaluate to the current position while $PTR_START advances. If $PTR_END fails to advance further (e.g., due to an immediate loop condition failure), subtracting $PTR_START from $PTR_END to calculate a length will yield a negative number. When as
Community feedback
0 signals from signed-in users.
- Useful
- 0
- False positive
- 0
- Metadata
- 0