Skip to content

Commit

Permalink
Set max data block size equals to the byte array size
Browse files Browse the repository at this point in the history
  • Loading branch information
victorgawk committed Jun 24, 2024
1 parent 416ed1a commit 40f91a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions java2json/java2json.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
// ParseJavaObject parses a serialized java object.
func ParseJavaObject(buf []byte) (interface{}, error) {
jop := NewJavaObjectParser(bytes.NewReader(buf))
jop.SetMaxDataBlockSize(len(buf))
return jop.ParseJavaObject()
}

Expand Down

0 comments on commit 40f91a8

Please sign in to comment.