Bug 1029943

Summary: SIGSEGV in git apply
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: gitAssignee: Chris Wright <chrisw>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: chrisw, jbowes, tmz, vonsch
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-18 14:33:14 UTC Type: Bug
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 Flags
Reproducer none

Description Jaroslav Škarvada 2013-11-13 15:22:13 UTC
Created attachment 823477 [details]
Reproducer

Description of problem:
The "git apply" command can segfault if specific input data are used. It shouldn't do that even if the input data are non-sense

Version-Release number of selected component (if applicable):
git-1.8.3.1-1.fc19.x86_64

How reproducible:
Always

Steps to Reproduce:
1. git apply -p1 ./patch.patch

Actual results:
Segmentation fault

Expected results:
No segmentation fault.

Additional info:

Comment 1 Jaroslav Škarvada 2013-11-13 15:22:46 UTC
Patch command seems to work correctly.

Comment 2 Adam Tkac 2013-12-18 14:33:14 UTC
This is already fixed in Fedora 20 (git-1.8.4.2-1.fc20). I'm not going to backport the patch into F20 now.