mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 17:14:30 +02:00
Merge mysql.com:/home/svoj/devel/mysql/BUG24401/mysql-4.1-engines
into mysql.com:/home/svoj/devel/mysql/BUG24401/mysql-5.0-engines myisam/mi_open.c: Auto merged
This commit is contained in:
commit
2244a36179
1 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue