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

Audit use of OS strings in native code for decoding errors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs
    • Cause Known
    • generic
    • generic

      There's lots of native code in the JDK that does something like:

      jio_snprintf(msg, 1024,
      "CreateProcess: %s error=%d", cmd, GetLastError());
      JNU_ThrowByName(env, "java/io/IOException", msg);

      (This is actually bug 5023243)

      All such uses of GetLastError and filenames
      need to be checked for proper encoding in case they are not ASCII.

      There are probably many bugs in the JDK. They should be addressed globally.

            Unassigned Unassigned
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: