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

Small string code cleanup in native corelibs code

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      A couples bits of native core-libs string handling code should be changed:
      src/java.base/windows/native/libjava/java_props_md.c:

      - In getEncodingInternal(), a non-terminated string could result if the GetLocaleInfo() call were to fail.

      src/java.base/windows/native/libjava/jni_util_md.c:

      - getParent() (which calls strcpy()) is unused, and can be removed

            bchristi Brent Christian
            bchristi Brent Christian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: