<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/package/uhttpd/src/uhttpd-utils.c, branch reboot</title>
<subtitle>MTK 20170518 : Mediatek SDK based on OpenWRT Barrier Breaker</subtitle>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/'/>
<entry>
<title>packages: sort network related packages into package/network/</title>
<updated>2012-10-10T12:32:29+00:00</updated>
<author>
<name>Felix Fietkau</name>
<email>nbd@openwrt.org</email>
</author>
<published>2012-10-10T12:32:29+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=405e21d16731b2764ab82aaaadcf36a813b105f7'/>
<id>405e21d16731b2764ab82aaaadcf36a813b105f7</id>
<content type='text'>
SVN-Revision: 33688
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVN-Revision: 33688
</pre>
</div>
</content>
</entry>
<entry>
<title>uhttpd: various changes</title>
<updated>2012-07-13T17:10:56+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2012-07-13T17:10:56+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=00f1b1d62abc566e394d8b4dbf1d7580ffe3321f'/>
<id>00f1b1d62abc566e394d8b4dbf1d7580ffe3321f</id>
<content type='text'>
	- remove unused variables
	- simply ignore command line args which belong to not enabled features
	- resolve peer address at accept() time, should solve (#11850)
	- remove floating point operations where possible

SVN-Revision: 32704
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
	- remove unused variables
	- simply ignore command line args which belong to not enabled features
	- resolve peer address at accept() time, should solve (#11850)
	- remove floating point operations where possible

SVN-Revision: 32704
</pre>
</div>
</content>
</entry>
<entry>
<title>uhttpd: various fixes</title>
<updated>2012-07-09T00:08:20+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2012-07-09T00:08:20+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=86de034767ea5ce560a55fa1cb59fec9ea6fcc20'/>
<id>86de034767ea5ce560a55fa1cb59fec9ea6fcc20</id>
<content type='text'>
    - avoid closing descriptors before removing them from uloop (#11755, #11830)
    - do not auto-initialize ubus if no prefix is set (#11832)
    - remove extraneous client context pointer from cgi and lua states
    - code cleanups and debug message changes

SVN-Revision: 32651
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    - avoid closing descriptors before removing them from uloop (#11755, #11830)
    - do not auto-initialize ubus if no prefix is set (#11832)
    - remove extraneous client context pointer from cgi and lua states
    - code cleanups and debug message changes

SVN-Revision: 32651
</pre>
</div>
</content>
</entry>
<entry>
<title>uhttpd: do not subscribe to epoll write events Watch child read pipe end for data instead of relying on socket write notification to process cgi data, should lower cpu consumption during requests on weaker devices.</title>
<updated>2012-07-06T17:29:25+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2012-07-06T17:29:25+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=1f2d5da8876fd4475b47093bb566d2eecb87de13'/>
<id>1f2d5da8876fd4475b47093bb566d2eecb87de13</id>
<content type='text'>
SVN-Revision: 32640
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVN-Revision: 32640
</pre>
</div>
</content>
</entry>
<entry>
<title>uhttpd: - rewrite large parts of the server, use uloop event driven structure - support concurrent requests and make the upper limit configurable - implement initial version of HTTP-to-ubus JSON proxy and session.* namespace - add compile time support for debug information - code style changes - bump package revision</title>
<updated>2012-05-28T00:52:24+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2012-05-28T00:52:24+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=022fa36b40b02248436584cf0f71bb26d79eb644'/>
<id>022fa36b40b02248436584cf0f71bb26d79eb644</id>
<content type='text'>
SVN-Revision: 31931
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVN-Revision: 31931
</pre>
</div>
</content>
</entry>
<entry>
<title>uhttpd: display errors in init script, code formatting changes, bump package version</title>
<updated>2012-05-03T17:19:22+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2012-05-03T17:19:22+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=8e9d914343967982a1a48e80000bbb09161e636c'/>
<id>8e9d914343967982a1a48e80000bbb09161e636c</id>
<content type='text'>
SVN-Revision: 31572
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVN-Revision: 31572
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed: [PATCH 2/3] uhttpd URL-codec enhancements.</title>
<updated>2016-03-20T19:05:13+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2012-05-03T17:19:18+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=bcd8d530d10127ce0be796fe7ef42944c47d4485'/>
<id>bcd8d530d10127ce0be796fe7ef42944c47d4485</id>
<content type='text'>
My apologies, the 2nd of those patches had a syntax error -- that's what
I get for making a last-minute edit, even to the comments, without
testing! :-p

Here is the corrected patch.

-- David

From d259cff104d2084455476b82e92a3a27524f4263 Mon Sep 17 00:00:00 2001
From: David Favro &lt;openwrt@meta-dynamic.com&gt;
Date: Fri, 27 Apr 2012 14:17:52 -0400
Subject: [PATCH] uhttpd URL-codec enhancements.

* uh_urlencode() and uh_urldecode() now return an error condition for
  buffer-overflow and malformed-encoding rather than normal return with corrupt
  or truncated data.  As HTTP request processing is currently implemented, this
  causes a 404 HTTP status returned to the client, while 400 is more
  appropriate.

* Exposed urlencode() to Lua.

* Lua's uhttpd.urlencode() and .urldecode() now raise an error condition for
  buffer-overflow and malformed-encoding rather than normal return with
  incorrect data.

SVN-Revision: 31570
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
My apologies, the 2nd of those patches had a syntax error -- that's what
I get for making a last-minute edit, even to the comments, without
testing! :-p

Here is the corrected patch.

-- David

From d259cff104d2084455476b82e92a3a27524f4263 Mon Sep 17 00:00:00 2001
From: David Favro &lt;openwrt@meta-dynamic.com&gt;
Date: Fri, 27 Apr 2012 14:17:52 -0400
Subject: [PATCH] uhttpd URL-codec enhancements.

* uh_urlencode() and uh_urldecode() now return an error condition for
  buffer-overflow and malformed-encoding rather than normal return with corrupt
  or truncated data.  As HTTP request processing is currently implemented, this
  causes a 404 HTTP status returned to the client, while 400 is more
  appropriate.

* Exposed urlencode() to Lua.

* Lua's uhttpd.urlencode() and .urldecode() now raise an error condition for
  buffer-overflow and malformed-encoding rather than normal return with
  incorrect data.

SVN-Revision: 31570
</pre>
</div>
</content>
</entry>
<entry>
<title>uhttpd URL-codec bug fixes.</title>
<updated>2012-05-03T17:19:16+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2012-05-03T17:19:16+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=2bfb1e012abca1dbb3797bc5e72e2af3ee741dec'/>
<id>2bfb1e012abca1dbb3797bc5e72e2af3ee741dec</id>
<content type='text'>
* 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 &lt;openwrt@meta-dynamic.com&gt;

SVN-Revision: 31569
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* 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 &lt;openwrt@meta-dynamic.com&gt;

SVN-Revision: 31569
</pre>
</div>
</content>
</entry>
<entry>
<title>uhttpd: cope with DES crypted passwd entries by not relying on a leading dollar sign to indicate a cipher</title>
<updated>2011-11-09T18:55:28+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2011-11-09T18:55:28+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=44da6400cde94d6b3cb7581cf474282ea1bcafd3'/>
<id>44da6400cde94d6b3cb7581cf474282ea1bcafd3</id>
<content type='text'>
SVN-Revision: 28886
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVN-Revision: 28886
</pre>
</div>
</content>
</entry>
<entry>
<title>uhttpd: rework CyaSSL and OpenSSL integration; move protected recv() and send() operations below the ssl layer - fixes hangs when accessing via https</title>
<updated>2011-11-05T03:19:07+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2011-11-05T03:19:07+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=3d035a6f6ab63c2e3031678cda194435526da918'/>
<id>3d035a6f6ab63c2e3031678cda194435526da918</id>
<content type='text'>
SVN-Revision: 28761
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVN-Revision: 28761
</pre>
</div>
</content>
</entry>
</feed>
