ports/databases/mysql90-server/files/patch-unittest_gunit_stream__cipher-t.cc
Jochen Neumeister 83d646c699 databases/mysql90-{server|client}: add new Ports
Welcome MySQL 8.4

What is new in MySQL8.4 since MySQL 9.0:
https://dev.mysql.com/doc/refman/9.0/en/mysql-nutshell.html

HINT: MySQL8.4+ supports only 64-bit platforms!!!

Sponsored by:	Netzkommune GmbH
2024-09-01 03:00:55 +02:00

15 lines
571 B
C++

--- unittest/gunit/stream_cipher-t.cc.orig 2024-07-12 19:20:22 UTC
+++ unittest/gunit/stream_cipher-t.cc
@@ -251,10 +251,10 @@ void SetKeyStr(Key_string &key_str, const unsigned cha
template <typename T>
void SetKeyStr(Key_string &key_str, const unsigned char *key) {
if (key) {
- key_str.assign(key, T::PASSWORD_LENGTH);
+ key_str.assign(key, key + T::PASSWORD_LENGTH);
} else {
const unsigned char new_key[T::PASSWORD_LENGTH]{0};
- key_str.assign(new_key, T::PASSWORD_LENGTH);
+ key_str.assign(new_key, new_key + T::PASSWORD_LENGTH);
}
}