[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[lintian] 01/01: checks/pe.pm: Check PE binary with is_open_okay before opening.



This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch master
in repository lintian.

commit fa224e016476aec2bdd16fa8403c5a2bad61742c
Author: Chris Lamb <lamby@debian.org>
Date:   Fri Dec 22 10:15:16 2017 +0000

    checks/pe.pm: Check PE binary with is_open_okay before opening.
---
 checks/pe.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/checks/pe.pm b/checks/pe.pm
index cbc0257..226e824 100644
--- a/checks/pe.pm
+++ b/checks/pe.pm
@@ -34,6 +34,7 @@ sub run {
     foreach my $file ($info->sorted_index) {
         next unless $file->is_file;
         next unless $file->file_info =~ /^PE32\+? executable/;
+        next unless $file->is_open_ok;
 
         my $buf;
         my $fd = $file->open;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/lintian/lintian.git


Reply to: