summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnel Husakovic <anel@mariadb.org>2023-02-08 05:26:34 +0100
committerAndrew Hutchings <andrew@linuxjedi.co.uk>2023-02-17 13:43:43 +0000
commitff7e0977f3cd9a7c6cf61dcfe874378bc72e20dd (patch)
tree0b88ee43843d326171c127794564b62275637ddf
parentf0ea22a1e22c84affa91ec0e596fbd387d11ff8a (diff)
downloadmariadb-git-ff7e0977f3cd9a7c6cf61dcfe874378bc72e20dd.tar.gz
MDBF-534: Coverity scan: fix client folder
--------------------------------- File: `mysqlcheck` --------------------------------- - Coverity (FORWARD_NULL): https://scan5.scan.coverity.com/reports.htm#v58936/p10357/fileInstanceId=231728409&defectInstanceId=53075052&mergedDefectId=1520314&eventId=53075052-7 `mysqlcheck` - make sure `op` is non-null - Coverity (TAINTED_SCALAR) - FALSE POSITIVES: https://scan5.scan.coverity.com/reports.htm#v58936/p10357/fileInstanceId=231728409&defectInstanceId=53074482&mergedDefectId=1519904
-rw-r--r--client/mysqlcheck.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/mysqlcheck.c b/client/mysqlcheck.c
index 3e341f13e5a..b32e21ff18f 100644
--- a/client/mysqlcheck.c
+++ b/client/mysqlcheck.c
@@ -942,6 +942,7 @@ static int handle_request_for_tables(char *tables, size_t length,
DBUG_RETURN(1);
if (dont_quote)
{
+ DBUG_ASSERT(op);
DBUG_ASSERT(strlen(op)+strlen(tables)+strlen(options)+8+1 <= query_size);
/* No backticks here as we added them before */