diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/fuzzers/standard_fuzzer.cpp | 6 | ||||
| -rw-r--r-- | test/gie/builtins.gie | 3 | ||||
| -rw-r--r-- | test/gie/ellipsoid.gie | 2 |
3 files changed, 11 insertions, 0 deletions
diff --git a/test/fuzzers/standard_fuzzer.cpp b/test/fuzzers/standard_fuzzer.cpp index 11f8738e..29ea50f8 100644 --- a/test/fuzzers/standard_fuzzer.cpp +++ b/test/fuzzers/standard_fuzzer.cpp @@ -105,8 +105,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) { free(buf_dup); pj_free(pj_src); +#ifndef OMIT_DEALLOCATION pj_gc_unloadall(pj_get_default_ctx()); pj_deallocate_grids(); +#endif return 0; } double x = 0, y = 0, z = 9; @@ -133,8 +135,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) free(buf_dup); pj_free(pj_src); pj_free(pj_dst); +#ifndef OMIT_DEALLOCATION pj_gc_unloadall(pj_get_default_ctx()); pj_deallocate_grids(); +#endif return 0; } #ifdef STANDALONE @@ -157,8 +161,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len) free(buf_dup); pj_free(pj_src); pj_free(pj_dst); +#ifndef OMIT_DEALLOCATION pj_gc_unloadall(pj_get_default_ctx()); pj_deallocate_grids(); +#endif return 0; } diff --git a/test/gie/builtins.gie b/test/gie/builtins.gie index df19efb6..3397090c 100644 --- a/test/gie/builtins.gie +++ b/test/gie/builtins.gie @@ -1321,6 +1321,9 @@ expect failure errno lat_larger_than_90 operation +proj=eqdc +R=6400000 +lat_2=91 expect failure errno lat_larger_than_90 +operation +proj=eqdc +R=1 +lat_1=1e-9 +expect failure errno conic_lat_equal + =============================================================================== Euler Conic, Sph diff --git a/test/gie/ellipsoid.gie b/test/gie/ellipsoid.gie index b84a512f..74fbe31d 100644 --- a/test/gie/ellipsoid.gie +++ b/test/gie/ellipsoid.gie @@ -116,6 +116,8 @@ accept 12 55 expect 1338073.2696101593 7374207.4801437631 ------------------------------------------------------------------------------- +operation proj=merc a=1E77 R_lat_a=90 b=1 +expect failure errno invalid_eccentricity ------------------------------------------------------------------------------- This one from testvarious failed at first version of the pull request |
