aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2017-10-12Resolve OSS-Fuzz issue 3620Thomas Knudsen
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3620 Credit to OSS-Fuzz
2017-10-12Resolve OSS-Fuzz issue 3619,Thomas Knudsen
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3619 credit to OSS-Fuzz
2017-10-12Merge pull request #593 from busstoptaktik/gieThomas Knudsen
[WIP, RFC] Move regression tests out from the main code base
2017-10-12Run 'gie builtins.gie' as part of Travis CI jobsThomas Knudsen
Touch up configuration files to support gie
2017-10-12remove trailing whitespaceThomas Knudsen
Add missing prototype for opt_strip_path() A bunch of minor oops cleanups Remove unused functiion cloumn() Fighting the good fight trying to be *both* POSIX *and* Windows compatible A few more improvements: 2 missing casts and a potentially uninitialized variable
2017-10-12gie.c and builtins.gie now able to reproduce internal test resultsThomas Knudsen
improved docs, improved strtod - avoid precision loss for very long fractions Switch gie.c to use same framework as cct.c numerous improvements in proj_strtod.c and gie.c Add gie to the build system
2017-10-11Merge pull request #600 from busstoptaktik/oss-fuzz-pipelineThomas Knudsen
repair a simple dealloc bug in PJ_pipeline, which caused a landslide of OSS Fuzz issue reports Credit to OSS Fuzz
2017-10-11repair a simple dealloc bug in PJ_pipeline, which caused a landslide of OSS ↵Thomas Knudsen
Fuzz issue reports
2017-10-10Merge pull request #596 from busstoptaktik/OSS-Fuzz-issue-3595Thomas Knudsen
Resolve OSS Fuzz issue 3595 division by zero by replacing atan(y/x) with atan2(y,x) Credit to OSS Fuzz
2017-10-10Resolve OSS Fuzz issue 3595 division by zero by replacing atan(y/x) with ↵Thomas Knudsen
atan2(y,x)
2017-10-09Remove PJ_DATUMS which was introduced to proj.h by mistakeKristian Evers
2017-10-09Add proj_list_* functions that exposes various internal lists (#579)Kristian Evers
Fixes #173, #187 and #220
2017-10-08Resolve #594 and OSS-Fuzz-3569 (#595)Thomas Knudsen
* Resolve #594 and OSS-Fuzz-3569 * Restructure PJ_geos opaque object: sweep_axis showed unneeded, and freeing it was wrong. Eliminate instead Resolves #594 Resolves OSS-Fuzz Issue 3569 Credit to OSS-Fuzz
2017-10-07Merge pull request #592 from busstoptaktik/obs_api-improvementsThomas Knudsen
Cleaned up the use of PJ_IO_UNITS_CLASSIC, so it means only one thing: That output is linear and measured in units of the semimajor axis. This made it possible to remove a number of checks that had now become superfluous Corrected pj_roundtrip, so it takes PJ_COORD args, rather than PJ_OBS, and made it measure geodesic distances, rather than cartesian, where it makes sense
2017-10-06Switch proj_roundtrip to accept PJ_COORD, rather than PJ_OBS, and make it do ↵Thomas Knudsen
proper geodesic distances for forward roundtrips
2017-10-06Remove superfluous checks for PJ.left being PJ_IO_UNITS_CLASSICThomas Knudsen
2017-10-06Change PJ.left default from PJ_CLASSIC to PJ_RADIANSThomas Knudsen
2017-10-06Resolve OSS-Fuzz issue 1836: Division by zero in gn_sinu setupThomas Knudsen
2017-10-06Merge pull request #583 from busstoptaktik/destructorThomas Knudsen
Introduce a default destructor for PJ objects
2017-10-06Enable ob_tran for ellipsoidal projection definitions. While formally wrong, ↵Thomas Knudsen
it gives consistent results, and is more safe than the original hack of setting es=0
2017-10-06Enable address sanitizer in linux/clang buildThomas Knudsen
Elim some leaks by initializing PJ.destructor in PJ_ob_tran.c properly Avoid tests bombing when built with address sanitizer: Repair memory leak in test228.c Avoid tests bombing when built with address sanitizer: Repair memory leak in multistresstest.c
2017-10-06Enable default destructor for all PJ objects.Thomas Knudsen
In most cases memory deallocation is completely removed from the code since it can be handled by the default destructor. In a few special cases a local destructor overrides the default destructor and makes sure that locally allocated memored is cleaned up correctly. Move all deallocation from pj_free to pj_default_destructor Rename pj_latlong.c to fit with the conventional format PJ_latlong.c - freeup was missed here due to wrong naming Clean up pj_init to avoid double deallocation; Also resolve #576 by adding z_0 and t_0 options in pj_init, while cleaning Add a prototype for dealloc_params Added missing errno.h include in pj_ctx.c Temporarily removing ob_tran from testvarious, to be sure that is where the trouble is Make PJ_ob_tran.c use proper initialization for the chained projection proj=ob_tran: make it clear, that we disallow ellipsoidal projections, and, for improved backwards compatibility, turns off default settings, which could inject unwanted ellipsoid definitions ... then also remove the ellipsoid definition from the testvarious test case - which is probably buggy anyway Work around cs2cs spherical init bug in testvarious; Forbid defs for ob_tran in pj_init
2017-09-28Introducing the cct 'Coordinate Conversion and Transformation' program (#574)Thomas Knudsen
* Introducing the cct 'Coordinate Conversion and Transformation' program * cct: Add some rudimentary documentation * Removed documentation again, moving to a separate doc PR * Minor corrections in response to a review by @kbevers
2017-09-28Add PJD_ERR_* aliases for error numbers without oneKristian Evers
2017-09-28Support a default destructor for PJ objectsThomas Knudsen
2017-09-27decimalyear_to_mjd(): avoid almost infinite loop in case of crazy input. ↵Even Rouault
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3449. Credit to OSS Fuzz
2017-09-22Add 'expected accuracy' member to PJ_PROJ_INFO struct.Kristian Evers
2017-09-21Changed a few occurences of 'const PJ*' to just 'PJ*' since they were making ↵Kristian Evers
promises that couldn't be kept
2017-09-21Use FACTORS and DERIVS structs from projects.h instead of duplicating them ↵Kristian Evers
in proj.h
2017-09-13Make proj_destroy and proj_context_destroy behave in the same way.Kristian Evers
2017-09-13Introduce PJ_DEFAULT_CTX constant that improves code readabilityKristian Evers
2017-09-13make PJ* P argument of proj_lp_dist constKristian Evers
2017-09-13Add typedef for transformation direction enumKristian Evers
2017-09-13Change how existance of strings in info-structs are checked. Before this ↵Kristian Evers
commit they always evaluated as true. Fixes #568.
2017-09-12Merge pull request #564 from kbevers/proj-respect-input-output-unitsKristian Evers
proj: Do rad->deg conversion if output units warrants it
2017-09-12Merge pull request #567 from kbevers/issue-566Even Rouault
Fix for #566.
2017-09-09Tested for wrong indices before array lookup. Fixes #566.Kristian Evers
2017-09-07PJ_ob_tran: fix potential memory leak. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3321. Credit to OSS Fuzz
2017-09-06Add PJ_FACTORS bit flags to proj.hKristian Evers
2017-09-05proj: Do rad->deg conversion if output units warrants it.Kristian Evers
With the introduction of transformation pipelines it is possible to create a pipeline that has degrees as it's output unit. If that is the case the output coordinate will be in radians internally. This commit makes sure that a conversion to degrees is applied before printing to stdout.
2017-09-05PJ_unitconvert: fix memory leak. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3288. Credit to OSS Fuzz
2017-09-05Reformat proj.c before making functional changes.Kristian Evers
Mixed usage of tabs and spaces replaced with spaces. Code slightly reformatted to present a consistent style from top to bottom.
2017-09-04PJ_hgridshift.c: fix memleak in initialization if grid loading fail. Same ↵Even Rouault
fix as commit e1ad1046873056ab3bfc3262bd343e8c874f395c. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3276. Credit to OSS Fuzz
2017-09-03PJ_goode: fix memory leak. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3274. Credit to OSS Fuzz
2017-08-30Merge pull request #562 from cffk/geod-1.49Charles Karney
Release candidate for geodesic library version 1.49.
2017-08-30Back out of previous change. Coverage stats are still wrong. geodtestCharles Karney
should have included geodesic.c and not geod.c and yet I'm not allowed to use geodesic.c except through the library and then the coverage of geodesic.c seems to be wildly wrong.
2017-08-30Rejig how geodtest is specified in automake to make coverage stats accurate??Charles Karney
2017-08-30Add geodtest to autoconf's 'make check' suite.Charles Karney
It's already including in cmake's test suite.
2017-08-30urm5: fix memory leaks in error code paths of initialization. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3235. Credit to OSS Fuzz
2017-08-29Release candidate for geodesic library version 1.49.Charles Karney
Only substantial changes are (1) testing the HAVE_C99_MATH flag and acting accordingly and (2) adding a couple of tests.