[jdk17u-dev] Integrated: 8277822: Remove debug-only heap overrun checks in os::malloc and friends
Thomas Stuefe
stuefe at openjdk.org
Tue Jan 10 12:24:17 UTC 2023
On Mon, 9 Jan 2023 12:23:32 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:
> After we backported "8275320: NMT should perform buffer overrun checks", I'd like to backport this one as well.This change removes now redundant overrun checks from os::malloc and friends.
>
> Not a clean backport, but the fix is small. There had been a security fix: "8286519: Better memory handling" sits in the middle of the backporting chains. It did introduce a size overflow check that I had to move and adapt (lines 694-697).
>
>
> // Check for overflow.
> if (outer_size < size) {
> return NULL;
> }
This pull request has now been integrated.
Changeset: 1dc6a38c
Author: Thomas Stuefe <stuefe at openjdk.org>
URL: https://git.openjdk.org/jdk17u-dev/commit/1dc6a38c84487281c1a03368b381f28b93a53376
Stats: 189 lines in 6 files changed: 35 ins; 101 del; 53 mod
8277822: Remove debug-only heap overrun checks in os::malloc and friends
Reviewed-by: phh
Backport-of: 39b1d75f25ff2cc348f8b69d4e280847c6843ae2
-------------
PR: https://git.openjdk.org/jdk17u-dev/pull/1041
More information about the jdk-updates-dev
mailing list