cppcheck analysis of bochs_2.4.6-1.dsc
- ./bios/rombios.c:9085 [error] - Invalid number of character (() when these macros are defined: ''.
- ./bios/rombios.c:9085 [error] - Invalid number of character (() when these macros are defined: 'BX_QEMU'.
- ./bios/rombios.c:9085 [error] - Invalid number of character (() when these macros are defined: 'BX_USE_EBDA_TABLES'.
- ./bios/rombios32.c:378 [error] - Uninitialized variable: k
- ./bios/usage.cc:99 [error] - Resource leak: bios_file
- ./bios/usage.cc:99 [error] - Resource leak: org_file
- ./bx_debug/dbg_main.cc:404 [error] - Resource leak: tmp_fp
- ./bx_debug/symbols.cc:359 [error] - Memory leak: cntx
- ./bx_debug/symbols.cc:359 [error] - Resource leak: fp
- ./gui/gui.cc:459 [error] - Memory leak: mask_snapshot
- ./gui/rfb.cc:959 [error] - Common realloc mistake: "rfbScreen" nulled but not freed upon failure
- ./iodev/harddrv.cc:1560 [error] - Buffer access out-of-bounds
- ./iodev/serial.cc:344 [error] - Possible null pointer dereference: hp
- ./iodev/serial.cc:345 [error] - Possible null pointer dereference: hp
- ./iodev/vga.cc:647 [error] - Invalid number of character (() when these macros are defined: ''.
- ./iodev/vga.cc:647 [error] - Invalid number of character (() when these macros are defined: 'BX_ASSERT_ENABLE'.
- ./iodev/vga.cc:647 [error] - Invalid number of character (() when these macros are defined: 'BX_DBG_EXTENSIONS;BX_DEBUGGER;__cplusplus'.
- ./iodev/vga.cc:647 [error] - Invalid number of character (() when these macros are defined: 'BX_DEBUGGER'.
- ./iodev/vga.cc:647 [error] - Invalid number of character (() when these macros are defined: 'BX_DEBUGGER;BX_SUPPORT_X86_64'.
- ./iodev/vga.cc:647 [error] - Invalid number of character (() when these macros are defined: 'BX_DEBUGGER;BX_SUPPORT_X86_64;__cplusplus'.
- ./iodev/vga.cc:647 [error] - Invalid number of character (() when these macros are defined: 'BX_DEBUGGER;__cplusplus'.
- ./iodev/vga.cc:647 [error] - Invalid number of character (() when these macros are defined: 'BX_DEBUG_LINUX'.
- ./iodev/vga.cc:647 [error] - Invalid number of character (() when these macros are defined: 'BX_GDBSTUB'.
- ./iodev/vga.cc:647 [error] - Invalid number of character (() when these macros are defined: 'BX_GUI_SIGHANDLER'.
- ./iodev/vga.cc:647 [error] - Invalid number of character (() when these macros are defined: 'BX_HAVE_DLFCN_H'.
- ./iodev/vmware3.cc:176 [error] - Undefined behaviour: name 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.
- ./iodev/vmware3.cc:179 [error] - Undefined behaviour: name 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.
- ./iodev/vvfat.cc:480 [error] - Buffer access out-of-bounds: entry.name
- ./iodev/vvfat.cc:1562 [error] - Memory leak: buffer
- ./load32bitOShack.cc:74 [error] - Resource leak: fp
- ./logio.cc:503 [error] - Possible null pointer dereference: crashptr
- ./memory/misc_mem.cc:274 [error] - Resource leak: fd
- ./memory/misc_mem.cc:393 [error] - Resource leak: fd
- ./misc/bxcommit.c:346 [error] - Memory leak: catalog
- ./misc/bxcommit.c:346 [error] - Memory leak: bitmap
- ./misc/make_cmos_image.cc:103 [error] - Resource leak: fd
- ./plugin.cc:524 [error] - Possible null pointer dereference: device
- ./plugin.cc:526 [error] - Possible null pointer dereference: device
- ./plugin.cc:527 [error] - Possible null pointer dereference: device
- ./plugin.cc:528 [error] - Possible null pointer dereference: device
Note: if you think the results reveal a security bug,
please don't hesitate to contact the
security team
This report was generated on Sun, 27 Mar 2011 06:58:03 +0000, based on results by cppcheck 1.46