capnproto-java-rpc/runtime
David Renshaw 4ec14e39f9 be more careful about integer overflow in Serialize.read()
Previously, we were attempting to read the entire message
in one call to fillBuffer(). This was doomed to fail
if the message had more than Integer.MAX_VALUE bytes.

After this diff, we will call fillBuffer() separately for each
segment. This approach turns out to be simpler, too.
It might imply a small performance hit for messages with
many small segments, but such messages are discouraged anyway.

This diff also adds more overflow checking in the surrounding
logic.
2021-05-12 20:13:52 -04:00
..
src be more careful about integer overflow in Serialize.read() 2021-05-12 20:13:52 -04:00
pom.xml bump version numbers to 0.1.7-SNAPSHOT 2021-05-11 21:49:54 -04:00