From def688287704c0e945fd3269bce12353cbed996f Mon Sep 17 00:00:00 2001 From: UsernameRandomlyGenerated Date: Fri, 19 Feb 2021 21:04:06 +0100 Subject: [PATCH] detox: update to 1.4.1. --- ...etox-1.2.0.fix-invalid-memory-access.patch | 23 ------------------- srcpkgs/detox/template | 4 ++-- 2 files changed, 2 insertions(+), 25 deletions(-) delete mode 100644 srcpkgs/detox/patches/detox-1.2.0.fix-invalid-memory-access.patch diff --git a/srcpkgs/detox/patches/detox-1.2.0.fix-invalid-memory-access.patch b/srcpkgs/detox/patches/detox-1.2.0.fix-invalid-memory-access.patch deleted file mode 100644 index df6f7f8a82f..00000000000 --- a/srcpkgs/detox/patches/detox-1.2.0.fix-invalid-memory-access.patch +++ /dev/null @@ -1,23 +0,0 @@ ---- src/parse_options.c.dt -+++ src/parse_options.c -@@ -178,15 +178,17 @@ struct detox_options *parse_options_geto - main_options->files = malloc(sizeof(char *) * 10); - - i = 0; -- max = 0; -+ max = 10; - - if (optind < argc) { - while (optind < argc) { -- main_options->files[i++] = strdup(argv[optind]); -- if (i > max) { -+ /* not enough space for the next file and -+ possible ending NULL -> realloc */ -+ if (i + 2 > max) { - main_options->files = realloc(main_options->files, sizeof(char *) * (10 + max)); - max += 10; - } -+ main_options->files[i++] = strdup(argv[optind]); - - optind++; - } diff --git a/srcpkgs/detox/template b/srcpkgs/detox/template index 6d02ea19904..dd21cdc3627 100644 --- a/srcpkgs/detox/template +++ b/srcpkgs/detox/template @@ -1,6 +1,6 @@ # Template file for 'detox' pkgname=detox -version=1.3.3 +version=1.4.1 revision=1 build_style=gnu-configure configure_args="--sysconfdir=/etc/detox" @@ -11,7 +11,7 @@ maintainer="Martin Födinger " license="BSD-3-Clause" homepage="https://github.com/dharple/detox" distfiles="https://github.com/dharple/detox/archive/v${version}.tar.gz" -checksum=d57b6b8909046e66e2d992c126aba59c350d8aebfae55937397ef0b88abb4ae0 +checksum=fd71aa31abc82b1ec8b7ce996cd70062939e9c165b106f395beced3706c5ea17 pre_configure() { autoreconf --install