Forbid raw C-heap allocation functions in hotspot and fix findings

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 11, 17, 19, 20
    • Component/s: hotspot
    • None
    • b05

      JDK-8214976 introduced a way to forbid functions from being called outside of explicitly allowed contexts. Kim Barrett proposed [1] to use that functionality to forbid raw malloc and friends. That would have prevented JDK-8289477, where on Alpine the muslc sneaked in raw malloc and free calls via C-runtime defined standard macros.

      [1] https://mail.openjdk.org/pipermail/hotspot-dev/2022-July/061602.html

            Assignee:
            Thomas Stuefe
            Reporter:
            Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: