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 | 2bfb1e012abca1dbb3797bc5e72e2af3ee741dec (patch) | |
tree | 0094e86406fe46b6e66234dc7b44e7939542f68b /package/uhttpd/src/uhttpd-lua.c | |
parent | 6e5db7ed6908dc1f91cad10cb7f2d84b0afcc852 (diff) | |
download | master-31e0f0ae-2bfb1e012abca1dbb3797bc5e72e2af3ee741dec.tar.gz master-31e0f0ae-2bfb1e012abca1dbb3797bc5e72e2af3ee741dec.tar.bz2 master-31e0f0ae-2bfb1e012abca1dbb3797bc5e72e2af3ee741dec.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>
SVN-Revision: 31569
Diffstat (limited to 'package/uhttpd/src/uhttpd-lua.c')
0 files changed, 0 insertions, 0 deletions