mapbox / mapbox/mr-mvt

runtime error: division by zero

Open
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
4
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Building with -fsanitize=address,undefined and running the tests give:

include/tile_cover.hpp:199:35: runtime error: division by zero
SUMMARY: AddressSanitizer: undefined-behavior include/tile_cover.hpp:199:35 in 
include/tile_cover.hpp:198:35: runtime error: division by zero
SUMMARY: AddressSanitizer: undefined-behavior include/tile_cover.hpp:198:35 in 

/cc @flippmoke

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Build the project with -fsanitize=address,undefined and run the tests to reproduce the report. Inspect include/tile_cover.hpp at lines 198-199 and the tests or callers that reach those expressions; done means the sanitizer no longer reports division by zero.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
data
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.