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

Native annotation parsing code of deprecated annotations causes crash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • hotspot
    • b17

      As reported by [~mschoene]

      While looking at native annotation parsing code, during fuzzing two crashes were observed with product builds during. This seems to be related to parsing of "Deprecated" annotations. There is no related source, the original class file was modified via jasmtools and then bit-level mutations were applied.

      # Java VM: Java HotSpot(TM) 64-Bit Server VM (22.0.2+9-70, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x5dafde] parse_annotations(ConstantPool const*, unsigned char const*, int, AnnotationCollector*, ClassLoaderData*, bool) [clone .part.0]+0x64e

      and

      # V [libjvm.so+0x5daf9b] parse_annotations(ConstantPool const*, unsigned char const*, int, AnnotationCollector*, ClassLoaderData*, bool) [clone .part.0]+0x60b
      #

            dholmes David Holmes
            lfoltan Lois Foltan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: