commit 3034cfabcb3bf437c4eaf15b59deb6a65ef9b05d
Author: Jakub Bogusz <[email protected]>
Date:   Wed Mar 17 22:41:31 2021 +0100

    - removed obsolete Sanity-check-size-passed-to-malloc patch

 Sanity-check-size-passed-to-malloc.patch | 33 --------------------------------
 afflib.spec                              |  2 --
 2 files changed, 35 deletions(-)
---
diff --git a/afflib.spec b/afflib.spec
index 572339e..e40fc3e 100644
--- a/afflib.spec
+++ b/afflib.spec
@@ -20,7 +20,6 @@ Group:                Libraries
 #Source0Download: https://github.com/sshock/AFFLIBv3/releases/
 Source0:       
https://github.com/sshock/AFFLIBv3/archive/v%{version}/AFFLIBv3-%{version}.tar.gz
 # Source0-md5: 83b2b89e23090930905547e7e47f9e09
-Patch0:                Sanity-check-size-passed-to-malloc.patch
 Patch1:                %{name}-x32-x64.patch
 URL:           https://github.com/sshock/AFFLIBv3
 BuildRequires: autoconf >= 2.50
@@ -115,7 +114,6 @@ metadanych. Wiązania nie są jeszcze kompletne.
 
 %prep:
 %setup -q -n AFFLIBv3-%{version}
-%patch0 -p1
 %patch1 -p1
 
 %if %{with system_lzma}
diff --git a/Sanity-check-size-passed-to-malloc.patch 
b/Sanity-check-size-passed-to-malloc.patch
deleted file mode 100644
index dddbfde..0000000
--- a/Sanity-check-size-passed-to-malloc.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 435a2ca802358a3debb6d164d2c33049131df81c Mon Sep 17 00:00:00 2001
-From: Phillip Hellewell <[email protected]>
-Date: Sat, 10 Mar 2018 18:05:39 -0700
-Subject: [PATCH 3/4] Sanity check size passed to malloc...
-
-Add sanity check before calling malloc in af_get_page() function to
-avoid undefined behavior (e.g., seg fault) when dealing with a corrupt
-AFF image with an invalid pagesize.
-
-Issue found by Luis Rocha ([email protected]).
----
- lib/afflib_pages.cpp | 5 +++++
- 1 file changed, 5 insertions(+)
-
-diff --git a/lib/afflib_pages.cpp b/lib/afflib_pages.cpp
-index 2569c2a..f8cf775 100644
---- a/lib/afflib_pages.cpp
-+++ b/lib/afflib_pages.cpp
-@@ -219,6 +219,11 @@ int af_get_page(AFFILE *af,int64_t pagenum,unsigned char 
*data,size_t *bytes)
-           return -3;                  // read error
-       }
- 
-+      /* Sanity check to avoid undefined behaviour when calling malloc below 
with pagesize from a corrupt AFF image. */
-+      if(af->image_pagesize <= 0 || af->image_pagesize > 16*1024*1024)
-+          return -1;
-+
-+
-       /* Now uncompress directly into the buffer provided by the caller, 
unless the caller didn't
-        * provide a buffer. If that happens, allocate our own...
-        */
--- 
-2.13.6
-
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/afflib.git/commitdiff/3034cfabcb3bf437c4eaf15b59deb6a65ef9b05d

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to