This repository was archived by the owner on Aug 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Static analyzer error in GeometryCollection::fixupPolygons and wagyu #15382
Copy link
Copy link
Closed
Labels
CoreThe cross-platform C++ core, aka mbglThe cross-platform C++ core, aka mbglarchivedArchived because of inactivityArchived because of inactivitybugrendering
Description
As of cd12961, Xcode 10.3’s static analyzer finds the following error — @astojilj it looks like #15309 may fix this?
mapbox-gl-native/src/mbgl/tile/geometry_tile_data.cpp:45:9: Access to field 'maximum_bound' results in a dereference of a null pointer (loaded from variable 'last_maximum') (within a call to 'add_ring’)
- mapbox-gl-native/src/mbgl/tile/geometry_tile_data.cpp:44:27: Entering loop body
- mapbox-gl-native/src/mbgl/tile/geometry_tile_data.cpp:45:9: Calling 'wagyu::add_ring'
- mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/wagyu.hpp:47:5: Entered call from 'fixupPolygons'
- mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/wagyu.hpp:49:16: Calling 'add_linear_ring<int, int>'
- mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/build_local_minima_list.hpp:13:1: Entered call from 'wagyu::add_ring'
- mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/build_local_minima_list.hpp:18:63: Assuming the condition is false
- mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/build_local_minima_list.hpp:21:5: Calling 'add_ring_to_local_minima_list'
- mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/local_minimum_util.hpp:204:1: Entered call from 'add_linear_ring<int, int>'
- mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/local_minimum_util.hpp:208:9: Assuming the condition is false
- mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/local_minimum_util.hpp:216:5: 'last_maximum' initialized to a null pointer value
- mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/local_minimum_util.hpp:217:12: Assuming the condition is false
- mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/local_minimum_util.hpp:217:12: Loop body executed 0 times
- mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/local_minimum_util.hpp:296:33: Access to field 'maximum_bound' results in a dereference of a null pointer (loaded from variable 'last_maximum’)
julianrex
Metadata
Metadata
Assignees
Labels
CoreThe cross-platform C++ core, aka mbglThe cross-platform C++ core, aka mbglarchivedArchived because of inactivityArchived because of inactivitybugrendering