Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8289633

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 20
    • 11, 17, 19, 20
    • hotspot
    • None
    • b05

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: