diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-05-03 17:19:16 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-05-03 17:19:16 +0000 |
commit | 9151869423f9b369a42906dea8707263fe53aff9 (patch) | |
tree | 088d1a4973acf821193f1849bd4b23b0dbb4563a /package/compcache/patches | |
parent | ccd44980d6dd8396be638967a2a13d5109fb1fcd (diff) | |
download | upstream-9151869423f9b369a42906dea8707263fe53aff9.tar.gz upstream-9151869423f9b369a42906dea8707263fe53aff9.tar.bz2 upstream-9151869423f9b369a42906dea8707263fe53aff9.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31569 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/compcache/patches')
0 files changed, 0 insertions, 0 deletions