openwrt/package/uhttpd/src
Jo-Philipp Wich 2bfb1e012a uhttpd URL-codec bug fixes.
* Fixed output-buffer-overflow bug in uh_urlencode() and uh_urldecode() [tested
  input-buffer index against output-buffer length].  In reality, this would not
  typically cause an overflow on decode, where the output string would be
  expected to be shorter than the input string; and uh_urlencode() seems to have
  been unreferenced in the source.

* Fixed bug: uh_urlencode() and uh_urldecode() both read one extra byte from the
  input-string.  While this could manifest in C code, the result was most
  egregious when called from Lua, where it caused an extra null byte to be
  embedded at the end of the output string.

* uh_urlencode() cleanup: removed redundant bitwise-and.

Signed-off-by: David Favro <openwrt@meta-dynamic.com>

SVN-Revision: 31569
2012-05-03 17:19:16 +00:00
..
Makefile uhttpd: reorder compiler flags to fix native build on Ubuntu 11.x 2012-03-13 20:41:31 +00:00
uhttpd-cgi.c uhttpd: fix bad pointer use in previous commit 2011-09-18 23:34:25 +00:00
uhttpd-cgi.h uhttpd: - more robust handling of network failures on static file serving - support unlimited amount of authentication realms, listener and client sockets - support for interpreters (.php => /usr/bin/php-cgi) 2010-08-14 00:54:24 +00:00
uhttpd-file.c uhttpd: properly match mimetype entries which cover the whole filename (#8236) 2011-09-04 10:21:05 +00:00
uhttpd-file.h add uhttpd (moved from LuCI trunk) 2010-03-25 15:46:16 +00:00
uhttpd-lua.c uhttpd: fix a signal related race condition exposed by LuCI on fast machines 2010-03-29 09:26:02 +00:00
uhttpd-lua.h add uhttpd (moved from LuCI trunk) 2010-03-25 15:46:16 +00:00
uhttpd-mimetypes.h uhttpd: add "application/x-ns-proxy-autoconfig" mime type (#8236) 2011-09-02 13:28:29 +00:00
uhttpd-tls.c uhttpd: rework CyaSSL and OpenSSL integration; move protected recv() and send() operations below the ssl layer - fixes hangs when accessing via https 2011-11-05 03:19:07 +00:00
uhttpd-tls.h uhttpd: support building against openssl instead of cyassl, minor cleanups (#7827) 2011-07-18 14:18:31 +00:00
uhttpd-utils.c uhttpd URL-codec bug fixes. 2012-05-03 17:19:16 +00:00
uhttpd-utils.h uhttpd: rework CyaSSL and OpenSSL integration; move protected recv() and send() operations below the ssl layer - fixes hangs when accessing via https 2011-11-05 03:19:07 +00:00
uhttpd.c uhttpd: cope with variable number of spaces in header lines (#11079) 2012-03-04 15:53:51 +00:00
uhttpd.h uhttpd: support building against openssl instead of cyassl, minor cleanups (#7827) 2011-07-18 14:18:31 +00:00