src/windows/native/java/lang/ProcessImpl_md.c has a number of minor
deficiencies, especially in selectProcessFlags.
selectProcessFlag doesn't do enough error checking. In particular,
the return code from SearchPath is not checked, and an open on an
uninitialized buffer is performed. If you have very bad luck, this will
hang if the uninitialized buffer happens to contain the file name of a
named pipe without a writer, for example.
Instead of selecting a single process creation flag, the logic should
be more sophisticated; different actions should be taken for .com files.
There may also be a need to take different action for 64-bit windows
executables.
Even with the fix for 5005176, 16-bit console applications will appear to
produce no output when launched from detached Java processes on NT.
This should be fixed.
deficiencies, especially in selectProcessFlags.
selectProcessFlag doesn't do enough error checking. In particular,
the return code from SearchPath is not checked, and an open on an
uninitialized buffer is performed. If you have very bad luck, this will
hang if the uninitialized buffer happens to contain the file name of a
named pipe without a writer, for example.
Instead of selecting a single process creation flag, the logic should
be more sophisticated; different actions should be taken for .com files.
There may also be a need to take different action for 64-bit windows
executables.
Even with the fix for 5005176, 16-bit console applications will appear to
produce no output when launched from detached Java processes on NT.
This should be fixed.
- relates to
-
JDK-5005176 (process) Can't run 16-bit DOS programs (.com files)
-
- Closed
-