diff options
author | unknown <serg@serg.mysql.com> | 2003-01-27 17:27:21 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2003-01-27 17:27:21 +0100 |
commit | da5ac7de7899b462348b325122e2ad429b440329 (patch) | |
tree | 7db11179f34171647850df8553035f94a6af46be /myisam/mi_open.c | |
parent | 214067f7d1fa0498de2035fd8cde2d428ed56f0d (diff) | |
download | mariadb-git-da5ac7de7899b462348b325122e2ad429b440329.tar.gz |
protection agains badly charsed indexfile
Diffstat (limited to 'myisam/mi_open.c')
-rw-r--r-- | myisam/mi_open.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/myisam/mi_open.c b/myisam/mi_open.c index 250e0483fe5..4eb7376cdb6 100644 --- a/myisam/mi_open.c +++ b/myisam/mi_open.c @@ -329,7 +329,11 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags) { *pos=ft_keysegs[j]; pos[0].language= pos[-1].language; - pos[0].charset= pos[-1].charset; + if (!(pos[0].charset= pos[-1].charset)) + { + my_errno=HA_ERR_CRASHED; + goto err; + } pos++; } } |