mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 02:42:56 +02:00
Merge pull request #6519 from Hoshpak/libtasn-CVE-2017-6891
libtasn1: add CVE-2017-6891.patch
This commit is contained in:
commit
8881811188
2 changed files with 25 additions and 1 deletions
24
srcpkgs/libtasn1/patches/CVE-2017-6891.patch
Normal file
24
srcpkgs/libtasn1/patches/CVE-2017-6891.patch
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
diff --git a/lib/parser_aux.c b/lib/parser_aux.c
|
||||||
|
index b4a7370..976ab38 100644 (file)
|
||||||
|
--- lib/parser_aux.c
|
||||||
|
+++ lib/parser_aux.c
|
||||||
|
@@ -120,6 +120,9 @@ asn1_find_node (asn1_node pointer, const char *name)
|
||||||
|
if (n_end)
|
||||||
|
{
|
||||||
|
nsize = n_end - n_start;
|
||||||
|
+ if (nsize >= sizeof(n))
|
||||||
|
+ return NULL;
|
||||||
|
+
|
||||||
|
memcpy (n, n_start, nsize);
|
||||||
|
n[nsize] = 0;
|
||||||
|
n_start = n_end;
|
||||||
|
@@ -158,6 +161,9 @@ asn1_find_node (asn1_node pointer, const char *name)
|
||||||
|
if (n_end)
|
||||||
|
{
|
||||||
|
nsize = n_end - n_start;
|
||||||
|
+ if (nsize >= sizeof(n))
|
||||||
|
+ return NULL;
|
||||||
|
+
|
||||||
|
memcpy (n, n_start, nsize);
|
||||||
|
n[nsize] = 0;
|
||||||
|
n_start = n_end;
|
|
@ -1,7 +1,7 @@
|
||||||
# Template build file for 'libtasn1'.
|
# Template build file for 'libtasn1'.
|
||||||
pkgname=libtasn1
|
pkgname=libtasn1
|
||||||
version=4.10
|
version=4.10
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="perl"
|
hostmakedepends="perl"
|
||||||
short_desc="ASN.1 structure parser library"
|
short_desc="ASN.1 structure parser library"
|
||||||
|
|
Loading…
Add table
Reference in a new issue