[Gdal-dev] Testing arguments in the swig-bindings
Frank Warmerdam
warmerdam at pobox.com
Tue Aug 28 13:30:11 EDT 2007
Ari Jolma wrote:
> -- MajorObject.SetDescription
Ari,
For the many string arguments that are required to be non-NULL,
can we have a swig typemap for "non-null-string" arguments
to catch this?
> -- Band.ComputeBandStats
>
> setting nSampleStep == 0 causes an eternal loop
The C++ ComputeBandStats() code should validate this
parameter and issue a runtime error for dangerous values.
> -- OGR::Layer.CreateField
>
> segfault if poField == NULL
Isn't this sort of problem handled by the object-null testing
that was put in place?
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
More information about the Gdal-dev
mailing list