Skip to content
Permalink
Browse files
MDEV-23680 Assertion `data' failed in crcr32_calc_pclmulqdq
Fix DBUG_ASSERT
  • Loading branch information
vaintroub committed Sep 7, 2020
1 parent 2cc9e45 commit 30ff616
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
@@ -3591,5 +3591,11 @@ t2 CREATE TABLE `t2` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1
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
#
@@ -1883,6 +1883,11 @@ CREATE TABLE t2 AS SELECT UUID_SHORT() - a FROM t1;
SHOW CREATE TABLE t2;
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 # End of 10.5 tests
@@ -219,7 +219,7 @@ static inline uint32_t crcr32_calc_pclmulqdq(const uint8_t *data, uint32_t data_
__m128i temp, fold, k;
uint32_t n;

DBUG_ASSERT(data);
DBUG_ASSERT(data != NULL || data_len == 0);
DBUG_ASSERT(params);

if (unlikely(data_len == 0))

0 comments on commit 30ff616

Please sign in to comment.