CVE-2026-34238: Integer Overflow With Offsets In Allocation

Missing upper bounds check before calculating lengths using offset multiplication like `($X + $A) * ($Y + $B)` can lead to a size computation wrap-around and subsequent heap buffer overflow. Validate bounds before arithmetic operations.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C
greprules fetch cve-2026-34238-integer-overflow-with-offsets-in-allocation --engine opengrep

Description

Missing upper bounds check before calculating lengths using offset multiplication like `($X + $A) * ($Y + $B)` can lead to a size computation wrap-around and subsequent heap buffer overflow. Validate bounds before arithmetic operations.