diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-12-19 15:45:35 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-12-19 15:45:35 +0200 |
commit | dd72d7d561d36c2d1f5d3ccad2b388d886230392 (patch) | |
tree | 10a6644c2e2e35503bc885adddd46b9602077e9b /sql/sql_acl.cc | |
parent | 1b471face8110b205b9bfb460c839127bc6862dd (diff) | |
download | mariadb-git-dd72d7d561d36c2d1f5d3ccad2b388d886230392.tar.gz |
MDEV-18025: Improve test case and consistency checks
Write a test case that computes valid crc32 checksums for
an encrypted page, but zeroes out the payload area, so
that the checksum after decryption fails.
xb_fil_cur_read(): Validate the page number before trying
any checksum calculation or decrypting or decompression.
Also, skip zero-filled pages. For page_compressed pages,
ensure that the FIL_PAGE_TYPE was changed. Also, reject
FIL_PAGE_PAGE_COMPRESSED_ENCRYPTED if no decryption was attempted.
Diffstat (limited to 'sql/sql_acl.cc')
0 files changed, 0 insertions, 0 deletions