leaking_addresses: do not parse binary files
authorTobin C. Harding <me@tobin.cc>
Sun, 18 Feb 2018 23:22:15 +0000 (10:22 +1100)
committerTobin C. Harding <me@tobin.cc>
Fri, 6 Apr 2018 22:50:34 +0000 (08:50 +1000)
commite2858caddc71f61521254a5359d17d058d6dda08
treea6c21d1398063df21b7ee095697acde0a5c3557d
parent1410fe4eea22959bd31c05e4c1846f1718300bde
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>
scripts/leaking_addresses.pl