cppcheck analysis of tcc_0.9.25-5.dsc
- ./examples/ex2.c:90 [error] - Array 'stack_res[60]' index -3 out of bounds
- ./i386-asm.c:942 [error] - Array 'regs_allocated[8]' index 8 out of bounds
- ./lib/bcheck.c:147 [error] - Null pointer dereference
- tccpp.c:2757 [error] - Dangerous assignment - function parameter takes the address of a local auto-variable. Local auto-variables are reserved from the stack. And the stack is freed when the function ends. So the pointer to a local variable is invalid after the function ends.
- ./tccpe.c:887 [error] - Resource leak: op
- ./tests/boundtest.c:26 [error] - Buffer access out-of-bounds: tab
- ./tests/boundtest.c:99 [error] - Buffer access out-of-bounds: tab
- ./tests/boundtest.c:69 [error] - Buffer access out-of-bounds
- ./tests/boundtest.c:86 [error] - Buffer access out-of-bounds
- ./tests/boundtest.c:126 [error] - Buffer access out-of-bounds: tab
- ./tests/boundtest.c:148 [error] - Buffer access out-of-bounds: tab
- ./tests/boundtest.c:158 [error] - Deallocating a deallocated pointer: ptr
- ./tests/boundtest.c:54 [error] - Data is allocated but not initialized: tab4
- ./tests/boundtest.c:69 [error] - Data is allocated but not initialized: tab4
- ./tests/boundtest.c:86 [error] - Uninitialized variable: tab4
- ./tests/boundtest.c:114 [error] - Uninitialized variable: tab
- ./tests/boundtest.c:126 [error] - Uninitialized variable: tab
- ./tests/boundtest.c:138 [error] - Uninitialized variable: tab1
- ./tests/boundtest.c:158 [error] - Uninitialized variable: ptr
- ./win32/tools/tiny_libmaker.c:255 [error] - Common realloc mistake: "anames" nulled but not freed upon failure
- ./win32/tools/tiny_libmaker.c:260 [error] - Common realloc mistake: "afpos" nulled but not freed upon failure
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:18:59 +0000, based on results by cppcheck 1.46