Bug #2065

core dumped on duplicate "else conditions"

Added by moo about 5 years ago. Updated about 5 years ago.

Status:FixedStart date:2009-09-10
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:core
Target version:1.4.24
Missing in 1.5.x:No

Description

$HTTP["host"] == "test.example.com" {
}
else $HTTP["host"] == "test.example.com" {
}

./lighttpd -Df lighttpd.conf.tmp

with debug build:

lighttpd: ../src/configparser.y:356: yy_reduce: Assertion `yymsp[-3].minor.yy78->context_ndx < yymsp[0].minor.yy78->context_ndx' failed.

with release build:
no error on start up, but when user request test.example.com lighttpd will segv

reproduced in branches/1.4.x/ and trunk/ at r2618

Associated revisions

Revision 2640
Added by stbuehler about 5 years ago

Fix segfault on invalid config "duplicate else conditions" (fixes #2065)

History

#1 Updated by stbuehler about 5 years ago

  • Target version changed from 1.4.x to 1.4.24

#2 Updated by stbuehler about 5 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2640.

#3 Updated by stbuehler about 5 years ago

  • Missing in 1.5.x set to No

Also available in: Atom