Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Static analyzer error in GeometryCollection::fixupPolygons and wagyu #15382

Closed
friedbunny opened this issue Aug 14, 2019 · 2 comments
Closed
Labels
archived Archived because of inactivity bug Core The cross-platform C++ core, aka mbgl rendering

Comments

@friedbunny
Copy link
Contributor

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’)

  1. mapbox-gl-native/src/mbgl/tile/geometry_tile_data.cpp:44:27: Entering loop body
  2. mapbox-gl-native/src/mbgl/tile/geometry_tile_data.cpp:45:9: Calling 'wagyu::add_ring'
  3. mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/wagyu.hpp:47:5: Entered call from 'fixupPolygons'
  4. mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/wagyu.hpp:49:16: Calling 'add_linear_ring<int, int>'
  5. mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/build_local_minima_list.hpp:13:1: Entered call from 'wagyu::add_ring'
  6. mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/build_local_minima_list.hpp:18:63: Assuming the condition is false
  7. mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/build_local_minima_list.hpp:21:5: Calling 'add_ring_to_local_minima_list'
  8. mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/local_minimum_util.hpp:204:1: Entered call from 'add_linear_ring<int, int>'
  9. mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/local_minimum_util.hpp:208:9: Assuming the condition is false
  10. mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/local_minimum_util.hpp:216:5: 'last_maximum' initialized to a null pointer value
  11. mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/local_minimum_util.hpp:217:12: Assuming the condition is false
  12. mapbox-gl-native/vendor/wagyu/include/mapbox/geometry/wagyu/local_minimum_util.hpp:217:12: Loop body executed 0 times
  13. 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’)

/cc @alexshalamov @pozdnyakov

@friedbunny friedbunny added bug Core The cross-platform C++ core, aka mbgl rendering labels Aug 14, 2019
@astojilj
Copy link
Contributor

As of cd12961, Xcode 10.3’s static analyzer finds the following error — @astojilj it looks like #15309 may fix this?

No, we will still have wagyu used after #15309.
/cc @flippmoke

@stale stale bot added the archived Archived because of inactivity label Feb 11, 2020
@stale
Copy link

stale bot commented Feb 11, 2020

This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this as completed Feb 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived Archived because of inactivity bug Core The cross-platform C++ core, aka mbgl rendering
Projects
None yet
Development

No branches or pull requests

2 participants