X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=regex.c;h=591d6f14e12bf1094376b66b8943aa351e07b9fc;hb=849fd64d09fc75159fba14585d66fa4ac3e817bc;hp=cd05bf8860bd1c4dfc17301d86dec1ec6af4ee99;hpb=3e64ed4efd18c92fc2949673426daa583107141d;p=gnulib.git diff --git a/regex.c b/regex.c index cd05bf886..591d6f14e 100644 --- a/regex.c +++ b/regex.c @@ -1944,7 +1944,8 @@ struct range_table_work_area do { if (p != pend) \ { \ PATFETCH (c); \ - while (c == ' ') PATFETCH (c); \ + if (c == ' ') \ + FREE_STACK_RETURN (REG_BADBR); \ while ('0' <= c && c <= '9') \ { \ int prev; \ @@ -1958,7 +1959,8 @@ struct range_table_work_area break; \ PATFETCH (c); \ } \ - while (c == ' ') PATFETCH (c); \ + if (c == ' ') \ + FREE_STACK_RETURN (REG_BADBR); \ } \ } while (0)