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

Unterminated string passed to FindClass() in hotspot test

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 17
    • 17
    • hotspot
    • b20

    Description

      A hotspot test (test/hotspot/jtreg/runtime/jni/FindClassUtf8/libFindClassUtf8.c) uses an unterminated character string as the class name argument to FindClass():

          const uint64_t chars = 0x5b3132315d20f818UL; // f8 is invalid utf8

          jclass badClass = (*env)->FindClass(env, (const char*)&chars);

      Attachments

        Issue Links

          Activity

            People

              hseigel Harold Seigel (Inactive)
              vprovodin Vitaly Provodin
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: