summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorunknown <monty@mashka.mysql.fi>2002-12-26 18:26:37 +0200
committerunknown <monty@mashka.mysql.fi>2002-12-26 18:26:37 +0200
commitf1696d4f5f001d59204f19b2ef3fa921c9336a0f (patch)
tree52c14204adc0f3d7ef9707add0e6d1da72ed37d8 /sql/item.h
parentad22d0cbacd59f7dcac4ccc121486c614e609b93 (diff)
downloadmariadb-git-f1696d4f5f001d59204f19b2ef3fa921c9336a0f.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. Docs/internals.texi: Updated documentation for 4.1 protocol sql/ha_innodb.cc: Optimization of checking command sql/item.h: Removed automatic set of length for Item_string sql/item_create.cc: Optimized create of create_func_current_user() sql/net_serv.cc: Fixed wrong max packet length sql/sql_acl.cc: Safety fix. sql/sql_parse.cc: Cut hostnames at HOSTNAME_LENGTH to avoid theoretical hostname overruns
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sql/item.h b/sql/item.h
index 05b906a66a6..67dcc8ad7b8 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -267,8 +267,6 @@ public:
}
Item_string(const char *name_par,const char *str,uint length)
{
- if (!length)
- length=strlen(str);
str_value.set(str,length);
max_length=length;
name=(char*) name_par;