Bug 1206131 - Compiling /(?:a|b|c|d|e)(?R)/ for JIT crashes pcre
Summary: Compiling /(?:a|b|c|d|e)(?R)/ for JIT crashes pcre
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pcre
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL: http://bugs.exim.org/show_bug.cgi?id=...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-26 11:49 UTC by Petr Pisar
Modified: 2015-03-30 07:03 UTC (History)
4 users (show)

Fixed In Version: pcre-8.36-4.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-30 07:03:25 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Fix ported to 8.36 (12.25 KB, patch)
2015-03-26 12:01 UTC, Petr Pisar
no flags Details | Diff

Description Petr Pisar 2015-03-26 11:49:54 UTC
With requested JIT, compiling /(?:a|b|c|d|e)(?R)/ causes PCRE library to crash in pcre_study() function. Reproducer is:

$ printf '%s\n' '/(?:a|b|c|d|e)(?R)/S++' | pcretest

Upstream fixed this issue with commit:

commit 3831a81914cf11565bf429dd019c9442b404bc5f
Author: zherczeg <zherczeg@2f5784b3-3f2a-0410-8824-cb99058d5e15>
Date:   Thu Mar 5 08:53:37 2015 +0000

    Remove computing the JIT read-only data size in advance and use on-demand me
mory allocation.
    
    git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1530 2f5784b3-3f2a-0410-8824-
cb99058d5e15

Fedora ≥ 21 is affected.

Comment 1 Petr Pisar 2015-03-26 12:01:21 UTC
Created attachment 1006768 [details]
Fix ported to 8.36

Comment 2 Fedora Update System 2015-03-26 12:46:54 UTC
pcre-8.36-4.fc22 has been submitted as an update for Fedora 22.
https://admin.fedoraproject.org/updates/pcre-8.36-4.fc22

Comment 3 Petr Pisar 2015-03-26 12:58:28 UTC
Fedora 21's pcre-8.35 differs significantly in JIT bracket optimization, therefore Fedora 21 will not be fixed.

Comment 4 lnie 2015-03-27 03:16:19 UTC
pcre-8.36-4.fc22 works

Comment 5 Fedora Update System 2015-03-29 04:34:33 UTC
Package pcre-8.36-4.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing pcre-8.36-4.fc22'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2015-4858/pcre-8.36-4.fc22
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2015-03-30 07:03:25 UTC
pcre-8.36-4.fc22 has been pushed to the Fedora 22 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.