aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-06-29Get PDF build output with Sphinx healthy (#533)Howard Butler
* Get PDF build output with Sphinx healthy * copy pdf to branch for upload on website
2017-06-29link to Proj.4 mailing list #531 (#532)Howard Butler
2017-06-22Use *pj_get_errno_ref() instead of pj_errno because it seems pj_errno is not ↵Kristian Evers
set correctly on some versions of VS. Fixes #484.
2017-06-21Correct calculation of meridian convergence for non-conformal projections. ↵Kristian Evers
Fixes #526.
2017-06-21Reformatting files before making functional changes. Getting rid of old ↵Kristian Evers
coding style and mixed whitespace.
2017-06-13Merge pull request #524 from rouault/fix_memleak_in_vgridshiftEven Rouault
PJ_vgridshift.c: fix memleak in initialization if grid loading fail
2017-06-13PJ_vgridshift.c: fix memleak in initialization if grid loading failEven Rouault
When gridloading fail for one grid, but return a gridlist, we leak the grid list array. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2230. Credit to OSS Fuzz
2017-06-09PJ_igh.c: assign ctx of igh projection to its children projection objects. ↵Even Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2167. Credit to OSS Fuzz
2017-06-08PJ_krovak.c: avoid infinite loop in inverse method. Credit to OSS FuzzEven Rouault
2017-06-08PJ_urm5.c: fix memory leak in destructor. Credit to OSS FuzzEven Rouault
2017-06-08Add upper limit to number of iterations for all (documented as such) ↵Even Rouault
computations using Newton-Raphson. Credit to OSS Fuzz
2017-06-08PJ_comill.c: avoid infinite loop in inverse method. Credit to OSS FuzzEven Rouault
2017-06-08pj_gridlist_from_nadgrids(): fix memory leak in error code path. Credit to ↵Even Rouault
OSS Fuzz
2017-06-08PJ_igh.c: fix memory leak. Credit to OSS FuzzEven Rouault
2017-06-02Disallow usage of m<0 and n<0 in gn_sinu.Kristian Evers
Negative values of m and n are not valid. Can for certain values of m and n result in zero division. An error is raised at projection setup if m or n is negative. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1836 Credit to OSS-Fuzz.
2017-06-02Merge pull request #520 from QuLogic/macro-deletionKristian Evers
Remove confusing macros.
2017-06-01Fix memory leaks. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2000. Credit to OSS Fuzz
2017-06-01Disallow +s=0 when in 4-param. mode.Kristian Evers
Avoids zero-division in PJ_helmert.c Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1956 Credit to OSS-Fuzz.
2017-05-31standard_fuzzer: add BINARY_2D and BINARY_3D modesEven Rouault
2017-05-31pj_apply_vgridshift(): avoid integer overflow / read heap-buffer-overflow. ↵Even Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1950. Credit to OSS Fuzz
2017-05-30PJ_ob_tran: avoid infinite recursion on +proj=ob_tran +o_proj=ob_tranEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1932 Credit to OSS Fuzz
2017-05-30PJ_ob_tran: fix crash if underlying projection has no fwd methodEven Rouault
For example +proj=ob_tran +o_proj=hgridshift Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1927 Credit to OSS Fuzz
2017-05-30catalog: memory leak and crashes related fixesEven Rouault
* pj_transform() crashes on a catalog that has no matching grid * pj_free() and pj_gc_unloadall() badly interact. No longer try to free the catalog object in pj_free(). That is the job of pj_gc_unloadall() * Fix memory leaks in pj_gc_readcatalog() and pj_gc_unloadall() Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1923 Credit to OSS Fuzz.
2017-05-29PJ_imw_p.c: fix infinite loop in e_inverse() and memory leak.Even Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1873 Credit to OSS Fuzz
2017-05-29PJ_ob_tran.c: fix memory leak in freeup_new() function. Found when running ↵Even Rouault
'make check' on a build with -fsanitize=undefined,address
2017-05-29Fix undefined behaviour on memcpy() when provided with NULL source. Found ↵Even Rouault
when running 'make check' on a build with -fsanitize=undefined,address
2017-05-29pj_compare_datums(): fix null pointer dereference.Even Rouault
Can happen when any of the src/dest projection has a +catalog parameter. Fix a memory leak on catalog_name as well. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1799 Credit to OSS Fuzz
2017-05-28Add commentEven Rouault
2017-05-24Remove confusing macros.Elliott Sales de Andrade
The upper-case macro `VAR` casts the lower-case variable `var` to an expected type, but that usage obfuscates the variables to the casual reader. This is especially prevalent in the allocation function in which `var` is the correct type already, so both `var` and `VAR` are valid *and* in use. In any case, for those functions that don't obtain `var` in the correct type from their parameters, it's much simpler to just case once at the beginning.
2017-05-24Merge pull request #519 from kbevers/avoid-zero-divisionKristian Evers
Handle zero division errors reported by OSS-Fuzz
2017-05-24Avoid zero div. in pj_Convert_Geocentric_To_Geodetic().Kristian Evers
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1800 Credit to OSS-Fuzz.
2017-05-24Avoid zero division in pj_gauss_ini().Kristian Evers
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1795 Credit to OSS-Fuzz.
2017-05-24Avoid division by zero in pj_ell_set().Kristian Evers
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1787 Credit to OSS-Fuzz.
2017-05-24Avoid zero division in PJ_eck3.c s_inverser().Kristian Evers
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1789 Credit to OSS-Fuzz.
2017-05-24Avoid zero division in PJ_aea.c setup().Kristian Evers
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1791 Credit to OSS-Fuzz.
2017-05-24Mixed whitespace. Replace tabs with spaces.Kristian Evers
2017-05-24Avoid zero division in pj_init_ctx().Kristian Evers
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1793 Credit to OSS-Fuzz.
2017-05-23pj_transform(): fix segfault when z == NULL and dest defn has a fwd3dEven Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1794 Credit to OSS Fuzz
2017-05-23pj_open_lib_ex(): protect against write stack buffer overflows.Even Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1796 Credit to OSS Fuzz
2017-05-23Merge pull request #518 from rouault/fix_ossfuzz_1809Even Rouault
Avoid potentially very long loop when normalizing longitudes around long_wrap_center
2017-05-23Avoid zero division in PJ_stere e_forward().Kristian Evers
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1797 Credit to OSS-Fuzz.
2017-05-23Avoid possible zero division in pj_qsfn().Kristian Evers
Fixes https://oss-fuzz.com/v2/testcase-detail/5224053675655168?noredirect=1 Credit to OSS-Fuzz
2017-05-23Fix possible zero division.Kristian Evers
For some extreme values of eccentricity a zero divison can occur. In those rare cases we return HUGE_VAL to indicate something went wrong while still returning a defined value. Credit to OSS Fuzz. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1801
2017-05-23test/fuzzers/README.TXT: update instructionsEven Rouault
2017-05-23Avoid potentially very long loop when normalizing longitudes around ↵Even Rouault
long_wrap_center Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1809 Credit to OSS Fuzz
2017-05-22Add test/fuzzers/README.txtEven Rouault
2017-05-22Merge pull request #516 from rouault/memleak_fixesEven Rouault
Memleak fixes
2017-05-22PJ_wag3: Fix memory leak of opaque memberEven Rouault
Credit to OSS Fuzz
2017-05-22pj_init(): fix memory leak of pj->geodEven Rouault
Whe PIN = (*proj)(PIN) fails, it doesn't free the geod member. So allocate it afterwards. Credit to OSS Fuzz
2017-05-21Add fuzzer for Google OSS FuzzEven Rouault