[PostGIS] #6000: Dereference of NULL

PostGIS trac at osgeo.org
Wed Oct 8 02:07:07 PDT 2025


#6000: Dereference of NULL
-----------------------+---------------------------
 Reporter:  mkorotkov  |      Owner:  pramsey
     Type:  defect     |     Status:  new
 Priority:  medium     |  Milestone:  PostGIS 3.6.1
Component:  postgis    |    Version:  3.6.x
 Keywords:             |
-----------------------+---------------------------
 liblwgeom/measures.c: Function lw_dist2d_check_overlap()

         if (!lwg1->bbox)
                 lwgeom_calculate_gbox(lwg1, lwg1->bbox);
         if (!lwg2->bbox)
                 lwgeom_calculate_gbox(lwg2, lwg2->bbox);

 Inside lwgeom_calculate_gbox() the NULL pointers lwg1->bbox and lwg2->bbox
 are dereferenced
-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/6000>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list