| 1 | Subject: Disable fuzzer_crash test, doesn't work on s390x |
| 2 | Forwarded: https://github.com/uber/h3/issues/964 |
| 3 | |
| 4 | --- a/src/apps/testapps/testPolygonToCellsReportedExperimental.c |
| 5 | +++ b/src/apps/testapps/testPolygonToCellsReportedExperimental.c |
| 6 | @@ -28,36 +28,6 @@ |
| 7 | // Tests for specific polygonToCells examples |
| 8 | |
| 9 | SUITE(polygonToCells_reported) { |
| 10 | - // fuzzer crash due to inconsistent handling of CONTAINMENT_OVERLAPPING |
| 11 | - TEST(fuzzer_crash) { |
| 12 | - uint8_t data[] = { |
| 13 | - 0xff, 0xff, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, |
| 14 | - 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa, 0x0, 0x0, 0xff, |
| 15 | - 0xff, 0x0, 0x0, 0x0, 0xa, 0xa, 0xa, 0xa, 0xa, 0xff, |
| 16 | - }; |
| 17 | - |
| 18 | - uint8_t res = 0; |
| 19 | - size_t vertsSize = sizeof(data); |
| 20 | - int numVerts = vertsSize / sizeof(LatLng); |
| 21 | - |
| 22 | - GeoPolygon geoPolygon; |
| 23 | - geoPolygon.numHoles = 0; |
| 24 | - geoPolygon.holes = NULL; |
| 25 | - geoPolygon.geoloop.numVerts = numVerts; |
| 26 | - // Offset by 1 since *data was used for `res`, above. |
| 27 | - geoPolygon.geoloop.verts = (LatLng *)(data); |
| 28 | - |
| 29 | - uint32_t flags = CONTAINMENT_OVERLAPPING; |
| 30 | - int64_t sz; |
| 31 | - t_assertSuccess(H3_EXPORT(maxPolygonToCellsSizeExperimental)( |
| 32 | - &geoPolygon, res, flags, &sz)); |
| 33 | - t_assert(sz == 1, "Expected output count"); |
| 34 | - H3Index *out = calloc(sz, sizeof(H3Index)); |
| 35 | - t_assertSuccess(H3_EXPORT(polygonToCellsExperimental)(&geoPolygon, res, |
| 36 | - flags, sz, out)); |
| 37 | - free(out); |
| 38 | - } |
| 39 | - |
| 40 | // https://github.com/uber/h3-js/issues/76#issuecomment-561204505 |
| 41 | TEST(entireWorld) { |
| 42 | // TODO: Fails for a single worldwide polygon |