Fixed an issue: NETTY-20 (Incorrect object length constraint in ObjectEncoder and ObjectEncoderOutputStream)
This commit is contained in:
parent
c76451b874
commit
65eda0902d
@ -49,7 +49,7 @@ public class ObjectEncoderOutputStream extends OutputStream implements
|
|||||||
if (out == null) {
|
if (out == null) {
|
||||||
throw new NullPointerException("out");
|
throw new NullPointerException("out");
|
||||||
}
|
}
|
||||||
if (estimatedLength < 8) {
|
if (estimatedLength < 0) {
|
||||||
throw new IllegalArgumentException("estimatedLength: " + estimatedLength);
|
throw new IllegalArgumentException("estimatedLength: " + estimatedLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user