cppcheck analysis of mplayer_1.0~rc3+svn20090405-1.dsc
- ./TOOLS/asfinfo.c:271 [error] - Resource leak: f
- ./TOOLS/avisubdump.c:181 [error] - Resource leak: f
- ./TOOLS/bmovl-test.c:119 [error] - Resource leak: fifo
- ./TOOLS/movinfo.c:340 [error] - Resource leak: f
- ./TOOLS/vivodump.c:187 [error] - Resource leak: f
- ./drivers/tdfx_vid_test.c:58 [error] - Resource leak: fd
- ./gui/bitmap.c:47 [error] - Resource leak: fp
- ./gui/skin/font.c:122 [error] - Resource leak: f
- ./gui/win32/skinload.c:548 [error] - Memory leak: filename
- ./gui/win32/skinload.c:548 [error] - Memory leak: tmp
- ./gui/win32/skinload.c:548 [error] - Memory leak: desc
- ./gui/win32/skinload.c:640 [error] - Memory leak: filename
- ./gui/win32/skinload.c:640 [error] - Memory leak: tmp
- ./gui/win32/skinload.c:640 [possible error] - Memory leak: desc
- ./libao2/ao_oss.c:228 [error] - Resource leak: fd
- ./libavcodec/g729dec.c:125 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./libavcodec/g729dec.c:125 [error] - Invalid number of character ({) when these macros are defined: 'ALT_BITSTREAM_READER_LE'.
- ./libavcodec/g729dec.c:125 [error] - Invalid number of character ({) when these macros are defined: 'ALT_BITSTREAM_WRITER'.
- ./libavcodec/g729dec.c:125 [error] - Invalid number of character ({) when these macros are defined: 'ALT_BITSTREAM_WRITER;ALIGNED_BITSTREAM_WRITER'.
- ./libavcodec/g729dec.c:125 [error] - Invalid number of character ({) when these macros are defined: 'ALT_BITSTREAM_WRITER;ALIGNED_BITSTREAM_WRITER;ARCH_X86'.
- ./libavcodec/g729dec.c:125 [error] - Invalid number of character ({) when these macros are defined: 'ALT_BITSTREAM_WRITER;ARCH_X86'.
- ./libavcodec/g729dec.c:125 [error] - Invalid number of character ({) when these macros are defined: 'ALT_BITSTREAM_WRITER;BITSTREAM_WRITER_LE'.
- ./libavcodec/g729dec.c:125 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_ARM'.
- ./libavcodec/g729dec.c:125 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_ARM;HAVE_NEON'.
- ./libavcodec/g729dec.c:125 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_PPC'.
- ./libavcodec/g729dec.c:125 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_X86'.
- ./libavcodec/g729dec.c:125 [error] - Invalid number of character ({) when these macros are defined: 'BITSTREAM_WRITER_LE'.
- ./libavcodec/h263.c:4619 [error] - Uninitialized variable: level
- ./libavcodec/iirfilter.c:126 [possible error] - Array 'x[1]' index 1 out of bounds
- ./libavcodec/iirfilter.c:126 [possible error] - Array 'x[1]' index 2 out of bounds
- ./libavcodec/iirfilter.c:126 [possible error] - Array 'x[1]' index 3 out of bounds
- ./libavcodec/iirfilter.c:127 [possible error] - Array 'x[1]' index 1 out of bounds
- ./libavcodec/iirfilter.c:127 [possible error] - Array 'x[1]' index 2 out of bounds
- ./libavcodec/iirfilter.c:127 [possible error] - Array 'x[1]' index 3 out of bounds
- ./libavcodec/iirfilter.c:128 [possible error] - Array 'x[1]' index 2 out of bounds
- ./libavcodec/iirfilter.c:128 [possible error] - Array 'x[1]' index 3 out of bounds
- ./libavcodec/iirfilter.c:128 [possible error] - Array 'x[1]' index 1 out of bounds
- ./libavcodec/iirfilter.c:129 [possible error] - Array 'x[1]' index 3 out of bounds
- ./libavcodec/iirfilter.c:129 [possible error] - Array 'x[1]' index 1 out of bounds
- ./libavcodec/iirfilter.c:129 [possible error] - Array 'x[1]' index 2 out of bounds
- ./libavcodec/mdct.c:51 [error] - Array 'ff_sine_128[128]' index 128 out of bounds
- ./libavcodec/mdct.c:52 [error] - Array 'ff_sine_256[256]' index 256 out of bounds
- ./libavcodec/mdct.c:53 [error] - Array 'ff_sine_512[512]' index 512 out of bounds
- ./libavcodec/mdct.c:54 [error] - Array 'ff_sine_1024[1024]' index 1024 out of bounds
- ./libavcodec/mdct.c:55 [error] - Array 'ff_sine_2048[2048]' index 2048 out of bounds
- ./libavcodec/mdct.c:56 [error] - Array 'ff_sine_4096[4096]' index 4096 out of bounds
- ./libavcodec/x86/dsputil_mmx.c:74 [error] - Array 'ff_pd_1[2]' index 2 out of bounds
- ./libavcodec/x86/dsputil_mmx.c:75 [error] - Array 'ff_pd_2[2]' index 2 out of bounds
- ./libdvdnav/searching.c:621 [possible error] - Memory leak: tmp
- ./libdvdnav/vm/vm.c:213 [error] - Deallocating a deallocated pointer: fd
- ./libdvdread4/dvd_udf.c:241 [error] - Memory leak: c
- ./libdvdread4/dvd_udf.c:575 [error] - Memory leak: cached_dir_base
- ./libfaad2/sbr_noise.h:32 [error] - Invalid number of character ({) when these macros are defined: 'DRM_PS;__cplusplus'.
- ./libfaad2/sbr_qmf_c.h:32 [error] - Invalid number of character ({) when these macros are defined: 'DRM_PS;__cplusplus'.
- ./libmpcodecs/ad_libdca.c:252 [error] - Uninitialized variable: flags
- ./libmpcodecs/ad_speex.c:44 [error] - Memory leak: ctx
- ./libmpcodecs/ae_toolame.c:169 [error] - Memory leak: ctx
- ./libmpcodecs/ae_twolame.c:159 [error] - Memory leak: ctx
- ./libmpcodecs/vf_remove_logo.c:544 [error] - Resource leak: input
- ./libmpdemux/demux_gif.c:246 [possible error] - Memory leak: priv
- ./libmpdemux/demux_mf.c:48 [error] - Resource leak: f
- ./libmpdemux/demux_rawdv.c:150 [error] - Memory leak: frames
- ./libmpdemux/demux_ty_osd.c:709 [error] - Undefined behaviour: line 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.
- ./libmpdemux/demux_ty_osd.c:713 [error] - Undefined behaviour: line 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.
- ./libmpdemux/demux_ty_osd.c:722 [error] - Undefined behaviour: line 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.
- ./libmpdemux/demux_ty_osd.c:726 [error] - Undefined behaviour: line 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.
- ./libmpdemux/demux_ty_osd.c:728 [error] - Undefined behaviour: line 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.
- ./libmpdemux/demux_ty_osd.c:730 [error] - Undefined behaviour: line 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.
- ./libmpdemux/demux_ty_osd.c:732 [error] - Undefined behaviour: line 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.
- ./libmpdemux/demux_ty_osd.c:809 [error] - Undefined behaviour: line 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.
- ./libmpdemux/demux_ty_osd.c:812 [error] - Undefined behaviour: line 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.
- ./libmpdemux/demux_ty_osd.c:813 [error] - Undefined behaviour: line 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.
- ./libmpdemux/demux_ty_osd.c:816 [error] - Undefined behaviour: line 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.
- ./libmpdemux/demux_ty_osd.c:826 [error] - Undefined behaviour: line 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.
- ./libmpdemux/demux_ty_osd.c:827 [error] - Undefined behaviour: line 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.
- ./libswscale/swscale-example.c:209 [possible error] - Memory leak: rgb_data
- ./libswscale/swscale-example.c:209 [possible error] - Memory leak: data
- ./libvo/gl_common.c:450 [error] - Memory leak: data
- ./libvo/vo_dxr2.c:335 [possible error] - Memory leak: img
- ./libvo/vo_dxr2.c:920 [error] - Memory leak: uCode
- ./libvo/vo_wii.c:247 [possible error] - Resource leak: vt_fd
- ./loader/dmo/DMO_AudioDecoder.c:92 [error] - Memory leak: this.m_sVhdr
- ./loader/dmo/DMO_AudioDecoder.c:92 [error] - Memory leak: this.m_sVhdr2
- ./loader/dshow/DS_AudioDecoder.c:100 [error] - Memory leak: this.m_sVhdr
- ./loader/dshow/DS_AudioDecoder.c:100 [error] - Memory leak: this.m_sVhdr2
- ./mp3lib/test.c:71 [error] - Resource leak: f
- ./mp3lib/test2.c:69 [error] - Resource leak: audio_fd
- ./mplayer.c:494 [error] - Buffer access out-of-bounds
- ./stream/cookies.c:112 [error] - Resource leak: fd
- ./stream/cookies.c:129 [error] - Memory leak: buffer
- ./stream/http.c:481 [error] - Memory leak: uri
- ./stream/stream_cue.c:428 [possible error] - Memory leak: s
- ./stream/stream_netstream.h:103 [error] - Memory leak: pack
- ./stream/stream_radio.c:1145 [error] - Memory leak: priv
- ./stream/tvi_dshow.c:476 [error] - Uninitialized variable: pBN
- ./stream/tvi_dshow.c:602 [error] - Uninitialized variable: buf
- ./stream/tvi_dshow.c:964 [error] - Uninitialized variable: pKSProp
- ./stream/tvi_dshow.c:1135 [error] - Uninitialized variable: pKSProp
- ./stream/tvi_dshow.c:1881 [error] - Uninitialized variable: pPropBag
- ./subreader.c:992 [possible error] - Dangerous usage of strncat. Tip: the 3rd parameter means maximum number of characters to append
- ./subreader.c:1710 [possible error] - Memory leak: sub
- ./vidix/sysdep/pci_linux.c:190 [possible error] - Resource leak: fd
- ./vidix/sysdep/pci_linux.c:215 [possible error] - Resource leak: fd
- ./vidix/sh_veu_vid.c:155 [error] - Resource leak: fd
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:58:51 +0000, based on results by cppcheck 1.41-modif