Merge pull request #1902 from signalwire/switch_console_complete

[Core] Fix false-positive illegal memory access detection in switch_console_complete()
This commit is contained in:
Andrey Volk 2022-12-27 21:13:05 +03:00 committed by GitHub
commit e05a703ab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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",