import java.nio.ByteBuffer;
import static redis.bytebuffer.Decoders.decodeUTF8;
public class RedisReplyDecoder {
private MultiBulkReply reply;
public ByteBuffer readBytes(ByteBuffer is) throws IOException {
<BUG>int size = Decoders.readInteger(is);
</BUG>
if (size == -1) {
<BUG>return null;
}</BUG>
ByteBuffer buffer = is.slice();

import java.nio.ByteBuffer;
import static redis.bytebuffer.Decoders.decodeUTF8;
public class RedisReplyDecoder {
private MultiBulkReply reply;
public ByteBuffer readBytes(ByteBuffer is) throws IOException {
long size = Decoders.readLong(is);
if (size == -1) {
return null;
} else if (size > Integer.MAX_VALUE) {
throw new IOException("Value too large");
}
