Audit use of OS strings in native code for decoding errors

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 5.0
    • Component/s: 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.

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

              Created:
              Updated:
              Imported:
              Indexed: