| Age | Commit message (Collapse) | Author |
|
|
|
* Handle allocation failure when loading grid files
Continuing #606, we tackle the same issues in the loading and processing
of grid files. This should fix potential crashes and memory leaks, and
makes sure the global lock is always released.
* Use pj_calloc when zero-initialized memory is wanted
|
|
patterns PJ_d....c and PJ_e....c (#615)
|
|
Avoid printing output for succeeding tests
|
|
* Improve proj_strtod test cases
* Add missing stdlib.h include
|
|
remove internal seftests from projections starting with a 'c' (excluding PJ_cart.c)
|
|
Second selftest removal (projections starting with 'b')
|
|
PJ_cart)
|
|
|
|
|
|
|
|
|
|
* Prevent crashes and leaks on allocation failure
Memory allocation can fail. We need to gracefully handle this case and
prevent dereferencing null pointers.
* Make NULL checks consistent within a file
* Properly report allocation errors
* Improve cleanup in pj_gc_reader.c
* Implement pj_strdup and use instead of strdup
The function strdup is not part of ANSI C 89, but a POSIX extension.
Therefore we can not rely on it being available on all platforms.
|
|
OSS-Fuzz issue 3630: Missing return in PJ_lsat.c
|
|
Resolves https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3630
Credit to OSS-Fuzz
|
|
Resolve OSS-Fuzz issue 3620
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3620
Credit to OSS-Fuzz
|
|
All projections starting with "a". Replace with stubs returning 10000.
The two PJ_apply_?gridhift.c files have not been touched
|
|
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3620
Credit to OSS-Fuzz
|
|
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3619
credit to OSS-Fuzz
|
|
[WIP, RFC] Move regression tests out from the main code base
|
|
Touch up configuration files to support gie
|
|
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
|
|
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
|
|
repair a simple dealloc bug in PJ_pipeline, which caused a landslide of OSS Fuzz issue reports
Credit to OSS Fuzz
|
|
Fuzz issue reports
|
|
Resolve OSS Fuzz issue 3595 division by zero by replacing atan(y/x) with atan2(y,x)
Credit to OSS Fuzz
|
|
atan2(y,x)
|
|
|
|
Fixes #173, #187 and #220
|
|
* 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
|
|
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
|
|
proper geodesic distances for forward roundtrips
|
|
|
|
|
|
|
|
Introduce a default destructor for PJ objects
|
|
it gives consistent results, and is more safe than the original hack of setting es=0
|
|
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
|
|
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
|
|
* 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
|
|
|
|
|
|
Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3449. Credit to OSS Fuzz
|
|
|
|
promises that couldn't be kept
|
|
in proj.h
|
|
|
|
|
|
|
|
|