zlib code add OOM checks remove buffer expansion on rx path
authorAndy Green <andy.green@linaro.org>
Thu, 10 Jan 2013 04:26:13 +0000 (12:26 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 10 Jan 2013 04:45:54 +0000 (12:45 +0800)
commit988bd987af54fa0026767deac1eeae8c1e6d7711
tree46c9d591a6f396403ff3a9d5b45d4a5056005ed4
parented3c840ed60a64aa22a02e926d3ad4c46e295a9f
zlib code add OOM checks remove buffer expansion on rx path

Here testing with the test serer and chrome 25, the buffer expansion
code on Rx was triggered by a valid no data output condition and looped
until it exhausted all memory.

This patch adds OOM check to all malloc()s and removes the buffer expansion
code on the rx path... leaving the code on tx path for now.

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/extension-deflate-frame.c
libwebsockets-api-doc.html