summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2020-06-06 09:32:18 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2020-06-06 09:33:48 +0300
commit1bd5b75c733840813ea1fe18c5908422a707e677 (patch)
tree82ab829b983b0254257ce41f91f9779d88ed8661 /sql/sql_class.h
parent7a695d8a82eaaa7db0cf4484b22fc3db3d43ac49 (diff)
downloadmariadb-git-1bd5b75c733840813ea1fe18c5908422a707e677.tar.gz
MDEV-22818 Server crash on corrupted ROW_FORMAT=COMPRESSED page
page_zip_fields_decode(): Do not dereference index=NULL. Instead, return NULL early. The only caller does not care about the values of output parameters in that case. This bug was introduced in MySQL 5.7.6 by mysql/mysql-server@9eae0edb7a8e4004328e61157f5f3b39cebe1b2b and in MariaDB 10.2.2 by commit 2e814d4702d71a04388386a9f591d14a35980bfe. Thanks to my son for pointing this out after investigating the output of a static analysis tool.
Diffstat (limited to 'sql/sql_class.h')
0 files changed, 0 insertions, 0 deletions