Bug#794263: devscripts: licensecheck enters endless loop if last copyright line ends with digit

Jonas Smedegaard dr at jones.dk
Fri Jul 31 19:00:49 UTC 2015


Package: devscripts
Version: 2.15.6
Severity: important
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lines 373 onwards of licensecheck loops through potential copyright
lines.  Line 377 does another loop within that, merging with next
potential copyright line if the line ends in digit (and maybe more).

That inner loop fails and loops endlessly if there are no more lines to
merge from.

A fix is to skip inner loop if on last line - i.e. change from this:

	    while ($copyright_match =~ /\d[,.]?\s*$/) {

to this:

	    while ( (@c) and $copyright_match =~ /\d[,.]?\s*$/ ) {


Current devscripts package causes ghostscript, and possibly other
packages, to FTBFS, thus raising to severity important.

 - Jonas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJVu8XcAAoJECx8MUbBoAEhlMEP/2LfGeXMez2qZeRrMGmS4uQb
/31Lvp7sZa5X84gIvRLVnf0q8mk3GrHm9nTn+69W33EYKNc+jEm6ONTLv1kZ1Rr5
hjxs/Tbor9w4CeeB9GYwClr9YCaLIDJ6Pnpy5IPzFD5hkv/V7N60aaqKcO4r+rUy
f4ASWw/3rkPCwEhpx51YOiYMuccoASd1wc2TfHbcTt6RCEc8+wMz+G7iBpN7OyOp
VarWH3uA596BOqoihTvcenMT4Qh1hXDuG3VpazPO+cUO0BqsxxGXldvK7816MByC
jHeqjffJGis9n8HHms9um0SsCGxDXl7JWXdvTDC08Y6PvJy2HyryGovX915nGptr
c16Zw36zk4jR8eiUCykV+YEvLQuwKQMOKBRKAUeWYSyW8apyRcA928+5vJaGjLFa
kTKJ49DmxTa6VzxISWY3881S0Wdd9H8RAhoQi+OQWMCj+npkKTu4k2m7okXD2c91
syEOHbCnhEYeUzoIpDpA1NzyMR3GWNzYs5RZih1nG49pKOzvHhYHHkEp/TcSSy/f
70oKo07c3GlKVNfcIVO5wXCwAkHZsb4jxHL2vjIuZi3n6GxQqFm1IvYTrhw68woQ
hFD9I8BbXLt43CMBfGiQHAgelGrui7NG5lon0kAulGTd84b012OFzaT6u0W7u2Ry
MWqaEq5MxAQSbGDnf5fu
=jPpM
-----END PGP SIGNATURE-----



More information about the devscripts-devel mailing list