Commit ba6b020b authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

widl: Increase max import depth.

parent 85635db0
...@@ -78,7 +78,7 @@ static int attr_token(const char *kw); ...@@ -78,7 +78,7 @@ static int attr_token(const char *kw);
static warning_list_t *disabled_warnings = NULL; static warning_list_t *disabled_warnings = NULL;
#define MAX_IMPORT_DEPTH 10 #define MAX_IMPORT_DEPTH 20
struct { struct {
YY_BUFFER_STATE state; YY_BUFFER_STATE state;
char *input_name; char *input_name;
...@@ -524,6 +524,9 @@ int do_import(char *fname) ...@@ -524,6 +524,9 @@ int do_import(char *fname)
else if (!(path = wpp_find_include( fname, input_name ))) else if (!(path = wpp_find_include( fname, input_name )))
error_loc("Unable to open include file %s\n", fname); error_loc("Unable to open include file %s\n", fname);
if (import_stack_ptr == MAX_IMPORT_DEPTH)
error_loc("Exceeded max import depth\n");
import_stack[ptr].temp_name = temp_name; import_stack[ptr].temp_name = temp_name;
import_stack[ptr].input_name = input_name; import_stack[ptr].input_name = input_name;
import_stack[ptr].line_number = line_number; import_stack[ptr].line_number = line_number;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment