diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2016-02-10 19:33:57 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2016-02-10 19:33:57 +0000 |
commit | 3fd80ff8ec0196274eec4e0ef42718eee627cae5 (patch) | |
tree | 471d7e92b4a82918c50951bbd726aa1273fce8c8 /NEWS | |
parent | 1a71c13869091fc3a935e4a40ef23cf251a65db4 (diff) | |
download | lighttpd-git-3fd80ff8ec0196274eec4e0ef42718eee627cae5.tar.gz |
[mod_cgi] use MAP_PRIVATE to mmap temporary file instead of MAP_SHARED (fixes #2715)
Flash filesystem JFFS2 does not support mmap PROT_READ MAP_SHARED,
though it does support mmap PROT_READ MAP_PRIVATE
Although MAP_SHARED is preferred, CGI input body is fully collected
prior to handler invoking the CGI, so the temporary file is never
modified after being mapped. Since the request input body is specific
to request and is temporary file, mmap PROT_READ MAP_PRIVATE works fine.
From: Glenn Strauss <gstrauss@gluelogic.com>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3075 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -8,6 +8,7 @@ NEWS * add handling for lua 5.2 and 5.3 (fixes #2674) * use libmemcached instead of deprecated libmemcache * add force_assert for more allocation results + * [mod_cgi] use MAP_PRIVATE to mmap temporary file (fixes #2715) - 1.4.39 - 2016-01-02 * [core] fix memset_s call (fixes #2698) |