Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2858cad authored by Tobin C. Harding's avatar Tobin C. Harding
Browse files

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: default avatarTobin C. Harding <me@tobin.cc>
parent 1410fe4e
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -462,6 +462,10 @@ sub parse_file
		return;
	}

	if (! -T $file) {
		return;
	}

	if (skip_parse($file)) {
		dprint "skipping file: $file\n";
		return;