提交 e2858cad 编写于 作者: T Tobin C. Harding

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: NTobin C. Harding <me@tobin.cc>
上级 1410fe4e
......@@ -462,6 +462,10 @@ sub parse_file
return;
}
if (! -T $file) {
return;
}
if (skip_parse($file)) {
dprint "skipping file: $file\n";
return;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册