]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[Core] Fix false-positive illegal memory access detection in switch_console_complete() 1902/head
authorAndrey Volk <andywolk@gmail.com>
Mon, 26 Dec 2022 12:30:28 +0000 (15:30 +0300)
committerAndrey Volk <andywolk@gmail.com>
Mon, 26 Dec 2022 13:36:04 +0000 (16:36 +0300)
src/switch_console.c

index 2de5ac27ab3ef1720bd81f91503d342a0b83194c..8e26fec7491b356b832e4fd56df6b8fb8e07f4a8 100644 (file)
@@ -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",