Bug 988007

Summary: [Patch] Canon: First start lets application crash due to lack of null pointer check
Product: [Fedora] Fedora Reporter: Andre Vehreschild <vehre>
Component: sane-backendsAssignee: Nils Philippsen <nphilipp>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 19CC: amigadave, nphilipp
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sane-backends-1.0.24-4.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-11 12:58:03 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:
Bug Depends On:    
Bug Blocks: 923254    
Attachments:
Description Flags
Preliminary patch to prevent crash. none

Description Andre Vehreschild 2013-07-24 14:16:07 UTC
Created attachment 777807 [details]
Preliminary patch to prevent crash.

Description of problem:
A missing null pointer check in the canon module leads to crashing application when scanning for input devices the first time.

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

How reproducible:
Attach canon scsi scanner, start scanning app using sane.

Steps to Reproduce:
1.
2.
3.

Actual results:
App crashes.

Expected results:
App runs w/o crash.

Additional info:
Patch proposed also to the sane project.

Comment 1 David King 2014-03-11 12:58:03 UTC
This bug was fixed upstream in 1.0.24:

http://anonscm.debian.org/gitweb/?p=sane/sane-backends.git;a=commitdiff;h=d750ed0b1276a9a3475a2f819cfc86c3fecd0fd0

As this (actually, later) version (with other patches) is in both F19 and F20, closing this as ERRATA.

Comment 2 David King 2014-03-11 13:45:37 UTC
*** Bug 923254 has been marked as a duplicate of this bug. ***