Project

General

Profile

Actions

Bug #2140

closed

Segfault on config error

Added by crypt almost 12 years ago. Updated over 11 years ago.

Status:
Fixed
Priority:
Normal
Category:
mod_rewrite
Target version:
ASK QUESTIONS IN Forums:

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.


Files

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

Updated by stbuehler over 11 years ago

  • Status changed from New to Fixed

Applied in changeset r2707.

Actions

Also available in: Atom