We're updating the issue view to help you get more done. 

JavaLangSupport needs to call sysGetenv with null-terminated String

Description

In org.jikesrvm.classlibrary.JavaLangSupport, the getenv method uses sysCall.sysGetEnv which expects a null-terminated byte sequence. However. String.getBytes() doesn't seems to return a byte[] that is null terminated.

Environment

All

Status

Assignee

Erik Brangs

Reporter

Zixian Cai

Labels

None

External issue ID

None

Components

Fix versions

Affects versions

3.1.4

Priority

Medium