summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-13 01:06:06 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-08-13 01:06:06 +0000
commitdee882138be180d2206ad14bdcf2bdd65c887aff (patch)
tree55ce541f1ba0eb5aee2fdd9dd2a3179780af7b62 /net-libs/gnutls/files
parentVersion bump to latest snapshot. Beware that the new release is not compatibl... (diff)
downloadgentoo-2-dee882138be180d2206ad14bdcf2bdd65c887aff.tar.gz
gentoo-2-dee882138be180d2206ad14bdcf2bdd65c887aff.tar.bz2
gentoo-2-dee882138be180d2206ad14bdcf2bdd65c887aff.zip
Fix reading of memory (bug #281249).
(Portage version: 14014-svn/cvs/Linux x86_64)
Diffstat (limited to 'net-libs/gnutls/files')
-rw-r--r--net-libs/gnutls/files/gnutls-2.8.2-fix_reading_of_memory.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/net-libs/gnutls/files/gnutls-2.8.2-fix_reading_of_memory.patch b/net-libs/gnutls/files/gnutls-2.8.2-fix_reading_of_memory.patch
new file mode 100644
index 000000000000..99bd1b76cbe6
--- /dev/null
+++ b/net-libs/gnutls/files/gnutls-2.8.2-fix_reading_of_memory.patch
@@ -0,0 +1,26 @@
+http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=commitdiff;h=c12e7507562d5f168330acf1dd7db7cc2079cdf0
+
+--- lib/x509/common.c
++++ lib/x509/common.c
+@@ -181,7 +181,7 @@ _gnutls_x509_oid_data2string (const char *oid, void *value,
+ {
+ char str[MAX_STRING_LEN], tmpname[128];
+ const char *ANAME = NULL;
+- int CHOICE = -1, len = -1, result, i;
++ int CHOICE = -1, len = -1, result;
+ ASN1_TYPE tmpasn = ASN1_TYPE_EMPTY;
+ char asn1_err[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = "";
+
+@@ -317,12 +317,6 @@ _gnutls_x509_oid_data2string (const char *oid, void *value,
+ }
+ }
+ }
+-
+- /* Convert null char in the name to '?'
+- * to protect applications */
+- for (i=0;i<*res_size;i++) {
+- if (res[i] == 0) res[i]='?';
+- }
+
+ return 0;
+ }