summaryrefslogtreecommitdiff
path: root/databases/mysql-client/patches
diff options
context:
space:
mode:
authormartti <martti@pkgsrc.org>2003-10-05 17:55:13 +0000
committermartti <martti@pkgsrc.org>2003-10-05 17:55:13 +0000
commit08a315055052ed3f2f5b0f23ef400d2e445815e9 (patch)
treebf659890b4b25f1d76f215d00d23bd63183f0ee6 /databases/mysql-client/patches
parent2e485d82d3b46f12909b003061e0f5c9892d31a4 (diff)
downloadpkgsrc-08a315055052ed3f2f5b0f23ef400d2e445815e9.tar.gz
Update mysql-client to 3.23.58
A lot of bug and security fixes since 3.23.51...
Diffstat (limited to 'databases/mysql-client/patches')
-rw-r--r--databases/mysql-client/patches/patch-af10
-rw-r--r--databases/mysql-client/patches/patch-al65
-rw-r--r--databases/mysql-client/patches/patch-am12
3 files changed, 5 insertions, 82 deletions
diff --git a/databases/mysql-client/patches/patch-af b/databases/mysql-client/patches/patch-af
index 209ffe84c4a..f0c5a86ff76 100644
--- a/databases/mysql-client/patches/patch-af
+++ b/databases/mysql-client/patches/patch-af
@@ -1,12 +1,12 @@
-$NetBSD: patch-af,v 1.7 2003/09/28 09:03:53 jdolecek Exp $
+$NetBSD: patch-af,v 1.8 2003/10/05 17:55:13 martti Exp $
---- configure.orig 2002-06-03 12:39:20.000000000 +0200
-+++ configure 2003-09-28 10:31:36.000000000 +0200
-@@ -13397,7 +13397,6 @@
+--- configure.orig Fri Jun 6 14:39:41 2003
++++ configure Wed Jul 9 17:15:10 2003
+@@ -19952,7 +19952,6 @@
else
bench_dirs=""
fi
-bench_dirs="$bench_dirs mysql-test"
- # Don't build readline, i have it already
+ # Don't build readline, i have it already
diff --git a/databases/mysql-client/patches/patch-al b/databases/mysql-client/patches/patch-al
deleted file mode 100644
index b4b0e4817e8..00000000000
--- a/databases/mysql-client/patches/patch-al
+++ /dev/null
@@ -1,65 +0,0 @@
-$NetBSD: patch-al,v 1.1 2002/12/13 14:19:54 tron Exp $
-
---- libmysql/libmysql.c.orig Thu Feb 14 18:30:17 2002
-+++ libmysql/libmysql.c Fri Dec 13 15:11:45 2002
-@@ -886,7 +886,7 @@
- uint field,pkt_len;
- ulong len;
- uchar *cp;
-- char *to;
-+ char *to, *end_to;
- MYSQL_DATA *result;
- MYSQL_ROWS **prev_ptr,*cur;
- NET *net = &mysql->net;
-@@ -924,6 +924,7 @@
- *prev_ptr=cur;
- prev_ptr= &cur->next;
- to= (char*) (cur->data+fields+1);
-+ end_to=to+pkt_len-1;
- for (field=0 ; field < fields ; field++)
- {
- if ((len=(ulong) net_field_length(&cp)) == NULL_LENGTH)
-@@ -933,6 +934,13 @@
- else
- {
- cur->data[field] = to;
-+ if (len > end_to - to)
-+ {
-+ free_rows(result);
-+ net->last_errno=CR_UNKNOWN_ERROR;
-+ strmov(net->last_error,ER(net->last_errno));
-+ DBUG_RETURN(0);
-+ }
- memcpy(to,(char*) cp,len); to[len]=0;
- to+=len+1;
- cp+=len;
-@@ -967,7 +975,7 @@
- {
- uint field;
- ulong pkt_len,len;
-- uchar *pos,*prev_pos;
-+ uchar *pos,*prev_pos, *end_pos;
-
- if ((pkt_len=(uint) net_safe_read(mysql)) == packet_error)
- return -1;
-@@ -975,6 +983,7 @@
- return 1; /* End of data */
- prev_pos= 0; /* allowed to write at packet[-1] */
- pos=mysql->net.read_pos;
-+ end_pos=pos+pkt_len;
- for (field=0 ; field < fields ; field++)
- {
- if ((len=(ulong) net_field_length(&pos)) == NULL_LENGTH)
-@@ -984,6 +993,12 @@
- }
- else
- {
-+ if (len > end_pos - pos)
-+ {
-+ mysql->net.last_errno=CR_UNKNOWN_ERROR;
-+ strmov(mysql->net.last_error,ER(mysql->net.last_errno));
-+ return -1;
-+ }
- row[field] = (char*) pos;
- pos+=len;
- *lengths++=len;
diff --git a/databases/mysql-client/patches/patch-am b/databases/mysql-client/patches/patch-am
deleted file mode 100644
index 294a88d5b2a..00000000000
--- a/databases/mysql-client/patches/patch-am
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-am,v 1.1 2003/09/28 15:09:48 jdolecek Exp $
-
---- mysys/my_gethostbyname.c.orig Sun Sep 28 16:33:05 2003
-+++ mysys/my_gethostbyname.c Sun Sep 28 16:33:20 2003
-@@ -18,7 +18,6 @@
- /* Thread safe version of gethostbyname_r() */
-
- #include "mysys_priv.h"
--#include "my_pthread.h"
- #include <assert.h>
- #if !defined(MSDOS) && !defined(__WIN__)
- #include <netdb.h>