handle null bytes
This commit is contained in:
@@ -191,6 +191,10 @@ func (r *msgReader) readBytes(count int32) []byte {
|
||||
return nil
|
||||
}
|
||||
|
||||
if count < 1 {
|
||||
return nil
|
||||
}
|
||||
|
||||
b := make([]byte, int(count))
|
||||
|
||||
_, err := io.ReadFull(r.reader, b)
|
||||
|
||||
Reference in New Issue
Block a user