diff options
author | Charles Munger <clm@google.com> | 2015-04-21 14:35:46 -0700 |
---|---|---|
committer | Brian Duff <bduff@google.com> | 2015-04-28 13:10:49 -0700 |
commit | 6732dd7e58e3adaf217f20f227e6ff7e72cb6b22 (patch) | |
tree | 20e64ef7649aa52aeee3d49bf764566b63617cfb /vsprojects/protoc.vcproj | |
parent | a69b461e1eee43a277839825f1153b8260a28e87 (diff) | |
download | protobuf-6732dd7e58e3adaf217f20f227e6ff7e72cb6b22.tar.gz protobuf-6732dd7e58e3adaf217f20f227e6ff7e72cb6b22.tar.bz2 protobuf-6732dd7e58e3adaf217f20f227e6ff7e72cb6b22.zip |
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 'vsprojects/protoc.vcproj')
0 files changed, 0 insertions, 0 deletions