less 458 crashes if search regex has many groups
Bug #1521043 reported by
Richard Hansen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
less (Debian) |
Fix Released
|
Unknown
|
|||
less (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
less 458 crashes if there are enough capture groups in the regular expression used for search:
newline=
echo x | 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
summary: |
- less crashes if regex has many groups + less crashes if search regex has many groups |
description: | updated |
summary: |
- less crashes if search regex has many groups + less 458 crashes if search regex has many groups |
tags: | added: trusty wily |
description: | updated |
Changed in less (Debian): | |
status: | Unknown → Incomplete |
Changed in less (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in less (Debian): | |
status: | Incomplete → Fix Released |
To post a comment you must log in.
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: /launchpad. net/~a7x/ +archive/ ubuntu/ bug1521043
https:/