aboutsummaryrefslogtreecommitdiff
path: root/src/pj_gridlist.c
AgeCommit message (Collapse)Author
2018-05-15IWYU: Partial PJ_natearth.c..rtodms.cKurt Schwehr
2018-03-11Remove angle brackets for proj headers (#849)Thomas Knudsen
* Avoid using angle brackets for PROJ headers. Switching from #include <proj.h> to #include "proj.h", and correspondingly for projects.h and proj_api.h, reduces the risk of accidentally picking up a system installed older version of the header while building a new version of PROJ. * Also handle geodesic.h
2017-11-27Replace some asserts by compile-time assertionsAaron Puchert
Decisions regarding the size of certain types are always made at compile time, hence this is where the assertion should take place. If the assertions fail, there is now a compiler error.
2017-10-20Handle allocation failure when loading grid files (#616)Aaron Puchert
* 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
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-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-08pj_gridlist_from_nadgrids(): fix memory leak in error code path. Credit to ↵Even Rouault
OSS Fuzz
2016-12-12Add a scripts/fix_typos.sh script and correct reported errorsEven Rouault
2016-01-26Use #define for max path lengthdrhaynes
2016-01-26Use const int for array sizedrhaynes
2016-01-26Increase maximum path size for grid shift loadingdrhaynes
On systems with long paths (e.g. iOS, which uses UUIDs for bundle directories), the existing maximum path length of 128 resulted in path truncation, and caused the grid shift file loading to fail. This change increases the buffer size for the path to 1024 chars, enabling the nadgrids file to be loaded on such systems.
2015-05-31Remove unused $Id$ keywords.Elliott Sales de Andrade
2015-05-30Fix signed/unsigned comparison warnings.Elliott Sales de Andrade
2011-03-28avoid possible buffer overflow processing nadgrids directive (meego #14963)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1990 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-06-11roll projCtx through various other low level functionsFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1856 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-06-11preliminary implementation of projCtx APIFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1854 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-03-16Rework the translation of nadgrids parameters into a list of gridshift files Frank Warmerdam
to avoid use of static "lastnadgrids" information which screws up multithreading. Changes the PJ structure. git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1831 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-03-03various improvements to error handling so corrupt grids are reported (#66)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1828 4e78687f-474d-0410-85f9-8d5e500ac6b2
2009-09-24fix windows compatabilityFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1634 4e78687f-474d-0410-85f9-8d5e500ac6b2
2009-09-23implement mutex locking for loading/caching grid shift filesFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1626 4e78687f-474d-0410-85f9-8d5e500ac6b2
2009-01-06removed CVS log messages since they are not maintained by subversionFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1504 4e78687f-474d-0410-85f9-8d5e500ac6b2
2006-11-17Uploaded PROJ.4 port for Windows CE.Mateusz Loskot
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1377 4e78687f-474d-0410-85f9-8d5e500ac6b2
2005-11-01improved error handling if gridcount is zeroFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1311 4e78687f-474d-0410-85f9-8d5e500ac6b2
2003-03-18clear error if missing file is not requiredFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1112 4e78687f-474d-0410-85f9-8d5e500ac6b2
2003-03-17support '@' marker for optional gridsFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1103 4e78687f-474d-0410-85f9-8d5e500ac6b2
2003-03-15NewFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1090 4e78687f-474d-0410-85f9-8d5e500ac6b2