From c4c430dcd0be6ba0340d4b9ba0ac91853cda6353 Mon Sep 17 00:00:00 2001 From: John Johansen Date: Fri, 24 Jul 2009 07:34:30 +0000 Subject: [PATCH] fix comments to be non-recursive Signed-Off-By: Kees Cook --- parser/parser_regex.c | 39 +++++++++++++++++++-------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/parser/parser_regex.c b/parser/parser_regex.c index 5cc595846..4d35f3184 100644 --- a/parser/parser_regex.c +++ b/parser/parser_regex.c @@ -186,26 +186,25 @@ static pattern_t convert_aaregex_to_pcre(const char *aare, int anchor, } else { if ((dptr > pcre) && *(dptr - 1) == '/') { #if 0 - /* handle comment containing use - * of C comment characters - * /* /*/ and /** to describe paths - * - * modify what is emitted for * and ** - * when used as the only path - * component - * ex. - * /* /*/ /**/ /** - * this prevents these expressions - * from matching directories or - * invalid paths - * in these case * and ** must - * match at least 1 character to - * get a valid path element. - * ex. - * /foo/* -> should not match /foo/ - * /foo/*bar -> should match /foo/bar - * /*/foo -> should not match //foo - */ + // handle comment containing use + // of C comment characters + // /* /*/ and /** to describe paths + // + // modify what is emitted for * and ** + // when used as the only path + // component + // ex. + // /* /*/ /**/ /** + // this prevents these expressions + // from matching directories or + // invalid paths + // in these case * and ** must + // match at least 1 character to + // get a valid path element. + // ex. + // /foo/* -> should not match /foo/ + // /foo/*bar -> should match /foo/bar + // /*/foo -> should not match //foo #endif const char *s = sptr; while (*s == '*')