Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/xentools411 Fix loading of LZ4 compressed ker...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3d2bcf3e7166
branches:  trunk
changeset: 434837:3d2bcf3e7166
user:      manu <manu%pkgsrc.org@localhost>
date:      Tue Jun 23 13:22:30 2020 +0000

description:
Fix loading of LZ4 compressed kernels

diffstat:

 sysutils/xentools411/Makefile                                  |   4 +-
 sysutils/xentools411/distinfo                                  |   3 +-
 sysutils/xentools411/patches/patch-xen_common_lz4_dexompress.c |  24 ++++++++++
 3 files changed, 28 insertions(+), 3 deletions(-)

diffs (61 lines):

diff -r 5c51aeffa337 -r 3d2bcf3e7166 sysutils/xentools411/Makefile
--- a/sysutils/xentools411/Makefile     Mon Jun 22 19:05:23 2020 +0000
+++ b/sysutils/xentools411/Makefile     Tue Jun 23 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2020/06/18 13:48:54 plunky Exp $
+# $NetBSD: Makefile,v 1.19 2020/06/23 13:22:30 manu Exp $
 #
 VERSION=       4.11.3
 VERSION_IPXE=  356f6c1b64d7a97746d1816cef8ca22bdd8d0b5d
@@ -7,7 +7,7 @@
 DIST_SUBDIR=           xen411
 DISTNAME=              xen-${VERSION}
 PKGNAME=               xentools411-${VERSION}
-PKGREVISION=           4
+PKGREVISION=           5
 CATEGORIES=            sysutils
 MASTER_SITES=          https://downloads.xenproject.org/release/xen/${VERSION}/
 
diff -r 5c51aeffa337 -r 3d2bcf3e7166 sysutils/xentools411/distinfo
--- a/sysutils/xentools411/distinfo     Mon Jun 22 19:05:23 2020 +0000
+++ b/sysutils/xentools411/distinfo     Tue Jun 23 13:22:30 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.12 2020/06/18 13:48:28 plunky Exp $
+$NetBSD: distinfo,v 1.13 2020/06/23 13:22:30 manu Exp $
 
 SHA1 (xen411/ipxe-git-356f6c1b64d7a97746d1816cef8ca22bdd8d0b5d.tar.gz) = 272b8c904dc0127690eca2c5c20c67479e40da34
 RMD160 (xen411/ipxe-git-356f6c1b64d7a97746d1816cef8ca22bdd8d0b5d.tar.gz) = cfcb4a314c15da19b36132b27126f3bd9699d0e5
@@ -81,4 +81,5 @@
 SHA1 (patch-tools_xentrace_xentrace.c) = f964c7555f454358a39f28a2e75db8ee100a4243
 SHA1 (patch-tools_xl_Makefile) = dd4fa8cc66c74eea8b022cd6129aa2831776f2a8
 SHA1 (patch-xen_Rules.mk) = c743dc63f51fc280d529a7d9e08650292c171dac
+SHA1 (patch-xen_common_lz4_dexompress.c) = 521a247c2d36980b3433c4be92c77308a2d3f3b9
 SHA1 (patch-xen_tools_symbols.c) = 67b5a38312095029631e00457abc0e4bb633aaf8
diff -r 5c51aeffa337 -r 3d2bcf3e7166 sysutils/xentools411/patches/patch-xen_common_lz4_dexompress.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xentools411/patches/patch-xen_common_lz4_dexompress.c    Tue Jun 23 13:22:30 2020 +0000
@@ -0,0 +1,24 @@
+--- ./xen/common/lz4/decompress.c.orig 2020-06-23 03:41:56.777396819 +0200
++++ ./xen/common/lz4/decompress.c      2020-06-23 03:42:40.735064865 +0200
+@@ -146,9 +146,9 @@
+                       if (op == oend)
+                               goto _output_error;
+                       continue;
+               }
+-              if (unlikely((unsigned long)cpy < (unsigned long)op))
++              if (unlikely((unsigned long)cpy < (unsigned long)op - (STEPSIZE - 4)))
+                       goto _output_error;
+               LZ4_SECURECOPY(ref, op, cpy);
+               op = cpy; /* correction */
+       }
+@@ -278,9 +278,9 @@
+                       if (op == oend)
+                               goto _output_error;
+                       continue;
+               }
+-              if (unlikely((unsigned long)cpy < (unsigned long)op))
++              if (unlikely((unsigned long)cpy < (unsigned long)op - (STEPSIZE - 4)))
+                       goto _output_error;
+               LZ4_SECURECOPY(ref, op, cpy);
+               op = cpy; /* correction */
+       }



Home | Main Index | Thread Index | Old Index