Skip to content

Commit 32d25ba

Browse files
committed
Bug#37039394 Backport Bug# 36816986 - MySQL Shell command injection
Post push fix for the push in mysql-5.7 branch. Fixes the broken windows build on mysql-5.7 pb2. Approved by: Georgi Kodinov <[email protected]>
1 parent c404245 commit 32d25ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client/mysqldump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2346,10 +2346,10 @@ static void fprintf_string(char *row, ulong row_len, char quote,
23462346
// Create the buffer where we'll have sanitized row.
23472347
char buffer[2048];
23482348
char *pbuffer;
2349-
uint64_t curr_row_size;
2349+
my_ulonglong curr_row_size;
23502350
pbuffer = &buffer[0];
23512351

2352-
curr_row_size = ((uint64_t)row_len) * 2 + 1;
2352+
curr_row_size = ((my_ulonglong)row_len) * 2 + 1;
23532353

23542354
// We'll allocate dynamic memory only for huge rows
23552355
if (curr_row_size > sizeof(buffer))

0 commit comments

Comments
 (0)