diff --git a/mozilla/xpcom/tools/xpidl/xpidl_idl.c b/mozilla/xpcom/tools/xpidl/xpidl_idl.c index 287091ceee2..a4eeb3b03cc 100644 --- a/mozilla/xpcom/tools/xpidl/xpidl_idl.c +++ b/mozilla/xpcom/tools/xpidl/xpidl_idl.c @@ -344,6 +344,11 @@ input_callback(IDL_input_reason reason, union IDL_input_data *cb_data, data->point - check_point, check_point); #endif } + else { + data->point = data->buf + data->len; + goto fill_start; + } + assert(!data->f_raw && !data->f_include); /* * Now that we've advanced data->point to skip the comment, diff --git a/mozilla/xpcom/typelib/xpidl/xpidl_idl.c b/mozilla/xpcom/typelib/xpidl/xpidl_idl.c index 287091ceee2..a4eeb3b03cc 100644 --- a/mozilla/xpcom/typelib/xpidl/xpidl_idl.c +++ b/mozilla/xpcom/typelib/xpidl/xpidl_idl.c @@ -344,6 +344,11 @@ input_callback(IDL_input_reason reason, union IDL_input_data *cb_data, data->point - check_point, check_point); #endif } + else { + data->point = data->buf + data->len; + goto fill_start; + } + assert(!data->f_raw && !data->f_include); /* * Now that we've advanced data->point to skip the comment,