Skip to content

Commit

Permalink
main/libgcrypt: fix CVE-2019-12904
Browse files Browse the repository at this point in the history
ref #10692

Closes GH-9725
  • Loading branch information
maxice8 authored and Ikke committed Jul 28, 2019
1 parent c2b1399 commit 237b184
Show file tree
Hide file tree
Showing 2 changed files with 485 additions and 6 deletions.
16 changes: 10 additions & 6 deletions main/libgcrypt/APKBUILD
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgcrypt
pkgver=1.8.4
pkgrel=1
pkgrel=2
pkgdesc="general purpose crypto library based on the code used in GnuPG"
url="http://www.gnupg.org"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="libgpg-error-dev"
makedepends="$depends_dev texinfo"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://www.gnupg.org/ftp/gcrypt/libgcrypt/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir"/$pkgname-$pkgver
source="https://www.gnupg.org/ftp/gcrypt/libgcrypt/$pkgname-$pkgver.tar.bz2
CVE-2019-12904.patch
"
options="!checkroot"

# secfixes:
# 1.8.4-r2:
# - CVE-2019-12904
# 1.8.3-r0:
# - CVE-2018-0495
# - CVE-2018-0495

build () {
build() {
cd "$builddir"

local _arch_configure=
Expand Down Expand Up @@ -63,4 +66,5 @@ static() {
mv "$pkgdir"/usr/lib/*.a "$subpkgdir"/usr/lib/
}

sha512sums="b831fc337eb14806897e224b0d1e78d1f8e9db91dffa818a015a4aa104144e2d971e5a855904907ee2bb9990a9d526de32d6787e1cae98e28a65c3258b2b1ea1 libgcrypt-1.8.4.tar.bz2"
sha512sums="b831fc337eb14806897e224b0d1e78d1f8e9db91dffa818a015a4aa104144e2d971e5a855904907ee2bb9990a9d526de32d6787e1cae98e28a65c3258b2b1ea1 libgcrypt-1.8.4.tar.bz2
36f5f7f99e2c4f28207f91a7a500c3bca81044027b6d37ed0399e395a36638b37c0dff3145854a6caa2e9383722862b37a82bde1af520f06a9f4b327df1ec0af CVE-2019-12904.patch"

0 comments on commit 237b184

Please sign in to comment.