cppcheck analysis of slashem_0.0.7E7F3-2.dsc
- ./src/alloc.c:93 [error] - Return of the address of an auto-variable
- ./src/cmd.c:3220 [error] - Returning pointer to local array variable
- ./src/cmd.c:3277 [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:329 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./src/end.c:329 [error] - Invalid number of character ({) when these macros are defined: 'ALLEG_FX'.
- ./src/end.c:329 [error] - Invalid number of character ({) when these macros are defined: 'AMIGA'.
- ./src/end.c:329 [error] - Invalid number of character ({) when these macros are defined: 'GOLDOBJ'.
- ./src/end.c:329 [error] - Invalid number of character ({) when these macros are defined: 'LINT'.
- ./src/end.c:329 [error] - Invalid number of character ({) when these macros are defined: 'MAC'.
- ./src/end.c:329 [error] - Invalid number of character ({) when these macros are defined: 'MAC_MPW'.
- ./src/end.c:329 [error] - Invalid number of character ({) when these macros are defined: 'NO_SIGNAL'.
- ./src/end.c:329 [error] - Invalid number of character ({) when these macros are defined: 'NO_SIGNAL;MAC_MPW'.
- ./src/end.c:329 [error] - Invalid number of character ({) when these macros are defined: 'SYSV'.
- ./src/end.c:329 [error] - Invalid number of character ({) when these macros are defined: 'WIN32'.
- ./src/end.c:329 [error] - Invalid number of character ({) when these macros are defined: 'WIZARD'.
- ./src/invent.c:1867 [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'.
- ./src/potion.c:2180 [error] - Possible null pointer dereference: obj - otherwise it is redundant to check if obj is null at line 2188
- ./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/msdos/bmp2txt.c:137 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./sys/msdos/bmp2txt.c:137 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./sys/msdos/bmp2txt.c:137 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./sys/msdos/bmp2txt.c:137 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./sys/msdos/bmp2txt.c:137 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./sys/msdos/bmp2txt.c:137 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./sys/msdos/bmp2txt.c:137 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./sys/msdos/bmp2txt.c:137 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./sys/msdos/bmp2txt.c:137 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./sys/msdos/bmp2txt.c:137 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./sys/msdos/bmp2txt.c:137 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./sys/msdos/bmp2txt.c:137 [error] - No pair for character ("). Can't process file. File is either invalid or unicode, which is currently not supported.
- ./sys/share/pcsys.c:420 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./sys/share/pcsys.c:420 [error] - Invalid number of character ({) when these macros are defined: 'MFLOPPY'.
- ./sys/share/pcsys.c:420 [error] - Invalid number of character ({) when these macros are defined: 'MFLOPPY;TOS'.
- ./sys/share/pcsys.c:420 [error] - Invalid number of character ({) when these macros are defined: 'MICRO'.
- ./sys/share/pcsys.c:420 [error] - Invalid number of character ({) when these macros are defined: 'MOVERLAY'.
- ./sys/share/pcsys.c:420 [error] - Invalid number of character ({) when these macros are defined: 'MSDOS'.
- ./sys/share/pcsys.c:420 [error] - Invalid number of character ({) when these macros are defined: 'OS2_CODEVIEW'.
- ./sys/share/pcsys.c:420 [error] - Invalid number of character ({) when these macros are defined: 'TOS'.
- ./sys/share/pcsys.c:420 [error] - Invalid number of character ({) when these macros are defined: 'TOS;__MINT__'.
- ./sys/share/pcsys.c:420 [error] - Invalid number of character ({) when these macros are defined: 'WIN32'.
- ./sys/share/pctty.c:89 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./sys/share/pctty.c:89 [error] - Invalid number of character ({) when these macros are defined: 'MSDOS;NO_TERMS'.
- ./sys/share/pctty.c:89 [error] - Invalid number of character ({) when these macros are defined: 'MSDOS;PC_MOUSE'.
- ./sys/share/pctty.c:89 [error] - Invalid number of character ({) when these macros are defined: 'TIMED_DELAY;_MSC_VER'.
- ./sys/share/pctty.c:89 [error] - Invalid number of character ({) when these macros are defined: 'TOS'.
- ./sys/share/unixtty.c:454 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./sys/share/unixtty.c:454 [error] - Invalid number of character ({) when these macros are defined: 'BSD;POSIX_TYPES'.
- ./sys/share/unixtty.c:454 [error] - Invalid number of character ({) when these macros are defined: 'LINT'.
- ./sys/share/unixtty.c:454 [error] - Invalid number of character ({) when these macros are defined: 'LINUX'.
- ./sys/share/unixtty.c:454 [error] - Invalid number of character ({) when these macros are defined: 'POSIX_JOB_CONTROL'.
- ./sys/share/unixtty.c:454 [error] - Invalid number of character ({) when these macros are defined: 'POSIX_JOB_CONTROL;VSUSP'.
- ./sys/share/unixtty.c:454 [error] - Invalid number of character ({) when these macros are defined: 'POSIX_TYPES'.
- ./sys/share/unixtty.c:454 [error] - Invalid number of character ({) when these macros are defined: 'TAB3'.
- ./sys/share/unixtty.c:454 [error] - Invalid number of character ({) when these macros are defined: 'TCSETS'.
- ./sys/share/unixtty.c:454 [error] - Invalid number of character ({) when these macros are defined: 'TTY_GRAPHICS'.
- ./sys/share/unixtty.c:454 [error] - Invalid number of character ({) when these macros are defined: 'VDISCARD'.
- ./sys/share/unixtty.c:454 [error] - Invalid number of character ({) when these macros are defined: 'VDSUSP'.
- ./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:1043 [error] - Invalid number of character ({) when these macros are defined: 'WIN32CON'.
- ./sys/winnt/winnt.c:274 [error] - Invalid number of character ({) when these macros are defined: 'WIN32'.
- ./sys/winnt/winnt.c:274 [error] - Invalid number of character ({) when these macros are defined: 'WIN32;WIZARD'.
- ./sys/winnt/winnt.c:274 [error] - Invalid number of character ({) when these macros are defined: 'WIN32;__CYGWIN__'.
- ./util/lev_main.c:1142 [error] - Possible null pointer dereference: m - otherwise it is redundant to check if m is null at line 1156
- ./util/lev_main.c:1143 [error] - Possible null pointer dereference: m - otherwise it is redundant to check if m is null at line 1156
- ./util/lev_main.c:1182 [error] - Possible null pointer dereference: o - otherwise it is redundant to check if o is null at line 1190
- ./util/lev_main.c:1216 [error] - Possible null pointer dereference: e - otherwise it is redundant to check if e is null at line 1222
- ./util/lev_main.c:1318 [error] - Possible null pointer dereference: l - otherwise it is redundant to check if l is null at line 1326
- ./util/lev_main.c:1335 [error] - Possible null pointer dereference: l - otherwise it is redundant to check if l is null at line 1343
- ./util/lev_main.c:1257 [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:702 [possible error] - Memory leak: grid
- ./win/Qt/qt_win.cpp:1176 [possible error] - Memory leak: l
- ./win/Qt/qt_win.cpp:1176 [possible error] - Memory leak: vbgb
- ./win/Qt/qt_win.cpp:1176 [possible error] - Memory leak: vbab
- ./win/Qt/qt_win.cpp:3277 [possible error] - Memory leak: hb
- ./win/Qt/qt_win.cpp:4199 [possible error] - Memory leak: q
- ./win/Qt/qt_win.cpp:4214 [possible error] - Memory leak: button
- ./win/Qt/qt_win.cpp:4575 [possible error] - Memory leak: lsplash
- ./win/Qt/qt_win.cpp:4575 [possible error] - Memory leak: capt
- ./win/Qt/qt_win.cpp:4667 [possible error] - Memory leak: vbl
- ./win/Qt/qt_win.cpp:4894 [possible error] - Memory leak: window
- ./win/Qt/qt_win.cpp:5143 [possible error] - Memory leak: l
- ./win/Qt/qt_win.cpp:5143 [possible error] - Memory leak: bl
- ./win/Qt/tileedit.cpp:311 [possible error] - Mismatching allocation and deallocation: TilePalette::rgb
- ./win/gtk/gtk.c:1434 [possible error] - Memory leak: rc_file
- ./win/gtk/gtktile.c:494 [error] - Uninitialized variable: retval
- ./win/gtk/panic.c:57 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./win/gtk/panic.c:57 [error] - Invalid number of character ({) when these macros are defined: 'AZTEC'.
- ./win/gtk/panic.c:57 [error] - Invalid number of character ({) when these macros are defined: 'SYSV'.
- ./win/gtk/panic.c:57 [error] - Invalid number of character ({) when these macros are defined: 'VMS'.
- ./win/proxy/nhextxdr.c:209 [error] - Uninitialized variable: retval
- ./win/share/gifread.c:777 [possible error] - Resource leak: fp
- ./win/share/txtfilt.c:143 [error] - Resource leak: fp
- ./win/win32/nhprocs.c:678 [error] - Null pointer dereference
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 06:02:22 +0000, based on results by cppcheck 1.41-modif