-
Bug
-
Resolution: Fixed
-
P4
-
17, 21, 22
-
b06
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8342900 | 21.0.6 | Satyen Subramaniam | P4 | Resolved | Fixed | b01 |
JDK-8342901 | 17.0.14 | Satyen Subramaniam | P4 | Resolved | Fixed | b01 |
The "com.sun.jndi.ldap.sasl.SaslInputStream" class has this code:
public int read() throws IOException {
byte[] inBuf = new byte[1];
int count = read(inBuf, 0, 1);
if (count > 0) {
return inBuf[0];
} else {
return -1;
}
}
SaslInputStream.read() should return a value in the range from 0 to 255 per the spec of InputStream.read() but it returns the signed byte from the inBuf as is.
public int read() throws IOException {
byte[] inBuf = new byte[1];
int count = read(inBuf, 0, 1);
if (count > 0) {
return inBuf[0];
} else {
return -1;
}
}
SaslInputStream.read() should return a value in the range from 0 to 255 per the spec of InputStream.read() but it returns the signed byte from the inBuf as is.
- backported by
-
JDK-8342900 SaslInputStream.read() may return wrong value
-
- Resolved
-
-
JDK-8342901 SaslInputStream.read() may return wrong value
-
- Resolved
-
- links to
-
Commit openjdk/jdk/5cf7947c
-
Commit(master) openjdk/jdk17u-dev/31467103
-
Commit(master) openjdk/jdk21u-dev/826184c4
-
Review openjdk/jdk/17365
-
Review(master) openjdk/jdk17u-dev/2989
-
Review(master) openjdk/jdk21u-dev/1078
(3 links to)