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
..
2012-03-19 21:10:04 +00:00
2011-03-07 12:59:19 +00:00
2012-03-18 19:46:52 +00:00
2012-04-02 16:25:40 +00:00
2012-04-28 19:54:54 +00:00
2012-01-30 14:02:10 +00:00
2012-02-08 10:20:13 +00:00
2012-02-14 20:13:28 +00:00
2012-02-27 23:08:15 +00:00
2012-03-25 08:50:42 +00:00
2011-07-10 10:40:37 +00:00
2010-09-30 10:48:37 +00:00
2012-05-02 15:40:32 +00:00
2012-02-14 15:05:52 +00:00
2012-03-25 08:51:16 +00:00
2012-05-03 13:29:36 +00:00
2012-03-18 21:08:39 +00:00
2010-09-30 10:48:37 +00:00
2011-07-17 22:47:56 +00:00
2010-10-27 21:24:06 +00:00
2012-03-25 08:51:13 +00:00
2011-12-06 16:00:00 +00:00
2012-05-03 17:19:16 +00:00
2012-04-28 19:54:54 +00:00
2012-01-30 14:02:13 +00:00