Bug Fix Advisory grep bug fix update

Advisory: RHBA-2013:0977-1
Type: Bug Fix Advisory
Severity: N/A
Issued on: 2013-06-25
Last updated on: 2013-11-20
Affected Products: Red Hat Enterprise Linux Desktop (v. 6)
Red Hat Enterprise Linux HPC Node (v. 6)
Red Hat Enterprise Linux Server (v. 6)
Red Hat Enterprise Linux Workstation (v. 6)

Details

Updated grep packages that fix several bugs are now available for Red Hat
Enterprise Linux 6.

The grep utility searches through textual input for lines which contain a match
to a specified pattern and then prints the matching lines. GNU grep utilities
include grep, egrep and fgrep.

This update fixes the following bugs:

* For some regular expressions, the DFA analysis could insert up to double
"positions" than there were leaves. Consequently, there were not enough room to
insert all the positions and grep could terminate unexpectedly on certain
regular expressions. To fix this problem, space allocation has been increased
and grep works as expected in the described scenario. (BZ#715295)

* When a fixed string pattern was empty while the case-insensitive search was
active, grep could terminate unexpectedly. With this update, the check for this
case has been added to the code and grep works as expected in the described
scenario. (BZ#797934)

* Previously, the code handling case-insensitive searches could alter a string's
byte size while converting it to lower case. Consequently, grep could truncate
certain output strings. To fix this bug, the grep code has been modified to
correctly handle such cases when the byte size gets altered during the
conversion to lower case. As a result, case-insensitive searches work correctly
and grep no longer truncates its output. (BZ#826997)

Users of grep are advised to upgrade to these updated packages, which fix these
bugs.


Solution

Before applying this update, make sure all previously-released errata relevant
to your system have been applied.

This update is available via the Red Hat Network. Details on how to use the Red
Hat Network to apply this update are available at
https://access.redhat.com/site/articles/11258

Updated packages

Red Hat Enterprise Linux Desktop (v. 6)

SRPMS:
grep-2.6.3-4.el6.src.rpm
File outdated by:  RHBA-2017:0756
    MD5: 32ab8167474a83d35d3a905ebab0dc0b
SHA-256: 2d9a53477565e37c9375c7fc041fde6bd3ec1451450805cd26aed9868b0a650f
 
IA-32:
grep-2.6.3-4.el6.i686.rpm
File outdated by:  RHBA-2017:0756
    MD5: 7af6b046f33d17864b37497d6380f5d3
SHA-256: 912f8b4fef1acb061eb68baa3d5960e136d66d5bf7d8834012ed8b13f47992d8
grep-debuginfo-2.6.3-4.el6.i686.rpm
File outdated by:  RHBA-2017:0756
    MD5: df924f8d0650c1dc727e8d1396da4ed1
SHA-256: 7d2fea6f68efc58e2726dec59abdb05819935fb65aed58751343b8f060f202a6
 
x86_64:
grep-2.6.3-4.el6.x86_64.rpm
File outdated by:  RHBA-2017:0756
    MD5: 8cae69613673db31c586905468aee11b
SHA-256: caafe98a16ceca13bc1bbdad49aa68b84f66fa150dd85127042941ee7e0b07db
grep-debuginfo-2.6.3-4.el6.x86_64.rpm
File outdated by:  RHBA-2017:0756
    MD5: a48cfe04d17e6a22613a16b8c51ba96e
SHA-256: b54b2b3a47a68147b5f718af2f57a18f04b0501822d39e5974b244eb26504242
 
Red Hat Enterprise Linux HPC Node (v. 6)

SRPMS:
grep-2.6.3-4.el6.src.rpm
File outdated by:  RHBA-2017:0756
    MD5: 32ab8167474a83d35d3a905ebab0dc0b
SHA-256: 2d9a53477565e37c9375c7fc041fde6bd3ec1451450805cd26aed9868b0a650f
 
x86_64:
grep-2.6.3-4.el6.x86_64.rpm
File outdated by:  RHBA-2017:0756
    MD5: 8cae69613673db31c586905468aee11b
SHA-256: caafe98a16ceca13bc1bbdad49aa68b84f66fa150dd85127042941ee7e0b07db
grep-debuginfo-2.6.3-4.el6.x86_64.rpm
File outdated by:  RHBA-2017:0756
    MD5: a48cfe04d17e6a22613a16b8c51ba96e
SHA-256: b54b2b3a47a68147b5f718af2f57a18f04b0501822d39e5974b244eb26504242
 
Red Hat Enterprise Linux Server (v. 6)

SRPMS:
grep-2.6.3-4.el6.src.rpm
File outdated by:  RHBA-2017:0756
    MD5: 32ab8167474a83d35d3a905ebab0dc0b
SHA-256: 2d9a53477565e37c9375c7fc041fde6bd3ec1451450805cd26aed9868b0a650f
 
IA-32:
grep-2.6.3-4.el6.i686.rpm
File outdated by:  RHBA-2017:0756
    MD5: 7af6b046f33d17864b37497d6380f5d3
SHA-256: 912f8b4fef1acb061eb68baa3d5960e136d66d5bf7d8834012ed8b13f47992d8
grep-debuginfo-2.6.3-4.el6.i686.rpm
File outdated by:  RHBA-2017:0756
    MD5: df924f8d0650c1dc727e8d1396da4ed1
SHA-256: 7d2fea6f68efc58e2726dec59abdb05819935fb65aed58751343b8f060f202a6
 
PPC:
grep-2.6.3-4.el6.ppc64.rpm
File outdated by:  RHBA-2017:0756
    MD5: b4756129de01a8b6c4fb5a7e34a5aad8
SHA-256: 3d35b733343c7e637958cc4ceae1b677eb0a85b105588d8ce664b8c47b5abb4f
grep-debuginfo-2.6.3-4.el6.ppc64.rpm
File outdated by:  RHBA-2017:0756
    MD5: 8f7ec4bc4572ed77ed8a9b0a13ed451a
SHA-256: b5d2b0afbbd8418b3dcb566c5b83f5e2f3f6f9f7fff01496299a73a8603c7875
 
s390x:
grep-2.6.3-4.el6.s390x.rpm
File outdated by:  RHBA-2017:0756
    MD5: f4499a53290bf457fd72cbd120138c56
SHA-256: bb826b2080404b96294c99d9cf93f00614e11433ccca7fc5f238bf0fa6d0780b
grep-debuginfo-2.6.3-4.el6.s390x.rpm
File outdated by:  RHBA-2017:0756
    MD5: a4654161b6028c09dc0b7e450ba765eb
SHA-256: 46d5be288c2e63b8eeec060270c2287c2ccbbfcd9d486e50f2d5f1edd9b4d321
 
x86_64:
grep-2.6.3-4.el6.x86_64.rpm
File outdated by:  RHBA-2017:0756
    MD5: 8cae69613673db31c586905468aee11b
SHA-256: caafe98a16ceca13bc1bbdad49aa68b84f66fa150dd85127042941ee7e0b07db
grep-debuginfo-2.6.3-4.el6.x86_64.rpm
File outdated by:  RHBA-2017:0756
    MD5: a48cfe04d17e6a22613a16b8c51ba96e
SHA-256: b54b2b3a47a68147b5f718af2f57a18f04b0501822d39e5974b244eb26504242
 
Red Hat Enterprise Linux Workstation (v. 6)

SRPMS:
grep-2.6.3-4.el6.src.rpm
File outdated by:  RHBA-2017:0756
    MD5: 32ab8167474a83d35d3a905ebab0dc0b
SHA-256: 2d9a53477565e37c9375c7fc041fde6bd3ec1451450805cd26aed9868b0a650f
 
IA-32:
grep-2.6.3-4.el6.i686.rpm
File outdated by:  RHBA-2017:0756
    MD5: 7af6b046f33d17864b37497d6380f5d3
SHA-256: 912f8b4fef1acb061eb68baa3d5960e136d66d5bf7d8834012ed8b13f47992d8
grep-debuginfo-2.6.3-4.el6.i686.rpm
File outdated by:  RHBA-2017:0756
    MD5: df924f8d0650c1dc727e8d1396da4ed1
SHA-256: 7d2fea6f68efc58e2726dec59abdb05819935fb65aed58751343b8f060f202a6
 
x86_64:
grep-2.6.3-4.el6.x86_64.rpm
File outdated by:  RHBA-2017:0756
    MD5: 8cae69613673db31c586905468aee11b
SHA-256: caafe98a16ceca13bc1bbdad49aa68b84f66fa150dd85127042941ee7e0b07db
grep-debuginfo-2.6.3-4.el6.x86_64.rpm
File outdated by:  RHBA-2017:0756
    MD5: a48cfe04d17e6a22613a16b8c51ba96e
SHA-256: b54b2b3a47a68147b5f718af2f57a18f04b0501822d39e5974b244eb26504242
 
(The unlinked packages above are only available from the Red Hat Network)

Bugs fixed (see bugzilla for more information)

715295 - [abrt] grep-2.6.3-2.el6: __libc_message: Process /bin/grep was killed by signal 6 (SIGABRT)
826997 - grep -i (case-insensitive) is broken with UTF8



These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from:
https://www.redhat.com/security/team/key/#package

The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/