cppcheck analysis of crossfire_1.11.0-2.dsc
- ./common/readable.c:1472 [error] - Undefined behaviour: buf 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.
- ./common/readable.c:1475 [error] - Undefined behaviour: buf 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.
- ./common/readable.c:1487 [error] - Undefined behaviour: buf 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.
- ./common/readable.c:1491 [error] - Undefined behaviour: buf 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.
- ./common/readable.c:1506 [error] - Undefined behaviour: buf 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.
- ./common/readable.c:1551 [error] - Undefined behaviour: retbuf 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.
- ./common/readable.c:1648 [error] - Undefined behaviour: retbuf 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.
- ./common/readable.c:1660 [error] - Undefined behaviour: retbuf 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.
- ./common/readable.c:1874 [error] - Undefined behaviour: buf 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.
- ./crossedit/Cnv/CnvFiles.c:117 [error] - Resource leak: dir
- ./plugins/cfanim/cfanim.c:1109 [error] - Data is allocated but not initialized: context
- ./plugins/cfpython/cfpython.c:834 [error] - Dangerous usage of 'tmp' (strncpy doesn't always 0-terminate it)
- ./plugins/cfpython/cfpython.c:1244 [error] - Data is allocated but not initialized: context
- ./plugins/cfpython/cfpython.c:1474 [error] - Data is allocated but not initialized: context
- ./server/gods.c:126 [error] - Possible null pointer dereference: gl
- ./server/shop.c:1251 [error] - Memory leak: map_mark
- ./socket/info.c:589 [error] - Memory leak: map_mark
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:46:48 +0000, based on results by cppcheck 1.41-modif