mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 23:25:34 +02:00
MDEV-23680 Assertion `data' failed in crcr32_calc_pclmulqdq
Fix DBUG_ASSERT
This commit is contained in:
parent
2cc9e45693
commit
30ff616403
3 changed files with 12 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue