[Core] Fix false-positive illegal memory access detection in switch_console_complete()

This commit is contained in:
Andrey Volk 2022-12-26 15:30:28 +03:00
parent f71a56022a
commit a739e197a5
1 changed files with 1 additions and 1 deletions

View 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",