From ae5f53675d67e7043786bb5d2c599c0fbd7b2c67 Mon Sep 17 00:00:00 2001 From: "jband%netscape.com" Date: Tue, 13 Apr 1999 00:50:39 +0000 Subject: [PATCH] fix for comment spanning the buffer boundary git-svn-id: svn://10.0.0.236/trunk@27258 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpcom/tools/xpidl/xpidl_idl.c | 5 +++++ mozilla/xpcom/typelib/xpidl/xpidl_idl.c | 5 +++++ 2 files changed, 10 insertions(+) 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,