1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 12:15:32 +03:00
aports/community/gdal/10-atoll.patch
Holger Jaekel 4e872011b5 community/gdal: upgrade to 3.0.2
* add support for NumPy arrays to the Python client
* add Java subpackage
* add util subpackage for command line utilities
* execute autotest regression test suite to check()
* add new drivers, the most important are:
  * JPEG2000
  * webp
  * ODBC
  * MySQL
2019-12-10 11:21:17 +01:00

34 lines
1 KiB
Diff

Author: Holger Jaekel <holger.jaekel@gmx.de>
Summary: musl atoll() doesn't return ERANGE in case of overflow
----
--- a/gdal/port/cpl_conv.cpp
+++ b/gdal/port/cpl_conv.cpp
@@ -1006,8 +1006,6 @@ GIntBig CPLAtoGIntBig( const char *pszSt
#endif
}
-#if defined(__MINGW32__) || defined(__sun__)
-
// mingw atoll() doesn't return ERANGE in case of overflow
static int CPLAtoGIntBigExHasOverflow(const char* pszString, GIntBig nVal)
{
@@ -1030,8 +1028,6 @@ static int CPLAtoGIntBigExHasOverflow(co
return strcmp(szBuffer, pszString) != 0;
}
-#endif
-
/************************************************************************/
/* CPLAtoGIntBigEx() */
/************************************************************************/
@@ -1058,9 +1054,7 @@ GIntBig CPLAtoGIntBigEx( const char* psz
GIntBig nVal = atol(pszString);
#endif
if( errno == ERANGE
-#if defined(__MINGW32__) || defined(__sun__)
|| CPLAtoGIntBigExHasOverflow(pszString, nVal)
-#endif
)
{
if( pbOverflow )