From 5292fa4fd7daec837abbfb1b584298c506511ee6 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Tue, 7 Jul 2015 09:25:51 +0100 Subject: [PATCH] GRIB-787: Assertion failure: decoding large grib2 file --- src/grib_accessor_class_data_simple_packing.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/grib_accessor_class_data_simple_packing.c b/src/grib_accessor_class_data_simple_packing.c index 4d964e745..2845bd4b0 100644 --- a/src/grib_accessor_class_data_simple_packing.c +++ b/src/grib_accessor_class_data_simple_packing.c @@ -260,8 +260,7 @@ static int unpack_double_element(grib_accessor* a, size_t idx, double* val) buf += grib_byte_offset(a); - Assert(((bits_per_value*n_vals)/8) < (1<<29)); - /*ensure that the bit pointer is not overflown*/ + /*Assert(((bits_per_value*n_vals)/8) < (1<<29));*/ /* See GRIB-787 */ if(bits_per_value%8) { @@ -378,8 +377,7 @@ static int _unpack_double(grib_accessor* a, double* val, size_t *len,unsigned c buf += grib_byte_offset(a); - Assert(((bits_per_value*n_vals)/8) < (1<<29)); - /*ensure that the bit pointer is not overflown*/ + /*Assert(((bits_per_value*n_vals)/8) < (1<<29));*/ /* See GRIB-787 */ grib_context_log(a->parent->h->context, GRIB_LOG_DEBUG, "unpack_double : calling outline function : bpv %d, rv : %g, sf : %d, dsf : %d ",