Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

WireFormat fails hard when writing long strings #34

Merged
merged 1 commit into from Jan 9, 2012

Conversation

Projects
None yet
2 participants
Contributor

stephenroller commented Jan 9, 2012

Due to the use of writeUTF, writing intermediate strings longer than 64k throw a UTFDataFormatException and fail hard. This is documented in the Java API:
http://docs.oracle.com/javase/1.4.2/docs/api/java/io/DataOutput.html#writeUTF(java.lang.String)

@espringe espringe merged commit b58d1f9 into NICTA:master Jan 9, 2012

Contributor

espringe commented Jan 9, 2012

Nice catch! Thanks very much for providing code to fix this too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment