Mailinglist Archive: opensuse-bugs (4202 mails)
| < Previous | Next > |
[Bug 740484] New: mawk RE matching can return invalid results causing unexpected behavior and crashes
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Tue, 10 Jan 2012 10:44:47 +0000
- Message-id: <bug-740484-21960@http.bugzilla.novell.com/>
https://bugzilla.novell.com/show_bug.cgi?id=740484
https://bugzilla.novell.com/show_bug.cgi?id=740484#c0
Summary: mawk RE matching can return invalid results causing
unexpected behavior and crashes
Classification: openSUSE
Product: openSUSE 12.1
Version: Final
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: gber@xxxxxxxxxxxx
QAContact: qa@xxxxxxx
Found By: ---
Blocker: ---
Created an attachment (id=470460)
--> (http://bugzilla.novell.com/attachment.cgi?id=470460)
chngeset containing the fix for REmatch()
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0.1) Gecko/20100101
Firefox/9.0.1
RE matching in mawk 1.3.4 can return invalid results leading to incorrect
RSTART and RLENGTH or trigger unexpected behavior up to crashes.
E.g. when running mawk 'BEGIN{x="a";sub(/[^a]/,"", x)}' REmatch() returns an
invalid match leading to an integer underflow which in turn causes a segfault
in a subsequent memcpy() call.
This bug had been fixed in the 1.3.4.20100224 snapshot release, through
bisecting Thomas Dickey identified the attached changeset.
Reproducible: Always
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
| < Previous | Next > |