JDK-5097226 : Audit use of OS strings in native code for decoding errors
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 5.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2004-09-04
  • Updated: 2018-03-01
Related Reports
Relates :  
Relates :  
Description
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.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: dragon
22-09-2004

EVALUATION See bug 5023243 for initial evaluation. ###@###.### 2004-09-06
06-09-2004