From: Andrey Volk Date: Mon, 26 Dec 2022 12:30:28 +0000 (+0300) Subject: [Core] Fix false-positive illegal memory access detection in switch_console_complete() X-Git-Tag: v1.10.9^2~13^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1902%2Fhead;p=thirdparty%2Ffreeswitch.git [Core] Fix false-positive illegal memory access detection in switch_console_complete() --- 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",