diff options
Diffstat (limited to 'security/binwalk/files/patch-common.c')
-rw-r--r-- | security/binwalk/files/patch-common.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/security/binwalk/files/patch-common.c b/security/binwalk/files/patch-common.c new file mode 100644 index 000000000000..6bad5bddb418 --- /dev/null +++ b/security/binwalk/files/patch-common.c @@ -0,0 +1,11 @@ +--- common.c.orig 2014-10-08 12:07:33.000000000 -0400 ++++ common.c 2014-10-08 12:07:45.000000000 -0400 +@@ -109,7 +109,7 @@ + + if(file_size > 0) + { +- buffer = mmap(NULL, file_size, PROT_READ, (MAP_SHARED | MAP_NORESERVE), fd, 0); ++ buffer = mmap(NULL, file_size, PROT_READ, MAP_SHARED, fd, 0); + if(buffer == MAP_FAILED) + { + perror("mmap"); |