Skip to content

Commit

Permalink
Merge pull request #5220 from VarunNagaraju/PS-9096
Browse files Browse the repository at this point in the history
PS-9096 Backport bug fixes from MySQL 8.0
  • Loading branch information
VarunNagaraju authored Feb 6, 2024
2 parents fd686ab + 109403e commit c9d2a4c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/my_md5.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
extern "C" {
#endif

void compute_md5_hash(char *digest, const char *buf, int len);
void compute_md5_hash(char *digest, const char *buf, size_t len);

/*
Convert an array of bytes to a hexadecimal representation.
Expand Down
4 changes: 2 additions & 2 deletions mysys_ssl/my_md5.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#if defined(HAVE_OPENSSL)
#include <openssl/md5.h>

static void my_md5_hash(unsigned char* digest, unsigned const char *buf, int len)
static void my_md5_hash(unsigned char* digest, unsigned const char *buf, size_t len)
{
MD5_CTX ctx;
MD5_Init (&ctx);
Expand All @@ -58,7 +58,7 @@ static void my_md5_hash(unsigned char* digest, unsigned const char *buf, int len
@return void
*/
void compute_md5_hash(char *digest, const char *buf, int len)
void compute_md5_hash(char *digest, const char *buf, size_t len)
{
#if defined(HAVE_OPENSSL)
my_md5_hash((unsigned char*)digest, (unsigned const char*)buf, len);
Expand Down
1 change: 1 addition & 0 deletions sql/json_dom.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
#include "sql_error.h" // Sql_condition
#include "prealloced_array.h" // Prealloced_array

#include <functional>
#include <map>
#include <string>

Expand Down
5 changes: 3 additions & 2 deletions storage/innobase/sync/sync0debug.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ Created 2012-08-21 Sunny Bains
#include "ut0new.h"
#include "srv0start.h"

#include <algorithm>
#include <functional>
#include <iostream>
#include <map>
#include <vector>
#include <string>
#include <algorithm>
#include <iostream>

#ifdef UNIV_DEBUG

Expand Down
1 change: 1 addition & 0 deletions storage/myisam/sort.cc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*/

#include <algorithm>
#include <functional>

#include "fulltext.h"
#if defined(_WIN32)
Expand Down

0 comments on commit c9d2a4c

Please sign in to comment.