cppcheck analysis of nethack_3.4.3-12.dsc
- ./src/alloc.c:44 [error] - Return of the address of an auto-variable
- ./src/cmd.c:2383 [error] - Returning pointer to local array variable
- ./src/do_name.c:619 [error] - Returning pointer to local array variable
- ./src/do_name.c:652 [error] - Returning pointer to local array variable
- ./src/do_name.c:656 [error] - Returning pointer to local array variable
- ./src/do_name.c:661 [error] - Returning pointer to local array variable
- ./src/do_name.c:738 [error] - Returning pointer to local array variable
- ./src/do_name.c:743 [error] - Returning pointer to local array variable
- ./src/do_name.c:748 [error] - Returning pointer to local array variable
- ./src/end.c:310 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./src/end.c:310 [error] - Invalid number of character ({) when these macros are defined: 'AMIGA'.
- ./src/end.c:310 [error] - Invalid number of character ({) when these macros are defined: 'GOLDOBJ'.
- ./src/end.c:310 [error] - Invalid number of character ({) when these macros are defined: 'LINT'.
- ./src/end.c:310 [error] - Invalid number of character ({) when these macros are defined: 'MAC'.
- ./src/end.c:310 [error] - Invalid number of character ({) when these macros are defined: 'NO_SIGNAL'.
- ./src/end.c:310 [error] - Invalid number of character ({) when these macros are defined: 'SYSV'.
- ./src/end.c:310 [error] - Invalid number of character ({) when these macros are defined: 'WIN32'.
- ./src/end.c:310 [error] - Invalid number of character ({) when these macros are defined: 'WIZARD'.
- ./src/invent.c:1640 [error] - Returning pointer to local array variable
- ./src/pline.c:69 [error] - Invalid number of character ({) when these macros are defined: 'OVLB'.
- ./src/pline.c:69 [error] - Invalid number of character ({) when these macros are defined: 'OVLB;MAC'.
- ./src/pline.c:69 [error] - Invalid number of character ({) when these macros are defined: 'OVLB;STEED'.
- ./src/pline.c:69 [error] - Invalid number of character ({) when these macros are defined: 'OVLB;WIZARD'.
- ./sys/amiga/amidos.c:98 [error] - Uninitialized variable: i
- ./sys/amiga/amiwind.c:948 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./sys/amiga/amiwind.c:948 [error] - Invalid number of character ({) when these macros are defined: 'AMII_GRAPHICS'.
- ./sys/amiga/amiwind.c:948 [error] - Invalid number of character ({) when these macros are defined: 'AMII_GRAPHICS;AMIFLUSH'.
- ./sys/amiga/amiwind.c:948 [error] - Invalid number of character ({) when these macros are defined: 'AMII_GRAPHICS;CLIPPING'.
- ./sys/amiga/amiwind.c:948 [error] - Invalid number of character ({) when these macros are defined: 'AMII_GRAPHICS;HACKFONT'.
- ./sys/amiga/amiwind.c:948 [error] - Invalid number of character ({) when these macros are defined: 'AMII_GRAPHICS;INTUI_NEW_LOOK'.
- ./sys/amiga/amiwind.c:948 [error] - Invalid number of character ({) when these macros are defined: 'AMII_GRAPHICS;OPT_DISPMAP'.
- ./sys/amiga/winami.c:778 [error] - Invalid number of character ({) when these macros are defined: 'AMIGA_INTUITION;EXTMENU'.
- ./sys/atari/tos.c:275 [error] - Resource leak: fromfd
- ./sys/share/pcsys.c:424 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./sys/share/pcsys.c:424 [error] - Invalid number of character ({) when these macros are defined: 'MFLOPPY'.
- ./sys/share/pcsys.c:424 [error] - Invalid number of character ({) when these macros are defined: 'MFLOPPY;TOS'.
- ./sys/share/pcsys.c:424 [error] - Invalid number of character ({) when these macros are defined: 'MICRO'.
- ./sys/share/pcsys.c:424 [error] - Invalid number of character ({) when these macros are defined: 'MOVERLAY'.
- ./sys/share/pcsys.c:424 [error] - Invalid number of character ({) when these macros are defined: 'MSDOS'.
- ./sys/share/pcsys.c:424 [error] - Invalid number of character ({) when these macros are defined: 'OS2_CODEVIEW'.
- ./sys/share/pcsys.c:424 [error] - Invalid number of character ({) when these macros are defined: 'TOS'.
- ./sys/share/pcsys.c:424 [error] - Invalid number of character ({) when these macros are defined: 'TOS;__MINT__'.
- ./sys/share/pcsys.c:424 [error] - Invalid number of character ({) when these macros are defined: 'WIN32'.
- ./sys/share/pctty.c:83 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./sys/share/pctty.c:83 [error] - Invalid number of character ({) when these macros are defined: 'MSDOS;NO_TERMS'.
- ./sys/share/pctty.c:83 [error] - Invalid number of character ({) when these macros are defined: 'TIMED_DELAY;_MSC_VER'.
- ./sys/share/pctty.c:83 [error] - Invalid number of character ({) when these macros are defined: 'TOS'.
- ./sys/share/unixtty.c:449 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./sys/share/unixtty.c:449 [error] - Invalid number of character ({) when these macros are defined: 'BSD;POSIX_TYPES'.
- ./sys/share/unixtty.c:449 [error] - Invalid number of character ({) when these macros are defined: 'LINT'.
- ./sys/share/unixtty.c:449 [error] - Invalid number of character ({) when these macros are defined: 'LINUX'.
- ./sys/share/unixtty.c:449 [error] - Invalid number of character ({) when these macros are defined: 'POSIX_JOB_CONTROL'.
- ./sys/share/unixtty.c:449 [error] - Invalid number of character ({) when these macros are defined: 'POSIX_JOB_CONTROL;VSUSP'.
- ./sys/share/unixtty.c:449 [error] - Invalid number of character ({) when these macros are defined: 'POSIX_TYPES'.
- ./sys/share/unixtty.c:449 [error] - Invalid number of character ({) when these macros are defined: 'TAB3'.
- ./sys/share/unixtty.c:449 [error] - Invalid number of character ({) when these macros are defined: 'TCSETS'.
- ./sys/share/unixtty.c:449 [error] - Invalid number of character ({) when these macros are defined: 'TTY_GRAPHICS'.
- ./sys/share/unixtty.c:449 [error] - Invalid number of character ({) when these macros are defined: 'VDISCARD'.
- ./sys/share/unixtty.c:449 [error] - Invalid number of character ({) when these macros are defined: 'VDSUSP'.
- ./sys/share/uudecode.c:169 [error] - Resource leak: in
- ./sys/vms/vmstty.c:491 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./sys/vms/vmstty.c:491 [error] - Invalid number of character ({) when these macros are defined: 'MAIL'.
- ./sys/vms/vmstty.c:491 [error] - Invalid number of character ({) when these macros are defined: 'SAVE_ON_FATAL_ERROR'.
- ./sys/vms/vmstty.c:491 [error] - Invalid number of character ({) when these macros are defined: 'TIMED_DELAY'.
- ./sys/vms/vmstty.c:491 [error] - Invalid number of character ({) when these macros are defined: 'USE_QIO_INPUT'.
- ./sys/vms/vmstty.c:491 [error] - Invalid number of character ({) when these macros are defined: '__GNUC__'.
- ./sys/wince/winhack.c:288 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./sys/wince/winhack.c:288 [error] - Invalid number of character ({) when these macros are defined: 'APSTUDIO_INVOKED'.
- ./sys/wince/winhack.c:288 [error] - Invalid number of character ({) when these macros are defined: 'APSTUDIO_INVOKED;APSTUDIO_READONLY_SYMBOLS'.
- ./sys/wince/winhack.c:288 [error] - Invalid number of character ({) when these macros are defined: 'OVL0'.
- ./sys/wince/winhack.c:288 [error] - Invalid number of character ({) when these macros are defined: 'WIN_CE_POCKETPC'.
- ./sys/wince/winhack.c:288 [error] - Invalid number of character ({) when these macros are defined: 'WIN_CE_SMARTPHONE'.
- ./sys/wince/winhack.c:288 [error] - Invalid number of character ({) when these macros are defined: 'WIZARD'.
- ./sys/winnt/nttty.c:937 [error] - Invalid number of character ({) when these macros are defined: 'WIN32CON'.
- ./sys/winnt/winnt.c:222 [error] - Invalid number of character ({) when these macros are defined: 'WIN32'.
- ./sys/winnt/winnt.c:222 [error] - Invalid number of character ({) when these macros are defined: 'WIN32;WIZARD'.
- ./util/lev_main.c:1012 [error] - Possible null pointer dereference: m - otherwise it is redundant to check if m is null at line 1026
- ./util/lev_main.c:1013 [error] - Possible null pointer dereference: m - otherwise it is redundant to check if m is null at line 1026
- ./util/lev_main.c:1052 [error] - Possible null pointer dereference: o - otherwise it is redundant to check if o is null at line 1060
- ./util/lev_main.c:1086 [error] - Possible null pointer dereference: e - otherwise it is redundant to check if e is null at line 1092
- ./util/lev_main.c:1192 [error] - Possible null pointer dereference: l - otherwise it is redundant to check if l is null at line 1200
- ./util/lev_main.c:1131 [error] - Resource leak: fout
- ./util/panic.c:46 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./util/panic.c:46 [error] - Invalid number of character ({) when these macros are defined: 'ALLOCA_HACK'.
- ./util/panic.c:46 [error] - Invalid number of character ({) when these macros are defined: 'AZTEC'.
- ./util/panic.c:46 [error] - Invalid number of character ({) when these macros are defined: 'SYSV'.
- ./util/panic.c:46 [error] - Invalid number of character ({) when these macros are defined: 'VMS'.
- ./win/Qt/qt_win.cpp:700 [possible error] - Memory leak: grid
- ./win/Qt/qt_win.cpp:1164 [possible error] - Memory leak: l
- ./win/Qt/qt_win.cpp:1164 [possible error] - Memory leak: vbgb
- ./win/Qt/qt_win.cpp:1164 [possible error] - Memory leak: vbab
- ./win/Qt/qt_win.cpp:3238 [possible error] - Memory leak: hb
- ./win/Qt/qt_win.cpp:4157 [possible error] - Memory leak: q
- ./win/Qt/qt_win.cpp:4172 [possible error] - Memory leak: button
- ./win/Qt/qt_win.cpp:4493 [possible error] - Memory leak: lsplash
- ./win/Qt/qt_win.cpp:4493 [possible error] - Memory leak: capt
- ./win/Qt/qt_win.cpp:4585 [possible error] - Memory leak: vbl
- ./win/Qt/qt_win.cpp:4795 [possible error] - Memory leak: window
- ./win/Qt/qt_win.cpp:5042 [possible error] - Memory leak: l
- ./win/Qt/qt_win.cpp:5042 [possible error] - Memory leak: bl
- ./win/Qt/tileedit.cpp:311 [possible error] - Mismatching allocation and deallocation: TilePalette::rgb
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:59:08 +0000, based on results by cppcheck 1.41-modif