Github user afine commented on a diff in the pull request: https://github.com/apache/zookeeper/pull/412#discussion_r147818798 --- Diff: src/java/main/org/apache/jute/BinaryOutputArchive.java --- @@ -115,6 +115,11 @@ public void writeBuffer(byte barr[], String tag) out.writeInt(-1); return; } + if (barr.length >= BinaryInputArchive.maxBuffer) { --- End diff -- maybe we could also use UNREASONABLE_LENGTH from BinaryInputArchive?
---