mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-23680 Assertion `data' failed in crcr32_calc_pclmulqdq
Fix DBUG_ASSERT
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user