From 947a97906eb7019b681e09e07b2d0c713b3a625b Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Mon, 21 Nov 2016 14:45:55 +0100 Subject: [PATCH] check lines for correctness in flash_settings writer --- tools/flash_settings.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/flash_settings.pl b/tools/flash_settings.pl index bc8ede0..adcbb44 100755 --- a/tools/flash_settings.pl +++ b/tools/flash_settings.pl @@ -101,7 +101,7 @@ if (defined($settings_file) and not($settings_file eq "/dev/null") ) { close(FH); for my $line (@lines) { - $line =~ m/(^[xXa-fA-F0-9]+)\s+([xXa-fA-F0-9]+)/; + next unless $line =~ m/(^[xXa-fA-F0-9]+)\s+([xXa-fA-F0-9]+)/; $sc_data->{eval($1)} = eval($2); # convert hex/binary/decimal strings to numbers } -- 2.43.0