From 30c091f49dafab4ca9c8b6640d19fc0450b15971 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Wed, 19 May 2010 12:27:00 +0100 Subject: generator: Check parameters are not NULL (RHBZ#501893). This adds additional tests to check that several types of parameter including String are not NULL when passed to the C functions. Previously this would cause a segfault inside libguestfs. With this change, you get an error message / exception. Of the possible pointer parameters, only OptString is now permitted to be NULL. This change does not affect the Perl bindings. This is because Perl XS code was already adding similar checks if you passed undef into a parameter expecting a string. --- po/POTFILES.in | 1 + 1 file changed, 1 insertion(+) (limited to 'po/POTFILES.in') diff --git a/po/POTFILES.in b/po/POTFILES.in index 8086ab22..b233c29d 100644 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -92,6 +92,7 @@ perl/bindtests.pl perl/lib/Sys/Guestfs.pm perl/lib/Sys/Guestfs/Lib.pm python/guestfs-py.c +regressions/rhbz501893.c regressions/test-lvm-mapping.pl regressions/test-noexec-stack.pl ruby/ext/guestfs/_guestfs.c -- cgit