Commit 9d9714b8 authored by marko's avatar marko

branches/zip: page_zip_fields_decode(): Do not dereference a null pointer.

parent e5c3aa12
......@@ -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;
}
......
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