cppcheck analysis of grib-api_1.8.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: out
- ./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:166 [error] - Resource leak: f
- ./src/grib_accessor_class_ksec.c:209 [error] - Resource leak: f
- ./src/grib_accessor_class_sprintf.c:170 [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:179 [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:188 [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:198 [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_ieeefloat.c:346 [error] - Uninitialized variable: lval
- ./src/grib_ieeefloat.c:362 [error] - Uninitialized variable: dval
- ./src/grib_index.c:513 [error] - Possible null pointer dereference: index - otherwise it is redundant to check if index is null at line 516
- ./tools/grib_get_data.c:183 [error] - Memory leak: missing_string
- ./tools/grib_options.c:455 [error] - Memory leak: err
- ./tools/grib_options.c:477 [error] - Memory leak: err
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Thu, 16 Dec 2010 05:48:49 +0000, based on results by cppcheck 1.41-modif