mirror of
https://github.com/mapbox/tippecanoe.git
synced 2025-04-01 16:30:35 +00:00
Fix array bounds error found by -fsanitize=address
This commit is contained in:
parent
9eb3a7f7ec
commit
922bef72c8
@ -263,7 +263,7 @@ void handle(std::string message, int z, unsigned x, unsigned y, int describe, st
|
||||
}
|
||||
}
|
||||
|
||||
if (i >= ops.size() || ops[i + 1].op == VT_MOVETO) {
|
||||
if (i + 1 >= ops.size() || ops[i + 1].op == VT_MOVETO) {
|
||||
if (ops[i].op != VT_CLOSEPATH) {
|
||||
fprintf(stderr, "Ring does not end with closepath (ends with %d)\n", ops[i].op);
|
||||
if (!force) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user