Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jul 2000 10:45:30 -0700 (PDT)
From:      "Daniel C. Sobral" <dcs@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/regex regcomp.c
Message-ID:  <200007091745.KAA63388@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
dcs         2000/07/09 10:45:30 PDT

  Modified files:
    lib/libc/regex       regcomp.c 
  Log:
  altoffset() always returned whenever it recursed, because at the end
  of the processing of the recursion, "scan" would be pointing to O_CH
  (or O_QUEST), which would then be interpreted as being the end character
  for altoffset().
  
  We avoid this by properly increasing scan before leaving the switch.
  
  Without this, something like (a?b?)?cc would result in a g->moffset of
  1 instead of 2.
  
  I added a case to the soon-to-be-imported regex(3) test code to catch
  this error.
  
  Revision  Changes    Path
  1.23      +5 -1      src/lib/libc/regex/regcomp.c



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007091745.KAA63388>