Bug 527427
Summary: | sed reports syntax errors with some multibyte characters | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | john.haxby <john.haxby> | ||||||||
Component: | sed | Assignee: | Vojtech Vitek <vvitek> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | BaseOS QE <qe-baseos-auto> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | low | ||||||||||
Version: | 5.4 | CC: | hripps, ovasik, pbonzini, pmuller, rvokal | ||||||||
Target Milestone: | rc | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2011-03-30 07:55:41 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
john.haxby@oracle.com
2009-10-06 11:40:34 UTC
I confirm that this is the same bug that is fixed by the attached upstream patch (i.e. not a coincidence :-). As bug 524837 has been declined for the current release, can we have this one fixed please? Upstream patch 20f68fb1abe862a98bc0378e5bb54d94bb98b8fe is also related to multibyte characters in sed. If it applies to RHEL5 sed, it should be brought in as it can cause an infinite loop. Created attachment 483233 [details]
Fix multibyte characters syntax error and possible infinite loop
Does that attachment work? I haven't tried to compile sed with it, but it contains this: +#define MBSINIT(s) \ + (mb_cur_max == 1 ? 1 : mbsinit ((s)) + There is a missing ")" there It might be that the other side of the #if is being used. This would be a configuration problem for sed. I noticed the missing ")" when I was comparing my original patch to the updated one. Even if it's not causing actual compilation problems it would be nice if the patch _looked_ right :-) (In reply to comment #8) > Does that attachment work? I haven't tried to compile sed with it, but it > contains this: > > +#define MBSINIT(s) \ > + (mb_cur_max == 1 ? 1 : mbsinit ((s)) > + > > There is a missing ")" there Yes, you are right. It was just a typo in original commit. I have actually applied a fixed version of patch to RHEL CVS tree, because running `make' failed with syntax error. Anyway, thanks for the notification. Created attachment 483248 [details]
Fix multibyte characters syntax error and possible infinite loop
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0397.html |