Bug 501893 - String parameters should be checked for != NULL
Summary: String parameters should be checked for != NULL
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On: 501894
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-21 08:51 UTC by Richard W.M. Jones
Modified: 2011-07-14 19:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-14 19:10:56 UTC
Embargoed:


Attachments (Terms of Use)

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:
https://www.redhat.com/archives/libguestfs/2010-May/msg00117.html


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