forked from Mirrors/freeswitch
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:
commit
e05a703ab0
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue