Commit 30ff6164 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-23680 Assertion `data' failed in crcr32_calc_pclmulqdq

Fix DBUG_ASSERT
parent 2cc9e456
...@@ -3591,5 +3591,11 @@ t2 CREATE TABLE `t2` ( ...@@ -3591,5 +3591,11 @@ t2 CREATE TABLE `t2` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1 ) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLE t2, t1; DROP TABLE t2, t1;
# #
# MDEV-23680 Assertion `data' failed in crcr32_calc_pclmulqdq
#
SELECT CRC32(ExtractValue('<a><b/></a>', '/a/b')) AS f;
f
0
#
# End of 10.5 tests # End of 10.5 tests
# #
...@@ -1883,6 +1883,11 @@ CREATE TABLE t2 AS SELECT UUID_SHORT() - a FROM t1; ...@@ -1883,6 +1883,11 @@ CREATE TABLE t2 AS SELECT UUID_SHORT() - a FROM t1;
SHOW CREATE TABLE t2; SHOW CREATE TABLE t2;
DROP TABLE t2, t1; DROP TABLE t2, t1;
--echo #
--echo # MDEV-23680 Assertion `data' failed in crcr32_calc_pclmulqdq
--echo #
SELECT CRC32(ExtractValue('<a><b/></a>', '/a/b')) AS f;
--echo # --echo #
--echo # End of 10.5 tests --echo # End of 10.5 tests
......
...@@ -219,7 +219,7 @@ static inline uint32_t crcr32_calc_pclmulqdq(const uint8_t *data, uint32_t data_ ...@@ -219,7 +219,7 @@ static inline uint32_t crcr32_calc_pclmulqdq(const uint8_t *data, uint32_t data_
__m128i temp, fold, k; __m128i temp, fold, k;
uint32_t n; uint32_t n;
DBUG_ASSERT(data); DBUG_ASSERT(data != NULL || data_len == 0);
DBUG_ASSERT(params); DBUG_ASSERT(params);
if (unlikely(data_len == 0)) if (unlikely(data_len == 0))
......
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