Bug 1390105

Summary: Incorrect behavior when saving PNG image with a filename that includes &
Product: [Fedora] Fedora Reporter: Joachim Metz <joachim.metz>
Component: gscan2pdfAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 24CC: ppisar, rakesh.pandit, sven
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: https://sourceforge.net/p/gscan2pdf/bugs/233/
Whiteboard:
Fixed In Version: gscan2pdf-1.5.5-2.fc26 gscan2pdf-1.3.9-3.fc24 gscan2pdf-1.3.0-4.fc23 gscan2pdf-1.5.5-2.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-14 20:59:55 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:

Description Joachim Metz 2016-10-31 08:14:56 UTC
Description of problem:

After scanning, when saving scan results as a filename that includes & 
for example 'sed & awk', gscan2pdf is not interpreting the filename correctly.

From the console output:

sh:  awk_421.png: command not found
sh:  awk/sed : No such file or directory


Judging by "command not found" this could be command injection issue as well. 


Version-Release number of selected component (if applicable):
1.3.9


How reproducible:
consistent


Steps to Reproduce:
1. make scan
2. save as png with filename that includes &

Actual results:

single filename named <name before &>

and error output like
sh:  awk_421.png: command not found
sh:  awk/sed : No such file or directory

Expected results:

filenames with &

Additional info:

Comment 1 Petr Pisar 2016-11-01 12:23:12 UTC
I can reproduce it with gscan2pdf-1.3.9-2.fc24.noarch.

Comment 2 Fedora Update System 2016-11-01 15:21:07 UTC
gscan2pdf-1.5.5-2.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-5dc01a4093

Comment 3 Fedora Update System 2016-11-01 15:21:19 UTC
gscan2pdf-1.3.9-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-9b36d42b70

Comment 4 Fedora Update System 2016-11-01 15:32:53 UTC
gscan2pdf-1.3.0-4.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-9739c15130

Comment 5 Fedora Update System 2016-11-02 14:51:46 UTC
gscan2pdf-1.5.5-2.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-5dc01a4093

Comment 6 Fedora Update System 2016-11-05 03:31:08 UTC
gscan2pdf-1.3.9-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-9b36d42b70

Comment 7 Fedora Update System 2016-11-05 03:49:22 UTC
gscan2pdf-1.3.0-4.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-9739c15130

Comment 8 Fedora Update System 2016-11-06 01:51:33 UTC
gscan2pdf-1.3.0-4.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-9739c15130

Comment 9 Fedora Update System 2016-11-14 20:59:55 UTC
gscan2pdf-1.3.9-3.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2016-11-14 23:51:18 UTC
gscan2pdf-1.3.0-4.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2016-11-19 21:07:20 UTC
gscan2pdf-1.5.5-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.