Bug#309721: libapache-configfile-perl: Fails parsing ServerAlias entry with trailing \ for continue to next line

Jason Thomas Jason Thomas <jason@debian.org>, 309721@bugs.debian.org
Thu, 19 May 2005 13:58:16 +1000


Package: libapache-configfile-perl
Version: 1.18-3
Severity: important


The following entries causes a parsing problem:

entry 1:
ServerAlias domain \
domain domain \
domain \
domain

entry 2:
SSLCertificateKeyFile /etc/apache/ssl/FREESSL.webinc.linkinnovations.com.npkey



I added the following at line 252:
print "r - ", $r, "\n";


output 1 below:

r -  domain
r -  domain \
Use of uninitialized value in print at /usr/share/perl5/Apache/ConfigFile.pm lin
e 252.
r - 
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Apache/Con
figFile.pm line 253.
Use of uninitialized value in hash element at /usr/share/perl5/Apache/ConfigFile
.pm line 274.
Use of uninitialized value in hash element at /usr/share/perl5/Apache/ConfigFile
.pm line 274.
Use of uninitialized value in print at /usr/share/perl5/Apache/ConfigFile.pm lin
e 252.


output 2 below:
r -  /etc/apache/ssl/FREESSL.holly.linkinnovations.com.npkey
Use of uninitialized value in print at /usr/share/perl5/Apache/ConfigFile.pm lin
e 252.
r - 
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/Apache/Con
figFile.pm line 253.
Use of uninitialized value in hash element at /usr/share/perl5/Apache/ConfigFile
.pm line 274.
Use of uninitialized value in hash element at /usr/share/perl5/Apache/ConfigFile
.pm line 274.



I think that the regex's on lines 251 and 252 could be written better. A
suggestion would be to use [^\s]*, which means not space multiple times.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)

Versions of packages libapache-configfile-perl depends on:
ii  perl                          5.8.4-8    Larry Wall's Practical Extraction 

-- no debconf information