summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* [mod_fastcgi/mod_scgi] zero sockaddr structs before use (fixes #2691)Kyle J. McKay2015-12-043-8/+9
| | | | | | | | | | | | | | | When a sockaddr_un, sockaddr_in or sockaddr_in6 structure is allocated on the stack or heap, it may contain random byte values. The "unused" and "reserved" parts must be zerod otherwise unexpected failures may occur. The simplest way to do this and be compatible with various platforms' struct layouts is just to memset them to 0. Signed-off-by: Kyle J. McKay <mackyle@gmail.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3059 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] do not half-close socket before having received the response (fixes ↵Stefan Bühler2015-12-041-1/+0
| | | | | | | | #2688) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3058 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] test apr-md5 in mod-auth.tStefan Bühler2015-12-042-4/+22
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3057 152afb58-edef-0310-8abb-c4023f1b3aa9
* mod-auth.t: no crypt md5 for darwinKyle J. McKay2015-12-041-0/+1
| | | | | | | | Darwin's crypt does not support the '$...' extensions. Signed-off-by: Kyle J. McKay git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3056 152afb58-edef-0310-8abb-c4023f1b3aa9
* [autobuild] fix missing header in tar ballStefan Bühler2015-11-221-1/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3055 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_secdownload] add required algorithm option; old behaviour available as ↵Stefan Bühler2015-11-2210-337/+678
| | | | | | | | | | "md5", new options "hmac-sha1" and "hmac-sha256" Differential Revision: https://review.lighttpd.net/D7 From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3054 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] refactor base64 functions into separate fileStefan Bühler2015-11-226-132/+265
| | | | | | | | Differential Revision: https://review.lighttpd.net/D6 From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3053 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] encode path with ENCODING_REL_URI in redirect to directory (fixes ↵Stefan Bühler2015-11-074-41/+59
| | | | | | | | #2661, thx gstrauss) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3052 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] add '~' to safe characters in ENCODING_REL_URI/ENCODING_REL_URI_PART ↵Stefan Bühler2015-11-072-4/+5
| | | | | | | | encoding From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3051 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] revert increase of temp file size back to 1MB, provide a configure ↵Stefan Bühler2015-11-076-10/+27
| | | | | | | | option "server.upload-temp-file-size" instead (fixes #2680) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3050 152afb58-edef-0310-8abb-c4023f1b3aa9
* [config] check config option scope; warn if server option is given in ↵Stefan Bühler2015-11-0738-199/+243
| | | | | | | | conditional From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3049 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_secdownload] use a hopefully constant time comparison to check hash ↵Stefan Bühler2015-10-272-1/+12
| | | | | | | | (fixes #2679) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3048 152afb58-edef-0310-8abb-c4023f1b3aa9
* add force_assert for many allocations and function resultsGaurav2015-10-164-1/+26
| | | | | | From: Gaurav <g.gupta@samsung.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3047 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] don't buffer request bodies smaller than 64k on diskStefan Bühler2015-10-132-1/+6
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3046 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_auth] implement and use safe_memclear, using memset_s or explicit_bzero ↵Loganaden Velvindron2015-09-2612-181/+310
| | | | | | | | if available From: Loganaden Velvindron <logan@elandsys.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3045 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] check configparserAlloc() result with force_assertGaurav2015-09-262-0/+2
| | | | | | From: Gaurav <g.gupta@samsung.com> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3044 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] fix search for header end if split across chunks (fixes #2670)Stefan Bühler2015-09-242-1/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3043 152afb58-edef-0310-8abb-c4023f1b3aa9
* [core] allocate at least 4k buffer for incoming dataStefan Bühler2015-09-242-2/+4
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3042 152afb58-edef-0310-8abb-c4023f1b3aa9
* [stat-cache] fix handling of collisions, might have returned wrong data ↵Stefan Bühler2015-09-162-54/+50
| | | | | | | | | | | | | | | | | | | | | (fixes #2669) - don't remember splay_tree nodes for long (dir_node, file_node) after cache lookup; only remember the data they pointed to (sce for file entries, fam_node for dir entries) - unset sce / fam_node when a collision (not matching path) is detected - check again for collision before splaytree_insert; the entry in question is already at the top because it was splayed before. simply replace the data on collisions (and release the old data). - check fam_node for collisions too - splaytree_size handles NULL nodes too - enable some force_assert lines (were in #ifdef DEBUG_STAT_CACHE before) Differential Revision: https://review.lighttpd.net/D1 From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3039 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix packdist.sh output linksStefan Bühler2015-09-151-3/+6
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3038 152afb58-edef-0310-8abb-c4023f1b3aa9
* -next is 1.4.38Stefan Bühler2015-09-154-4/+6
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3037 152afb58-edef-0310-8abb-c4023f1b3aa9
* packdist.sh: use fakeroot for make dist to have root owned files in tarlighttpd-1.4.37Stefan Bühler2015-08-301-1/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3035 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix some warnings found by coverity ("leak" in setup phase, not catching too ↵Stefan Bühler2015-08-303-3/+13
| | | | | | | | long unix socket paths in mod_proxy) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3034 152afb58-edef-0310-8abb-c4023f1b3aa9
* [scons] fix buildStefan Bühler2015-08-291-2/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3033 152afb58-edef-0310-8abb-c4023f1b3aa9
* [scons] fix crypt() detection, other improvementsStefan Bühler2015-08-292-32/+42
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3032 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mmap] handle SIGBUS in network; those get triggered if the file gets ↵Stefan Bühler2015-08-292-2/+42
| | | | | | | | smaller during reading From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3031 152afb58-edef-0310-8abb-c4023f1b3aa9
* [scons] various improvementsStefan Bühler2015-08-295-116/+213
| | | | | | | | | | | | | | - don't generate files in src/ - move all build stuff to sconsbuild/ - have different output directories for static/ and fullstatic/, so we can use that directory for the test suite - each build type (dynamic, static, fullstatic) has its own check target - read CFLAGS, LDFLAGS and LIBS from environment (LIBS are appended after all other dependencies) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3030 152afb58-edef-0310-8abb-c4023f1b3aa9
* [plugins] when modules are linked statically still only load the modules ↵Stefan Bühler2015-08-294-60/+132
| | | | | | | | | | | | | given in the config - previously it would load all modules in some fixed order - also warn when mod_magnet or mod_trigger_b4_dl are compiled without needed dependencies - mod_trigger_b4_dl fails in plugin_init when dependencies are missing From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3029 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mmap] fix mmap alignmentStefan Bühler2015-08-234-7/+21
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3028 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_cgi] rewrite mmap and generic (post body) send error handlingStefan Bühler2015-08-232-54/+120
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3027 152afb58-edef-0310-8abb-c4023f1b3aa9
* [build] put --as-needed into linker flags instead of cflagsStefan Bühler2015-08-232-6/+25
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3026 152afb58-edef-0310-8abb-c4023f1b3aa9
* small README for FreeBSD build setupStefan Bühler2015-08-232-1/+52
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3025 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_dirlisting] remove sys/syslimits.h; base.h already includes limits.hStefan Bühler2015-08-235-28/+19
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3024 152afb58-edef-0310-8abb-c4023f1b3aa9
* [bsd xattr] fix compile break with BSD extended attributes in stat_cacheStefan Bühler2015-08-222-1/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3023 152afb58-edef-0310-8abb-c4023f1b3aa9
* [autoconf] define HAVE_CRYPT when crypt() is presentStefan Bühler2015-08-222-0/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3022 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] fix warning about newline in filenameStefan Bühler2015-08-221-0/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3021 152afb58-edef-0310-8abb-c4023f1b3aa9
* [kqueue] fix kevent callStefan Bühler2015-08-222-1/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3020 152afb58-edef-0310-8abb-c4023f1b3aa9
* [tests] search for perl in PATH instead of /usr/bin; whitespace + test ↵Stefan Bühler2015-08-2229-1185/+1200
| | | | | | | | config cleanups From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3019 152afb58-edef-0310-8abb-c4023f1b3aa9
* [cmake] fix FreeBSD linker bugStefan Bühler2015-08-221-1/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3018 152afb58-edef-0310-8abb-c4023f1b3aa9
* [cmake] don't put date into config.h (not used anyway), only unset local ↵Stefan Bühler2015-08-222-39/+37
| | | | | | | | vars for disabled features instead of clearing cache From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3017 152afb58-edef-0310-8abb-c4023f1b3aa9
* maintain cq->bytes_in in chunk API; keep bytes_out/bytes_in syncedStefan Bühler2015-08-227-150/+97
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3016 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix some unchecked return value warningsStefan Bühler2015-08-226-11/+63
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3015 152afb58-edef-0310-8abb-c4023f1b3aa9
* [cmake] cleanup cache variables if features get deactivatedStefan Bühler2015-08-222-19/+67
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3014 152afb58-edef-0310-8abb-c4023f1b3aa9
* [cmake] lowercase commands, whitespace cleanup, remove clutter in else(...), ↵Stefan Bühler2015-08-225-696/+696
| | | | | | | | endif(...), endforeach(...) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3013 152afb58-edef-0310-8abb-c4023f1b3aa9
* rewrite network (write) backendsStefan Bühler2015-08-2219-1398/+869
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3012 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix undefined integer shiftStefan Bühler2015-08-222-1/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3011 152afb58-edef-0310-8abb-c4023f1b3aa9
* increase upload temporary chunk file size from 1MB to 16MBStefan Bühler2015-08-132-4/+6
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3010 152afb58-edef-0310-8abb-c4023f1b3aa9
* fix out-of-filedescriptors when uploading "large" files (fixes #2660, thx ↵Stefan Bühler2015-08-132-1/+2
| | | | | | | | rmilecki) From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3009 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_dirlisting] fix dir-listing.set-footer not showingStefan Bühler2015-08-092-1/+2
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3008 152afb58-edef-0310-8abb-c4023f1b3aa9
* [mod_proxy] remove debug log line from error log (fixes #2659)Stefan Bühler2015-08-032-1/+1
| | | | | | From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3007 152afb58-edef-0310-8abb-c4023f1b3aa9