[Bug 740484] New: mawk RE matching can return invalid results causing unexpected behavior and crashes
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@forge.provo.novell.com ReportedBy: gber@opensuse.org QAContact: qa@suse.de 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.
https://bugzilla.novell.com/show_bug.cgi?id=740484
https://bugzilla.novell.com/show_bug.cgi?id=740484#c1
Guido Berhörster
https://bugzilla.novell.com/show_bug.cgi?id=740484
https://bugzilla.novell.com/show_bug.cgi?id=740484#c2
--- Comment #2 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=740484
https://bugzilla.novell.com/show_bug.cgi?id=740484#c3
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=740484
https://bugzilla.novell.com/show_bug.cgi?id=740484#c
Benjamin Brunner
https://bugzilla.novell.com/show_bug.cgi?id=740484
https://bugzilla.novell.com/show_bug.cgi?id=740484#c4
--- Comment #4 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=740484
https://bugzilla.novell.com/show_bug.cgi?id=740484#c5
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=740484
https://bugzilla.novell.com/show_bug.cgi?id=740484#c6
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=740484
https://bugzilla.novell.com/show_bug.cgi?id=740484#c
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com