diff options
author | monty@mashka.mysql.fi <> | 2002-12-26 18:26:37 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2002-12-26 18:26:37 +0200 |
commit | 3ca695ea0bc5a4cac6feba7aeee9e87fda79afc4 (patch) | |
tree | 52c14204adc0f3d7ef9707add0e6d1da72ed37d8 /sql/net_serv.cc | |
parent | 0a5338614a1d4a4edde88c24b55c4879332f7e4d (diff) | |
download | mariadb-git-3ca695ea0bc5a4cac6feba7aeee9e87fda79afc4.tar.gz |
Cut hostnames at HOSTNAME_LENGTH to avoid theoretical hostname overruns
Changed long packat handling to check for packets of length 0xffffff.
This does however break packet handling for older clients.
If you are using packets >= 16M then you need to upgrade client and server
after this patch.
Diffstat (limited to 'sql/net_serv.cc')
-rw-r--r-- | sql/net_serv.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/net_serv.cc b/sql/net_serv.cc index 122793b07a7..ac73a4ca15a 100644 --- a/sql/net_serv.cc +++ b/sql/net_serv.cc @@ -73,7 +73,7 @@ extern pthread_mutex_t LOCK_bytes_sent , LOCK_bytes_received; #include "thr_alarm.h" #define TEST_BLOCKING 8 -#define MAX_THREE_BYTES 255L*255L*255L +#define MAX_THREE_BYTES (256L*256L*256L-1) static int net_write_buff(NET *net,const char *packet,ulong len); |