[Gdal-dev] Testing arguments in the swig-bindings
Ari Jolma
ari.jolma at tkk.fi
Tue Aug 28 09:06:46 EDT 2007
This relates to ticket #1602 (http://trac.osgeo.org/gdal/ticket/1602),
which I opened a while ago since I'm concerned about programs (including
interactive programs) failing with segfault since undefined variables
are mapped to NULLs in the swig bindings and GDAL is not always prepared
to receive NULLs as arguments. This happens at least in the case of Perl.
Mateusz has implemented object pointer checks into the C API, which
takes care of many of these problems but not all and it is perhaps not
sensible to make the C API bullet-proof in this sense.
I'd like to continue this work, and add more checks, probably into the
swig bindings. I'd like to know, if other swig binding developers have
ideas or concerns regarding this?
Cheers,
Ari
More information about the Gdal-dev
mailing list