Date: Wednesday, May 25, 2022 @ 14:55:23 Author: andyrtr Revision: 446516
upgpkg: gnutls 3.7.5-2: fix memory corruption - FS#74770 Modified: gnutls/trunk/PKGBUILD ----------+ PKGBUILD | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-05-25 14:53:51 UTC (rev 446515) +++ PKGBUILD 2022-05-25 14:55:23 UTC (rev 446516) @@ -3,7 +3,7 @@ pkgname=gnutls pkgver=3.7.5 -pkgrel=1 +pkgrel=2 pkgdesc="A library which provides a secure layer over a reliable transport layer" arch=('x86_64') license=('GPL3' 'LGPL2.1') @@ -16,11 +16,19 @@ optdepends=('guile: for use with Guile bindings' 'tpm2-tss: support for TPM2 wrapped keys' 'zstd: for compression support') -source=(https://www.gnupg.org/ftp/gcrypt/gnutls/v3.7/${pkgname}-${pkgver}.tar.xz{,.sig}) +source=(https://www.gnupg.org/ftp/gcrypt/gnutls/v3.7/${pkgname}-${pkgver}.tar.xz{,.sig} + 0001_Fix_out-of-bounds_memcpy_in_gnutls_realloc_zero.diff::https://gitlab.com/gnutls/gnutls/-/merge_requests/1592.patch) sha256sums=('1f85028475b4f255cc5b480af0c37e61eab43024c1507c8b75d6be506c0553ad' + 'SKIP' 'SKIP') validpgpkeys=('462225C3B46F34879FC8496CD605848ED7E69871') # "Daiki Ueno <u...@unixuser.org>" +prepare() { + cd ${pkgname}-${pkgver} + # FS#74770 / https://gitlab.com/gnutls/gnutls/-/issues/1367 + patch -Np1 -i ../0001_Fix_out-of-bounds_memcpy_in_gnutls_realloc_zero.diff +} + build() { cd ${pkgname}-${pkgver} ./configure --prefix=/usr \