summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDisconnect3d <dominik.b.czarnota@gmail.com>2020-04-13 16:12:18 +0200
committerAnel Husakovic <anel@mariadb.org>2020-04-14 12:58:38 +0200
commita180652287e12749e0d3de82b92edc2f05b351ca (patch)
tree35dd41bb5bd2d0a00478d6c1f954392b9727906b
parentc1394ab6b5c0830ec09f6afdae11fa82bae1a123 (diff)
downloadmariadb-git-a180652287e12749e0d3de82b92edc2f05b351ca.tar.gz
Fix wrong argument size passed to --parent-pid strncmp checkbb-5.5-anel-PR1502
This PR fixes wrong size argument passed in `strncmp(arg, "--parent-pid", 10)` as the `"--parent-pid"` string has length of 12.
-rw-r--r--mysql-test/lib/My/SafeProcess/safe_process_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/lib/My/SafeProcess/safe_process_win.cc b/mysql-test/lib/My/SafeProcess/safe_process_win.cc
index 7d81bf1a1b4..4dd4e24f30d 100644
--- a/mysql-test/lib/My/SafeProcess/safe_process_win.cc
+++ b/mysql-test/lib/My/SafeProcess/safe_process_win.cc
@@ -206,7 +206,7 @@ int main(int argc, const char** argv )
} else {
if (strcmp(arg, "--verbose") == 0)
verbose++;
- else if (strncmp(arg, "--parent-pid", 10) == 0)
+ else if (strncmp(arg, "--parent-pid", 12) == 0)
{
/* Override parent_pid with a value provided by user */
const char* start;