Watch
1
Fork
You've already forked kernel_a52xq
0
mirror of https://github.com/a52xq-dev/kernel.git synced 2026-10-18 21:58:11 +07:00

leaking_addresses: do not parse binary files

Currently script parses binary files.  Since we are scanning for
readable kernel addresses there is no need to parse binary files.  We
can use Perl to check if file is binary and skip parsing it if so.

Do not parse binary files.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
This commit is contained in:
Tobin C. Harding 2018-02-19 10:22:15 +11:00
commit e2858caddc

View file

@ -462,6 +462,10 @@ sub parse_file
return;
}
if (! -T $file) {
return;
}
if (skip_parse($file)) {
dprint "skipping file: $file\n";
return;