This repository has been archived by the owner on Oct 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Overflow in pxy2zxy
#75
Comments
Just tested again and I'm also seeing a similar potential overflow in Line 956 in 64af63c
|
Note: these problems are still present. They are minor, but should ideally still be fixed. They are not seen in the carmen-cache tests because of lacking coverage. They only show up when carmen-cache is instrumented with the address sanitizer and the carmen tests are run with this version of carmen-cache. I don't have the bandwidth to keep pushing here, so I will lay out the remaining todos and offer to spirit guide someone who picks this up:
|
presume this was fixed by #116 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
By running carmen-cache with
-fsanitze=integer
I see we only have one test that hits theif (zDist == 0)
condition atcarmen-cache/src/binding.cpp
Line 934 in cd20c47
It is the
test/geocode-unit.proximity.test.js
(specifically # forward province - multilayer) in carmen as of https://github.com/mapbox/carmen/commit/dbe167d609a6cc5374a20ddd7accb81ba62edf34.Before the
if (zDist == 0)
condition thezMult
variable overflows. This is harmless because it is not used, but it still ends up being4294967295
becausetarget_z
andz
are both6
and sozDist
because0
atcarmen-cache/src/binding.cpp
Line 932 in cd20c47
Tasks:
if (zDist == 0)
condition were every accidentally removedProposed fix:
The text was updated successfully, but these errors were encountered: