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, <mrx...@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@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam,
warmer...@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Software Developer
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to