1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

Merge branch 'fix-gl-18' into 'security'

disable variable arguments code

See merge request irssi/irssi!28
This commit is contained in:
Nei 2018-01-04 22:19:21 +00:00
commit cf70fcd4b9

View File

@ -384,6 +384,7 @@ char *parse_special(char **cmd, SERVER_REC *server, void *item,
}
nest_free = FALSE; nest_value = NULL;
#if 0 /* this code is disabled due to security issues until it is fixed */
if (**cmd == '(' && (*cmd)[1] != '\0') {
/* subvariable */
int toplevel = nested_orig_cmd == NULL;
@ -412,6 +413,9 @@ char *parse_special(char **cmd, SERVER_REC *server, void *item,
if (toplevel) nested_orig_cmd = NULL;
}
#else
if (nested_orig_cmd) nested_orig_cmd = NULL;
#endif
if (**cmd != '{')
brackets = FALSE;