From ff7e0977f3cd9a7c6cf61dcfe874378bc72e20dd Mon Sep 17 00:00:00 2001 From: Anel Husakovic Date: Wed, 8 Feb 2023 05:26:34 +0100 Subject: 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 --- client/mysqlcheck.c | 1 + 1 file changed, 1 insertion(+) 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 */ -- cgit v1.2.1