3 @@ -632,6 +632,19 @@ static void free_tab_completion_data(voi
5 static void add_match(char *matched)
7 + unsigned char *p = (unsigned char*)matched;
9 + /* ESC attack fix: drop any string with control chars */
11 + || (!ENABLE_UNICODE_SUPPORT && *p >= 0x7f)
12 + || (ENABLE_UNICODE_SUPPORT && *p == 0x7f)
20 matches = xrealloc_vector(matches, 4, num_matches);
21 matches[num_matches] = matched;