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

8239128: Macro defines constant pointers can crash VM via jextract API

    Details

    • Type: Bug
    • Status: New
    • Priority: P2
    • Resolution: Unresolved
    • Affects Version/s: repo-panama
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None

      Description

      Given following header, where defines a constant pointer, jextract can crash the VM

      // Macro of constant function pointer
      #define INVALID_INT_CONSUMER (void (*)(int))0

      // Macro of constant struct pointer
      struct foo;
      typedef struct foo *foo_t;
      #define NO_FOO ((foo_t)0)

        Attachments

          Activity

            People

            • Assignee:
              henryjen Henry Jen
              Reporter:
              henryjen Henry Jen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: