summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-05-19 12:27:00 +0100
committerRichard Jones <rjones@redhat.com>2010-05-20 10:30:12 +0100
commit30c091f49dafab4ca9c8b6640d19fc0450b15971 (patch)
treec4bba201e9cff32aeb533041bbb8ee3d2b49dd7b /.gitignore
parente715451fae0ba738973af98a4e506b6c5564626a (diff)
downloadlibguestfs-30c091f49dafab4ca9c8b6640d19fc0450b15971.tar.gz
libguestfs-30c091f49dafab4ca9c8b6640d19fc0450b15971.tar.xz
libguestfs-30c091f49dafab4ca9c8b6640d19fc0450b15971.zip
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.
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 9f487c69..9997356a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -198,6 +198,7 @@ python/bindtests.py
python/guestfs.py
python/guestfs-py.c
python/guestfs.pyc
+regressions/rhbz501893
regressions/test1.img
regressions/test.err
regressions/test.out