[MDEV-32047] KDF() with negative and multiple of eight width hangs the request Created: 2023-08-31  Updated: 2024-01-12  Resolved: 2024-01-12

Status: Closed
Project: MariaDB Server
Component/s: Encryption, SSL
Affects Version/s: 11.3
Fix Version/s: 11.3.1

Type: Bug Priority: Major
Reporter: Lena Startseva Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
PartOf
is part of MDEV-31474 KDF() function Closed

 Description   

Testcase:

select hex(kdf('foo', 'bar', 1000, 'pbkdf2_hmac', -8));

Expected result:

NULL
Warnings:
Warning	3047	Invalid argument error: -8 in function kdf.

Actual result:
The query does not return a result and hangs


Generated at Thu Feb 08 10:28:25 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.