<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mtk-20170518/package/uhttpd/src/uhttpd.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 dispatch pipe error events, fixes use after free for cgi and lua scripts</title>
<updated>2012-07-07T16:43:27+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2012-07-07T16:43:27+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=92e2e3f5670c019e0ad0346d5f82c02da0bd4733'/>
<id>92e2e3f5670c019e0ad0346d5f82c02da0bd4733</id>
<content type='text'>
SVN-Revision: 32644
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVN-Revision: 32644
</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: fix wrongly applied sizeof() leading to writing beyound end of buffer and subsequent data corruption (#11557)</title>
<updated>2012-05-30T15:30:07+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2012-05-30T15:30:07+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=5aefe3b277662416ea1a6e97292d4b360ef74c41'/>
<id>5aefe3b277662416ea1a6e97292d4b360ef74c41</id>
<content type='text'>
SVN-Revision: 32005
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SVN-Revision: 32005
</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>uhttpd: added uhttpd.docroot</title>
<updated>2012-05-03T17:19:20+00:00</updated>
<author>
<name>Jo-Philipp Wich</name>
<email>jow@openwrt.org</email>
</author>
<published>2012-05-03T17:19:20+00:00</published>
<link rel='alternate' type='text/html' href='http://www.chd.sx/cgit/mtk-20170518/commit/?id=54b34ccbc5a41e7bdbf29271dcc380715418f8c1'/>
<id>54b34ccbc5a41e7bdbf29271dcc380715418f8c1</id>
<content type='text'>
Passes the document-root to the Lua handler by placing it in uhttpd.docroot.

It could alternatively be placed in env.DOCUMENT_ROOT which would more closely
resemble the CGI protocol; but would mean that it is not available at the time
when the handler-chunk is loaded but rather not until the handler is called,
without any code savings.

Signed-off-by: David Favro &lt;openwrt@meta-dynamic.com&gt;

SVN-Revision: 31571
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Passes the document-root to the Lua handler by placing it in uhttpd.docroot.

It could alternatively be placed in env.DOCUMENT_ROOT which would more closely
resemble the CGI protocol; but would mean that it is not available at the time
when the handler-chunk is loaded but rather not until the handler is called,
without any code savings.

Signed-off-by: David Favro &lt;openwrt@meta-dynamic.com&gt;

SVN-Revision: 31571
</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>
</feed>
