/[Apache-SVN]
ViewVC logotype

Revision 1397397


Jump to revision: Previous Next
Author: jfarrell
Date: Fri Oct 12 00:43:13 2012 UTC (12 years ago)
Changed paths: 3
Log Message:
THRIFT-1643:Denial of Service attack in TBinaryProtocol.readString
Client: java
Patch: Niraj Tolia 

In readString, if the string field's size is greater than the number of bytes remaining in the byte array to deserialize, libthrift will happily allocate a byte array of that size in readStringBody, filling the heap.



Changed paths

Path Details
Directorythrift/trunk/lib/java/src/org/apache/thrift/protocol/TCompactProtocol.java modified , text changed
Directorythrift/trunk/lib/java/test/org/apache/thrift/protocol/TestTBinaryProtocol.java modified , text changed
Directorythrift/trunk/lib/java/test/org/apache/thrift/protocol/TestTCompactProtocol.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26