cppcheck analysis of grib-api_1.9.0-2.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
- ./src/grib_accessor_class_ksec.c:167 [error] - Resource leak: f
- ./src/grib_accessor_class_ksec.c:210 [error] - Resource leak: f
- ./src/grib_accessor_class_sprintf.c:171 [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:180 [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:189 [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:199 [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_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:468 [error] - Possible null pointer dereference: gl
- ./src/grib_handle.c:627 [error] - Possible null pointer dereference: gl
- ./src/grib_handle.c:698 [error] - Possible null pointer dereference: gl
- ./src/grib_index.c:1198 [error] - Possible null pointer dereference: index - otherwise it is redundant to check if index is null at line 1201
- ./src/grib_index.c:733 [error] - Resource leak: fh
- ./src/grib_query.c:76 [error] - Possible null pointer dereference: s - otherwise it is redundant to check if s is null at line 78
- ./tools/grib_get_data.c:188 [error] - Memory leak: missing_string
- ./tools/grib_options.c:455 [error] - Memory leak: err
- ./tools/grib_options.c:477 [error] - Memory leak: err
- ./tools/grib_tools.c:489 [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, 20 Dec 2010 21:14:31 +0000, based on results by cppcheck 1.46