In the linux pathmap_open() you can see a check to make sure that SA_ALTROOT is not too big. This check is missing on macosx, leading to the possibility of a crash if SA_ALTROOT is too long.
--------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - fix crash with long SA_ALTROOT Changes: https://git.openjdk.org/jdk/pull/33520/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=33520&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8391991 Stats: 103 lines in 3 files changed: 102 ins; 1 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/33520.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33520/head:pull/33520 PR: https://git.openjdk.org/jdk/pull/33520
