From a739e197a51f277202803d59f12a54da7d4000da Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Mon, 26 Dec 2022 15:30:28 +0300 Subject: [PATCH] [Core] Fix false-positive illegal memory access detection in switch_console_complete() --- src/switch_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_console.c b/src/switch_console.c index 2de5ac27ab..8e26fec749 100644 --- a/src/switch_console.c +++ b/src/switch_console.c @@ -837,7 +837,7 @@ SWITCH_DECLARE(unsigned char) switch_console_complete(const char *line, const ch } } - for (x = 0; x < argc && x < 11; x++) { + for (x = 0; x < argc; x++) { if (h.words + 1 > argc) { if (switch_cache_db_get_type(db) == SCDB_TYPE_CORE_DB) { stream.write_function(&stream, "(a%d like '::%%' or a%d = '' or a%d = '%q')%q",