diff options
author | Charles Munger <clm@google.com> | 2015-04-21 14:35:46 -0700 |
---|---|---|
committer | Brian Duff <bduff@google.com> | 2015-04-21 14:35:46 -0700 |
commit | ebfc42610b47af51de7ce9eacc65960a80c6d490 (patch) | |
tree | 01ad6105786699579f9d3ceb7f2ba7ce3bb6b94b /java/src/main/java/com/google/protobuf/AbstractMessageLite.java | |
parent | ff882b4094995bc7dd9b183951cf84aa04527361 (diff) | |
download | external_protobuf-ebfc42610b47af51de7ce9eacc65960a80c6d490.zip external_protobuf-ebfc42610b47af51de7ce9eacc65960a80c6d490.tar.gz external_protobuf-ebfc42610b47af51de7ce9eacc65960a80c6d490.tar.bz2 |
Throw OutOfSpaceException instead of IllegalArgumentException.
When a MessageNano containing a String is serialized into a buffer that
is too small to contain it, and the buffer's boundary happens to be
where the string field's length delimiting varint is serialized,
and the string's length and 3*length have the same length when
encoded as a varint, an IllegalArgumentException is thrown rather than
an OutOfSpaceException.
Github issue: https://github.com/google/protobuf/issues/292
Change-Id: If478d68cf15bfd0662252d008e42b2bf1ff1c75e
Diffstat (limited to 'java/src/main/java/com/google/protobuf/AbstractMessageLite.java')
0 files changed, 0 insertions, 0 deletions