bsdiff: fix patch

This commit is contained in:
alyaeanyx 2021-11-14 21:16:55 +01:00
parent 47a9d5e419
commit 200ffaa072
No known key found for this signature in database
GPG key ID: 87D1AADCD25B8DEE

View file

@ -31,7 +31,7 @@ Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964796
* Copyright 2003-2005 Colin Percival
* All rights reserved
*
@@ -24,56 +26,149 @@
@@ -24,56 +26,148 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
@ -97,7 +97,7 @@ Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=964796
+{
+ off_t result;
+
+#if __GNUC__ >= 5 || \
+#if __GNUC__ >= 5
+ if (__builtin_add_overflow(a, b, &result))
+ errx(1, "Corrupt patch");
+#else