REDHAT-BUG-2523249: Medium severity GNU Project GNU C Library vulnerability
misc: Fix out-of-bounds array write in tdelete (bug 34506) Allocate the maximum array sizes directly, instead of resizing the arrays as needed. This eliminates alloca usage from the function, and fixes the out-of-bounds accesses. The asserts guard against the bug coming back if the balancing of the tree turns out not to work correctly.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Allocate the maximum array sizes directly instead of resizing them; this eliminates alloca usage and fixes the out-of-bounds accesses.