summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2017-10-07 10:36:46 +0300
committerAlon Bar-Lev <alonbl@gentoo.org>2017-10-07 11:21:38 +0300
commit56e280599eeb59efbb7b5cc35571b100df511337 (patch)
treea4d704692429c71a1b8cc13360349a1ad2069e29 /dev-libs/libtasn1/files
parentnet-ftp/ncftp: stabilise 3.2.6 for amd64 (diff)
downloadgentoo-56e280599eeb59efbb7b5cc35571b100df511337.tar.gz
gentoo-56e280599eeb59efbb7b5cc35571b100df511337.tar.bz2
gentoo-56e280599eeb59efbb7b5cc35571b100df511337.zip
dev-libs/libtasn1: cleanup
Package-Manager: Portage-2.3.8, Repoman-2.3.3
Diffstat (limited to 'dev-libs/libtasn1/files')
-rw-r--r--dev-libs/libtasn1/files/libtasn1-4.10-asn1_find_node.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/dev-libs/libtasn1/files/libtasn1-4.10-asn1_find_node.patch b/dev-libs/libtasn1/files/libtasn1-4.10-asn1_find_node.patch
deleted file mode 100644
index b57eb2f25a25..000000000000
--- a/dev-libs/libtasn1/files/libtasn1-4.10-asn1_find_node.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From 5520704d075802df25ce4ffccc010ba1641bd484 Mon Sep 17 00:00:00 2001
-From: Nikos Mavrogiannopoulos <nmav@redhat.com>
-Date: Thu, 18 May 2017 18:03:34 +0200
-Subject: [PATCH] asn1_find_node: added safety check on asn1_find_node()
-
-This prevents a stack overflow in asn1_find_node() which
-is triggered by too long variable names in the definitions
-files. That means that applications have to deliberately
-pass a too long 'name' constant to asn1_write_value()
-and friends. Reported by Jakub Jirasek.
-
-Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
----
- lib/parser_aux.c | 6 ++++++
- 1 file changed, 6 insertions(+)
-
-diff --git a/lib/parser_aux.c b/lib/parser_aux.c
-index b4a7370..976ab38 100644
---- a/lib/parser_aux.c
-+++ b/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;
---
-libgit2 0.25.0
-