[gdal-dev] Patch for s57reader.cpp
Frank Warmerdam
warmerdam at pobox.com
Fri Nov 30 10:01:55 PST 2012
Mr. Xonx,
I have made related changes in trunk:
http://trac.osgeo.org/gdal/changeset/25269
Best regards,
Frank
On Fri, Nov 30, 2012 at 8:40 AM, <mrxonx at hotmail.com> wrote:
> A small patch (that prevents a crash on certain datasets). Your line
> numbers will certainly be different, but it should work.
>
>
> --- s57reader.cpp
> +++ s57reader.cpp
> @@ -2313,7 +2313,7 @@
> /* -------------------------------------------------------------------- */
> /* Add the end node. */
> /* -------------------------------------------------------------------- */
> - if( poVRPT->GetRepeatCount() > 1 )
> + if( (poVRPT != NULL) && poVRPT->GetRepeatCount() > 1 )
> {
> int nVC_RCID = ParseName( poVRPT, 1 );
> double dfX, dfY;
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
--
---------------------------------------+--------------------------------------
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 Software Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20121130/a58d9438/attachment.html>
More information about the gdal-dev
mailing list