Bug 501893

Summary: String parameters should be checked for != NULL
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: mbooth, rjones, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-14 19:10:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 501894    
Bug Blocks:    

Description Richard W.M. Jones 2009-05-21 08:51:14 UTC
We should check that NULL is not being passed
for String parameters.  At the moment if a program
does this, it probably causes a segfault.  The calling
program is technically incorrect, but we should check
for this case anyway, particularly since in some bindings
(eg. Perl) an undefined string parameter might be
passed as NULL.

Comment 1 Mark McLoughlin 2009-05-25 14:49:53 UTC
Moving upstream, since it's only a safety check for incorrect programs

Comment 2 Richard W.M. Jones 2010-05-19 11:34:48 UTC
Patch posted upstream: