Project

General

Profile

Bug #2140

Segfault on config error

Added by crypt almost 7 years ago. Updated almost 7 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_rewrite
Target version:
Start date:
2009-12-31
Due date:
% Done:

100%

Missing in 1.5.x:
No

Description

he config syntax of lighttpd's rewrite rules are more like associative arrays in PHP then the rewrite syntax of Apache webserver. Thus, a migration from Apache to lighttpd is not really trivial with a certain number of rules. Felt after the 10,000th rule I made a copying error, so that in simple terms the config looked like this:

url.rewrite-once = (
...
"^/foo" => "$0",
"^/(.*)" => "/handler/$1$",
...
)

At some point of lighttpd's development there was an optimization in the handling of the pattern, so that this config mistake triggers a segfault. My little patch closes the error.

mod_rewrite.patch View (1.23 KB) crypt, 2009-12-31 14:37

Associated revisions

Revision 2707 (diff)
Added by stbuehler almost 7 years ago

Fix segfault with broken rewrite/redirect patterns (fixes #2140, found by crypt)

Revision f2cd823b (diff)
Added by stbuehler almost 7 years ago

Fix segfault with broken rewrite/redirect patterns (fixes #2140, found by crypt)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2707 152afb58-edef-0310-8abb-c4023f1b3aa9

History

#1 Updated by stbuehler almost 7 years ago

  • Status changed from New to Fixed

Applied in changeset r2707.

Also available in: Atom