[Bug 1456195] Re: Zero-minimum possessive groups does not match empty string

Arne de Bruijn ubuntu at 2ar.nl
Wed Apr 13 10:36:59 UTC 2016


Note for wily the testcase needs to be slightly changed:

echo '"a"'|pcregrep --no-jit '("([^b"]*+(b.)?)*+")++'

(expected output is unchanged: "a")


** Patch added: "pcre_1456195_wily.debdiff"
   https://bugs.launchpad.net/ubuntu/+source/pcre3/+bug/1456195/+attachment/4635309/+files/pcre_1456195_wily.debdiff

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1456195

Title:
  Zero-minimum possessive groups does not match empty string

Status in pcre3 package in Ubuntu:
  Fix Released
Status in pcre3 source package in Trusty:
  Confirmed
Status in pcre3 source package in Wily:
  Confirmed
Status in pcre3 source package in Xenial:
  Fix Released

Bug description:
  The 14.04/15.04 pcre version doesn't match some inputs with possessive
  qualfiers:

  $ echo '"a"'|pcregrep '("([^b"]*+(b.)?)*+")*+'
  $

  Earlier versions (10.04, 12.04):
  $ echo '"a"'|pcregrep '("([^b"]*+(b.)?)*+")*+'
  "a"
  $

  this is fixed with the following upstream commit (that applies cleanly
  to the 15.04 pcre):

  http://vcs.pcre.org/pcre?view=revision&revision=1478

  https://lists.exim.org/lurker/message/20140527.131833.2fd7547c.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcre3/+bug/1456195/+subscriptions



More information about the Ubuntu-sponsors mailing list