Commit fb2172d2 authored by svoj@mysql.com/june.mysql.com's avatar svoj@mysql.com/june.mysql.com

Merge mysql.com:/home/svoj/devel/mysql/BUG24401/mysql-4.1-engines

into  mysql.com:/home/svoj/devel/mysql/BUG24401/mysql-5.0-engines
parents 009324b1 afaebb6d
...@@ -446,6 +446,13 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags) ...@@ -446,6 +446,13 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
offset+=share->rec[i].length; offset+=share->rec[i].length;
} }
share->rec[i].type=(int) FIELD_LAST; /* End marker */ share->rec[i].type=(int) FIELD_LAST; /* End marker */
if (offset > share->base.reclength)
{
/* purecov: begin inspected */
my_errno= HA_ERR_CRASHED;
goto err;
/* purecov: end */
}
if (! lock_error) if (! lock_error)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment