diff options
author | Justin Lecher <jlec@gentoo.org> | 2011-04-25 09:36:45 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2011-04-25 09:36:45 +0000 |
commit | f591d7ee71548109f44f0a94a5aeb6f8361fd682 (patch) | |
tree | 0a8476ed88e75fe7980322f5f3a4df4c2747282c /sci-libs/grib_api/files | |
parent | Stable on amd64 wrt bug #358789 (diff) | |
download | historical-f591d7ee71548109f44f0a94a5aeb6f8361fd682.tar.gz historical-f591d7ee71548109f44f0a94a5aeb6f8361fd682.tar.bz2 historical-f591d7ee71548109f44f0a94a5aeb6f8361fd682.zip |
_FORTIFY_SOURCE indicates presence of overflow Fix, #351013
Package-Manager: portage-2.2.0_alpha30/cvs/Linux x86_64
Diffstat (limited to 'sci-libs/grib_api/files')
-rw-r--r-- | sci-libs/grib_api/files/grib_api-1.9.5-32bit.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sci-libs/grib_api/files/grib_api-1.9.5-32bit.patch b/sci-libs/grib_api/files/grib_api-1.9.5-32bit.patch new file mode 100644 index 000000000000..8bcad025feef --- /dev/null +++ b/sci-libs/grib_api/files/grib_api-1.9.5-32bit.patch @@ -0,0 +1,24 @@ + src/grib_ieeefloat.c | 3 ++- + 1 files changed, 2 insertions(+), 1 deletions(-) + +diff --git a/src/grib_ieeefloat.c b/src/grib_ieeefloat.c +index 2190f56..36122a5 100644 +--- a/src/grib_ieeefloat.c ++++ b/src/grib_ieeefloat.c +@@ -12,6 +12,7 @@ + * * + ***************************************************************************/ + #include "grib_api_internal.h" ++#include <stdint.h> + + #if 1 + +@@ -332,7 +333,7 @@ unsigned long grib_ieee_to_long(double x) { + #ifdef IEEE + + unsigned long grib_ieee64_to_long(double x) { +- unsigned long lval; ++ uint64_t lval; + #if IEEE_LE + unsigned char s[8]={0,}; + unsigned char* buf=(unsigned char*)&x; |