• Michael Stack's avatar
    Change CodedInputStream#DEFAULT_SIZE_LIMIT from 64MB to · 7550bcd8
    Michael Stack authored
    Integer.MAX_SIZE (0x7FFFFFF) #2228
    
    M java/core/src/main/java/com/google/protobuf/CodedInputStream.java
     Set DEFAULT_SIZE_LIMIT to Integer.MAX_SIZE (Was 64MB). This is how it was
     in pre-2.7.0 pb. Changed size check to an overflow-conscious test (as it
     is later in tryRefillBuffer (making sizeLimit a long was to disruptive).
    
    M java/core/src/test/java/com/google/protobuf/CodedInputStreamTest.java
     Add two tests that echo tests recently added over in c++ to test parse
     of message sizes that are approach and are beyond the size limit.
    7550bcd8
Name
Last commit
Last update
..
compatibility_tests Loading commit data...
core Loading commit data...
lite Loading commit data...
util Loading commit data...
README.md Loading commit data...
pom.xml Loading commit data...