Skip to content
Commit 3f97c0ca authored by Florian Weimer's avatar Florian Weimer Committed by Mike Frysinger
Browse files

malloc: Avoid premature fallback to mmap [BZ #20284]

Before this change, the while loop in reused_arena which avoids
returning a corrupt arena would never execute its body if the selected
arena were not corrupt.  As a result, result == begin after the loop,
and the function returns NULL, triggering fallback to mmap.

(cherry picked from commit a3b47337)
(cherry picked from commit a69d2614)
parent cafa0319
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment