diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-06-09 11:41:13 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-06-09 11:41:13 +0200 |
| commit | c606094b8fa18a7c6da83b54b5e59f0eb470324c (patch) | |
| tree | edf669c7478c09ea505530c2669588ec4b609080 /src | |
| parent | 3628fb90c942aca31d238e9ad5912325452b91ad (diff) | |
| download | PROJ-c606094b8fa18a7c6da83b54b5e59f0eb470324c.tar.gz PROJ-c606094b8fa18a7c6da83b54b5e59f0eb470324c.zip | |
PJ_igh.c: assign ctx of igh projection to its children projection objects. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2167. Credit to OSS Fuzz
Diffstat (limited to 'src')
| -rw-r--r-- | src/PJ_igh.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/PJ_igh.c b/src/PJ_igh.c index 7e1adf68..5a019a9a 100644 --- a/src/PJ_igh.c +++ b/src/PJ_igh.c @@ -177,6 +177,7 @@ static void freeup (PJ *P) { #define SETUP(n, proj, x_0, y_0, lon_0) \ if (!(Q->pj[n-1] = pj_##proj(0))) E_ERROR_0; \ if (!(Q->pj[n-1] = pj_##proj(Q->pj[n-1]))) E_ERROR_0; \ + Q->pj[n-1]->ctx = P->ctx; \ Q->pj[n-1]->x0 = x_0; \ Q->pj[n-1]->y0 = y_0; \ Q->pj[n-1]->lam0 = lon_0; |
