* syntax.c (edit_read_syntax_rules): Fix crash if syntax file
has more than 1024 keywords.
Этот коммит содержится в:
родитель
e4d4887e9c
Коммит
c459caead1
@ -1,3 +1,8 @@
|
|||||||
|
2003-12-24 Dmitry Alexeyev <dmi_a@qnx.org.ru>
|
||||||
|
|
||||||
|
* syntax.c (edit_read_syntax_rules): Fix crash if syntax file
|
||||||
|
has more than 1024 keywords.
|
||||||
|
|
||||||
2003-11-27 Pavel Roskin <proski@gnu.org>
|
2003-11-27 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* editcmd.c: Use input_expand_dialog() instead of input_dialog()
|
* editcmd.c: Use input_expand_dialog() instead of input_dialog()
|
||||||
|
@ -800,6 +800,8 @@ edit_read_syntax_rules (WEdit *edit, FILE *f, char **args)
|
|||||||
struct key_word *k;
|
struct key_word *k;
|
||||||
if (num_words == -1)
|
if (num_words == -1)
|
||||||
break_a;
|
break_a;
|
||||||
|
if (num_words >= MAX_WORDS_PER_CONTEXT)
|
||||||
|
break;
|
||||||
check_a;
|
check_a;
|
||||||
k = r[num_contexts - 1]->keyword[num_words] = g_malloc0 (sizeof (struct key_word));
|
k = r[num_contexts - 1]->keyword[num_words] = g_malloc0 (sizeof (struct key_word));
|
||||||
if (!strcmp (*a, "whole")) {
|
if (!strcmp (*a, "whole")) {
|
||||||
|
Загрузка…
Ссылка в новой задаче
Block a user