mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
branches/zip: page_zip_fields_decode(): Do not dereference a null pointer.
This commit is contained in:
parent
6670fe35c9
commit
bdaaa02dda
1 changed files with 3 additions and 5 deletions
|
@ -1267,13 +1267,11 @@ page_zip_fields_decode(
|
|||
|
||||
/* Decode the position of the trx_id column. */
|
||||
if (trx_id_col) {
|
||||
if (UNIV_UNLIKELY(val >= n)) {
|
||||
page_zip_fields_free(index);
|
||||
index = NULL;
|
||||
}
|
||||
|
||||
if (!val) {
|
||||
val = ULINT_UNDEFINED;
|
||||
} else if (UNIV_UNLIKELY(val >= n)) {
|
||||
page_zip_fields_free(index);
|
||||
index = NULL;
|
||||
} else {
|
||||
index->type = DICT_CLUSTERED;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue