cppcheck analysis of grib-api_1.9.5-1.dsc
- ./examples/C/iterator.c:88 [error] - Memory leak: filename
- ./examples/C/points.c:129 [error] - Memory leak: id
- ./examples/C/precision.c:54 [error] - Resource leak: out
- ./examples/C/set.c:49 [error] - Resource leak: in
- ./examples/C/set_bitmap.c:50 [error] - Resource leak: out
- ./examples/C/set_missing.c:47 [error] - Resource leak: out
- ./examples/C/set_pv.c:48 [error] - Resource leak: out
- ./examples/python/iterator.c:88 [error] - Memory leak: filename
- ./src/grib_accessor_class_sprintf.c:173 [error] - Undefined behaviour: result is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./src/grib_accessor_class_sprintf.c:182 [error] - Undefined behaviour: result is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./src/grib_accessor_class_sprintf.c:191 [error] - Undefined behaviour: result is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./src/grib_accessor_class_sprintf.c:201 [error] - Undefined behaviour: result is used wrong in call to sprintf or snprintf. Quote: If copying takes place between objects that overlap as a result of a call to sprintf() or snprintf(), the results are undefined.
- ./src/grib_bits_fast_big_endian_vector.c:189 [error] - Data is allocated but not initialized: destination
- ./src/grib_bits_fast_big_endian_vector.c:256 [error] - Data is allocated but not initialized: destination
- ./src/grib_fieldset.c:743 [error] - Possible null pointer dereference: f - otherwise it is redundant to check if f is null at line 745
- ./src/grib_handle.c:489 [error] - Possible null pointer dereference: gl
- ./src/grib_handle.c:677 [error] - Possible null pointer dereference: gl
- ./src/grib_handle.c:722 [error] - Possible null pointer dereference: gl
- ./src/grib_handle.c:784 [error] - Possible null pointer dereference: gl
- ./src/grib_handle.c:243 [error] - Resource leak: fh
- ./src/grib_index.c:1207 [error] - Possible null pointer dereference: index - otherwise it is redundant to check if index is null at line 1210
- ./src/grib_index.c:742 [error] - Resource leak: fh
- ./src/grib_query.c:75 [error] - Possible null pointer dereference: s - otherwise it is redundant to check if s is null at line 77
- ./src/grib_util.c:284 [error] - Resource leak: fh
- ./tools/grib_get_data.c:188 [error] - Memory leak: missing_string
- ./tools/grib_options.c:458 [error] - Memory leak: err
- ./tools/grib_options.c:480 [error] - Memory leak: err
- ./tools/grib_tools.c:497 [error] - Resource leak: d
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Mon, 14 Feb 2011 06:58:04 +0000, based on results by cppcheck 1.46