diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-03-29 22:45:01 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-03-29 23:13:55 +0100 |
| commit | 884da6cc0a2d9e85927fe30ba90d535db9d65317 (patch) | |
| tree | 78170bbd7b7902e59a4f846f2eae276cb8752053 /test | |
| parent | a0dfcf28d3af1179847c75a2a8981cb7fe967ab8 (diff) | |
| download | PROJ-884da6cc0a2d9e85927fe30ba90d535db9d65317.tar.gz PROJ-884da6cc0a2d9e85927fe30ba90d535db9d65317.zip | |
unitconvert: prevent division by zero
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13947
Credit to OSS Fuzz
Diffstat (limited to 'test')
| -rw-r--r-- | test/gie/unitconvert.gie | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/gie/unitconvert.gie b/test/gie/unitconvert.gie index 2e06fe72..f763959b 100644 --- a/test/gie/unitconvert.gie +++ b/test/gie/unitconvert.gie @@ -43,4 +43,28 @@ operation proj=unitconvert z_in=rad z_out=m accept 1 1 1 1 expect failure +operation proj=unitconvert xy_in=0 +expect failure + +operation proj=unitconvert xy_out=0 +expect failure + +operation proj=unitconvert xy_in=1e400 +expect failure + +operation proj=unitconvert xy_out=1e400 +expect failure + +operation proj=unitconvert z_in=0 +expect failure + +operation proj=unitconvert z_out=0 +expect failure + +operation proj=unitconvert z_in=1e400 +expect failure + +operation proj=unitconvert z_out=1e400 +expect failure + </gie> |
