wok view syslinux/stuff/extra/keytab-lilo.u @ rev 21820

syslinux/kbd: check kbd malloc pointer
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 25 11:41:26 2019 +0200 (2019-08-25)
parents
children
line source
1 kbd 2.0.3 support
2 --- utils/keytab-lilo
3 +++ utils/keytab-lilo
4 @@ -48,9 +48,9 @@
5 $empty = 1;
6 while (<FILE>) {
7 chop;
8 - if (/^(static\s+)?u_short\s+(\S+)_map\[\S*\]\s+=\s+{\s*$/) {
9 + if (/^(static\s+)?(u_|unsigned )short\s+(\S+)_map\[\S*\]\s+=\s+{\s*$/) {
10 die "active at beginning of map" if defined $current;
11 - $current = $pfx.":".$2;
12 + $current = $pfx.":".$3;
13 next;
14 }
15 undef $current if /^};\s*$/;