aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-03-26Initialize test_time other fields.Kurt Schwehr
Leaving x, y, z fields unset triggers an MSAN failure. fwd_prepare pj_fwd.c:40:9 pj_fwd4d pj_fwd.c:260:15 proj_trans proj_4D_api.c:166:20 test_time gie.c:1955:11
2018-03-26Tidy soci/proj4 referencesMike Toews
2018-03-25Merge pull request #899 from schwehr/proj_etmerc-inf-zone-b76304619Kristian Evers
Catch over range lam0 in proj_etmerc.c
2018-03-25Catch over range lam0 in proj_etmerc.cKurt Schwehr
lam0 of inf caused a nan in the cast to int. Picked +/-1000 for lam0 as a guess for what constitutes reduculously large values. proj_etmerc.c:361:16: runtime error: nan is outside the range of representable values of type 'int' Found with autofuzz: UndefinedBehaviorSanitizer: float-cast-overflow
2018-03-25Merge pull request #893 from schwehr/horner-overflowKristian Evers
horner: Fail if the order is unreasonably large.
2018-03-24Merge pull request #896 from cffk/assertNaNKristian Evers
geodtest: introduce assertNaN. geodesic: comment on non-use of pj_is_nan.
2018-03-24Merge pull request #895 from schwehr/use-pj-is-nanKristian Evers
Use pj_is_nan rather than x == x or x != x (#894)
2018-03-23Use pj_is_nan rather than x == x or x != x in pj_apply_vgridshift.c (#894)Kurt Schwehr
2018-03-23geodtest.c, checkNaN: print arg on failure.Charles Karney
2018-03-23assertEquals -> checkEquals, assertNaN -> checkNaN.Charles Karney
2018-03-23geodtest: introduce assertNaN. geodesic: comment on non-use of pj_is_nan.Charles Karney
2018-03-23horner: Fail if the order is unreasonably large.Kurt Schwehr
Overflow in horner_alloc with "2*(int)order" Found with autofuzz with UndefinedBehaviorSanitizer: signed-integer-overflow
2018-03-23If HAVE_C99_MATH, define pj_is_nan as isnan.Charles Karney
Extend HAVE_C99_MATH checks in CMakeLists.txt and configure.ac to include test for C99 function isnan.
2018-03-23Undo mistaken push to master.Charles Karney
2018-03-23If HAVE_C99_MATH, then pj_is_nan is defined as isnan.Charles Karney
This required extending the HAVE_C99_MATH checks in CMakeLists.txt and configure.ac to include a test for the C99 function isnan.
2018-03-22Merge pull request #887 from schwehr/float-cast-overflowKristian Evers
Handle nan float cast overflow in PJ_robin.c and nad_intr.c
2018-03-22Handle nan float cast overflow in PJ_robin.c and nad_intr.cKurt Schwehr
Uses the new pj_is_nan to avoid x == x checks. Removes an assignment from an arg list
2018-03-22Add a simple implementation of pj_is_nan() to proj_internal.hKurt Schwehr
2018-03-22Merge pull request #886 from schwehr/log-levelKristian Evers
3 -> PJ_LOG_TRACE for pj_log level in pj_init.c
2018-03-22proj.h: update PROJ_VERSION_MAJOR.PROJ_VERSION_MINOR to 5.1Even Rouault
This will help avoiding issues for people tracking proj master and GDAL See https://lists.osgeo.org/pipermail/gdal-dev/2018-March/048285.html
2018-03-213 -> PJ_LOG_TRACE for pj_log level in pj_init.cKurt Schwehr
Bare literals are hard to follow and inconsisten with the rest of proj.
2018-03-21Merge pull request #882 from rouault/fix_881Kristian Evers
Take into account +towgs84=0,0,0 in pipeline to still imply geodetic->cartesian->geodetic (fixes #881)
2018-03-21Take into account +towgs84=0,0,0 in pipeline to still imply ↵Even Rouault
geodetic->cartesian->geodetic (fixes #881)
2018-03-21Merge pull request #883 from schwehr/ctable-nullKristian Evers
Handle the case where nad_ctable2_init returns NULL.
2018-03-21Merge pull request #880 from mwtoews/rename-varKristian Evers
Avoid shadowed declaration errors with old gcc
2018-03-21Merge branch 'master' into ctable-nullKristian Evers
2018-03-21Merge pull request #878 from schwehr/logging-cleanupKristian Evers
Remove final \n from pj_log messages.
2018-03-20Handle the case where nad_ctable2_init returns NULL.Kurt Schwehr
Make CTABLE V2 handling the same as CTABLE. The pj_log call hit a NULL pointer during fuzzing. Found with autofuzz.
2018-03-21Avoid shadowed declaration errors with old gccMike Toews
2018-03-21Add extra { } to make code clearerEven Rouault
2018-03-20Remove final \n from pj_log messages.Kurt Schwehr
There was a mix of pj_log calls with and without a trailing newline. pj_stderr_logger already adds a newline to the end of each msg, so pj_log calls don't need their own.
2018-03-20Merge pull request #877 from kbevers/fix-datum-param-in-pipelinesKristian Evers
Introduce late expansion of +datum parameters.
2018-03-20Merge pull request #876 from schwehr/b74944176-pj_gridinfo_initKristian Evers
Track the header size read in pj_gridinfo_init
2018-03-20Introduce late expansion of +datum parameters. Fixes #872.Kristian Evers
2018-03-20Add 'exact' flag to Helmert operation when doing cs2cs emulation. Fixes ↵Kristian Evers
#871. (#873)
2018-03-20Track the header size read in pj_gridinfo_initKurt Schwehr
Fixes #875 Found with autofuzz using MSAN: use-of-uninitialized-value
2018-03-19Fix spelling error in gie error code. Closes #861.Kristian Evers
2018-03-17Fix comments in geodesic.c. Better invocation of AX_CHECK_COMPILE_FLAG,Charles Karney
but I doubt this will fix the build failures on the CI machines.
2018-03-17Patch 1.49.3 for geodesic package.Charles Karney
Set flags for Intel compiler to prevent incorrect optimization of arithmetic expressions #826. Guard against nans in sincosdx #834. Issue #831 is not addressed here (need more information...).
2018-03-16Merge pull request #865 from kbevers/pj_releaseKristian Evers
Use version numbers from proj.h in pj_release string
2018-03-16Use version numbers from proj.h in pj_release stringKristian Evers
2018-03-14Use a function to dereference a double value, to avoid false positive ↵Even Rouault
warning with older cppcheck versions
2018-03-14Avoid 'Found calculation inside sizeof()' false positive with older cppcheck ↵Even Rouault
versions
2018-03-14Avoid 'duplicateExpression,Same expression on both sides of '!='' false ↵Even Rouault
positive with older cppcheck versions
2018-03-14Avoid 'invalidscanf,scanf without field width limits can crash with huge ↵Even Rouault
input data on some versions of libc' with older cppcheck versions
2018-03-14Workaround false positive older cppcheck warning about null pointer dereferenceEven Rouault
2018-03-14Fix (mostly false positive) clang static analyzer warnings about potential ↵Even Rouault
null pointer dereference
2018-03-14Fix various dead initialization warnings spotted by clang static analyzerEven Rouault
2018-03-14Remove useless code (the variable is updated, but no longer used in the ↵Even Rouault
loop, and reinitialized at the next iteration) (spotted by clang static analyzer) The bug dates back from the original commit of src/PJ_lsat.c src/PJ_misrsom.c has likely copied & pasted from PJ_lsat.c
2018-03-14Fix dead assignment spotted by clang static analyzerEven Rouault