Do not go OOM on malformed poll result
authorMarius Gavrilescu <marius@ieval.ro>
Fri, 22 Mar 2013 22:03:39 +0000 (00:03 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Fri, 22 Mar 2013 22:03:39 +0000 (00:03 +0200)
commitd5819b37350dc3f123c817fad55cdbad0c9c1c95
tree7dc5f4a529fdae812e962e42eaafb90b9a3f9c8c
parent54d2a1f2bedf9fe10a6abf54b5dcf103fbf48d05
Do not go OOM on malformed poll result

A bug in the server caused it to send a single space as the response to a poll. This space was stored into a fixed-size 4MB string and passed to the json.org library, which finally OOMed. The string is variable-size and the maximum size was lowered to 2MB.
src/ro/ieval/fonbot/PollResultCallback.java
This page took 0.010484 seconds and 4 git commands to generate.