[Bug 1521043] Re: less 458 crashes if search regex has many groups

Richard Hansen 1521043 at bugs.launchpad.net
Mon Nov 30 04:50:15 UTC 2015


This is an upstream less bug that was fixed in version 481.  Attached is
a debdiff that cherry-picks the fix for this bug.

I have uploaded a fixed version of less to my PPA (for trusty (14.04) and wily (15.10)).  See:
https://launchpad.net/~a7x/+archive/ubuntu/bug1521043

** Patch added: "debdiff"
   https://bugs.launchpad.net/debian/+source/less/+bug/1521043/+attachment/4527386/+files/debdiff.patch

** Tags added: patch

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to less in Ubuntu.
https://bugs.launchpad.net/bugs/1521043

Title:
  less 458 crashes if search regex has many groups

Status in less package in Ubuntu:
  New
Status in less package in Debian:
  Incomplete

Bug description:
  less 458 crashes if there are enough capture groups in the regular
  expression used for search:

      newline=$(printf \\nx); newline=${newline%x}
      echo x | LESS="+g/(((((x)))))${newline}" less

  On amd64, the above produces a segfault:

      Segmentation fault (core dumped)

  On i386, the above triggers an assert:

      *** Error in `less': double free or corruption (fasttop): 0x0887f9e8 ***
      Aborted

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



More information about the foundations-bugs mailing list