[mod_dirlisting] fix memory leak if pcre fails

From: Stefan Bühler <stbuehler@web.de>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2941 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.35
Stefan Bühler 2014-02-14 21:06:05 +00:00
parent 0aaf939e5e
commit d59c910d6a
2 changed files with 6 additions and 1 deletions

1
NEWS
View File

@ -7,6 +7,7 @@ NEWS
* [network/ssl] fix build error if TLSEXT is disabled
* [mod_fastcgi] fix use after free (only triggered if fastcgi debug is active)
* [mod_rrdtool] fix invalid read (string not null terminated)
* [mod_dirlisting] fix memory leak if pcre fails
- 1.4.34
* [mod_auth] explicitly link ssl for SHA1 (fixes #2517)

View File

@ -730,7 +730,11 @@ static int http_list_directory(server *srv, connection *con, plugin_data *p, buf
log_error_write(srv, __FILE__, __LINE__, "sd",
"execution error while matching:", n);
return -1;
/* aborting would require a lot of manual cleanup here.
* skip instead (to not leak names that break pcre matching)
*/
exclude_match = 1;
break;
}
}
else {