handle this not like an idiot
This commit is contained in:
@@ -113,6 +113,10 @@ func (r *ValueReader) ReadBytes(count int32) []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
if count == -1 {
|
||||
return nil
|
||||
}
|
||||
|
||||
r.valueBytesRemaining -= count
|
||||
if r.valueBytesRemaining < 0 {
|
||||
r.Fatal(errors.New("read past end of value"))
|
||||
|
||||
Reference in New Issue
Block a user