Branch: refs/heads/webkitglib/2.38
Home: https://github.com/WebKit/WebKit
Commit: 9edf42d5fc1147294c1b438a7e3272db15107371
https://github.com/WebKit/WebKit/commit/9edf42d5fc1147294c1b438a7e3272db15107371
Author: Joseph Griego <[email protected]>
Date: 2023-02-14 (Tue, 14 Feb 2023)
Changed paths:
M Source/bmalloc/bmalloc/DebugHeap.cpp
Log Message:
-----------
Cherry-pick 260115@main (397fe12d87a4).
https://bugs.webkit.org/show_bug.cgi?id=252053
bmalloc DebugHeap should not crash in low-memory conditions on Linux
https://bugs.webkit.org/show_bug.cgi?id=252053
Reviewed by Yusuke Suzuki.
`posix_memalign` may not initialize the result pointer if it fails on Linux
[1].
If we don't initialize the result ourselves, this manifests as later
segfaults/bus errors/bizarre behavior as we get a completely bogus result
that
can point basically anywhere.
[1] https://man7.org/linux/man-pages/man3/posix_memalign.3.html
* Source/bmalloc/bmalloc/DebugHeap.cpp:
(bmalloc::DebugHeap::memalign):
Canonical link: https://commits.webkit.org/260115@main
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes