zlib code add OOM checks remove buffer expansion on rx path 74/2874/1
authorAndy Green <andy.green@linaro.org>
Thu, 10 Jan 2013 04:26:13 +0000 (12:26 +0800)
committerKevron Rees <kevron_m_rees@linux.intel.com>
Thu, 7 Mar 2013 21:01:23 +0000 (13:01 -0800)
commit7e1bd88668f332cd125cd30b3b69d18266929806
tree2cda47d880ef3ada7fc33be123a2880999bc3930
parent0804f537f084a7f3cc1306b0306420d2af6cfcb8
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