[Gdal-dev] segfault in SHPCreateObject

Frank Warmerdam fwarmerdam at gmail.com
Tue Sep 13 11:17:03 EDT 2005


On 9/13/05, Ari Jolma <ari.jolma at tkk.fi> wrote:
> The question was whether "one should not be able to produce a seg fault
> by a scripting interface" sounded reasonable.

Ari, 

I think it is over ambitious in the case of GDAL and OGR
to expect to achieve the above goal.  However, I would like
to try and make it somewhat hard to produce a segfault
from the scripting interface. 

> I guess that's of course
> also up to the binding developers to put more shields. I'm very
> interested in having bullet proof code in the sense that the (stupid)
> end user hacking the script just shouldn't be able to blow up to whole
> thing. That's because I'm giving the end user a CLI where to hack in his
> stupid code, and they will do that since they are often students in my
> case. Cryptic error messages are always better than segfaults. But as
> said, there are many paths.

I understand the rationale, I just think it may be over ambitious.

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    | Geospatial Programmer for Rent




More information about the Gdal-dev mailing list