cppcheck analysis of mplayer_1.0~rc4.dfsg1-1.dsc
- ./TOOLS/asfinfo.c:287 [error] - Resource leak: f
- ./TOOLS/avisubdump.c:194 [error] - Resource leak: f
- ./TOOLS/bmovl-test.c:135 [error] - Resource leak: fifo
- ./TOOLS/movinfo.c:355 [error] - Resource leak: f
- stream/stream_netstream.h:112 [error] - Common realloc mistake: "pack" nulled but not freed upon failure
- stream/stream_netstream.h:118 [error] - Memory leak: pack
- ./TOOLS/vivodump.c:203 [error] - Resource leak: f
- ./TOOLS/vivodump.c:313 [error] - Resource leak: f
- ./drivers/tdfx_vid_test.c:58 [error] - Resource leak: fd
- ./gui/bitmap.c:47 [error] - Resource leak: fp
- ./gui/interface.c:454 [error] - Common realloc mistake: "vf_settings" nulled but not freed upon failure
- ./gui/mplayer/gtk/pl.c:290 [error] - Common realloc mistake: "CLListSelected" nulled but not freed upon failure
- ./gui/skin/font.c:122 [error] - Resource leak: f
- ./gui/win32/gui.c:1549 [error] - Memory leak: skinName
- ./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 [error] - Memory leak: desc
- ./input/lirc.c:99 [error] - Common realloc mistake: "cmd_buf" nulled but not freed upon failure
- ./libaf/af_ladspa.c:541 [error] - Memory leak: buf
- ./libass/ass_mp.c:245 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./libass/ass_mp.c:256 [error] - Common realloc mistake: "buf" nulled but not freed upon failure
- ./libass/ass_render.c:2613 [error] - Uninitialized variable: next2
- ./libavcodec/dca.c:918 [error] - Uninitialized variable: la_subband_samples
- ./libavcodec/dca.c:919 [error] - Uninitialized variable: la_block
- ./libavcodec/dnxhdenc.c:401 [error] - Uninitialized variable: la_block
- ./libavcodec/dsputil.c:3477 [error] - Uninitialized variable: la_temp
- ./libavcodec/dsputil.c:3541 [error] - Uninitialized variable: la_temp
- ./libavcodec/dsputil.c:3557 [error] - Uninitialized variable: la_temp
- ./libavcodec/dsputil.c:3581 [error] - Uninitialized variable: la_temp
- ./libavcodec/dsputil.c:3582 [error] - Uninitialized variable: la_lsrc1
- ./libavcodec/dsputil.c:3583 [error] - Uninitialized variable: la_lsrc2
- ./libavcodec/dsputil.c:3657 [error] - Uninitialized variable: la_temp
- ./libavcodec/dv.c:483 [error] - Uninitialized variable: la_sblock
- ./libavcodec/dv.c:484 [error] - Uninitialized variable: la_mb_bit_buffer
- ./libavcodec/dv.c:485 [error] - Uninitialized variable: la_vs_bit_buffer
- ./libavcodec/dv.c:784 [error] - Uninitialized variable: la_blk
- ./libavcodec/ffv1.c:903 [error] - Array index -1 is out of bounds
- ./libavcodec/ffv1.c:942 [error] - Array index -1 is out of bounds
- ./libavcodec/g729dec.c:195 [error] - Invalid number of character ({) when these macros are defined: ''.
- ./libavcodec/g729dec.c:195 [error] - Invalid number of character ({) when these macros are defined: 'ALT_BITSTREAM_READER_LE'.
- ./libavcodec/g729dec.c:195 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_ARM'.
- ./libavcodec/g729dec.c:195 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_ARM;HAVE_ARMV5TE;HAVE_INLINE_ASM'.
- ./libavcodec/g729dec.c:195 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_ARM;HAVE_ARMV6;HAVE_AV_CONFIG_H;HAVE_INLINE_ASM'.
- ./libavcodec/g729dec.c:195 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_ARM;HAVE_ARMV6;HAVE_INLINE_ASM'.
- ./libavcodec/g729dec.c:195 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_ARM;HAVE_ARMV6;__ARMCC_VERSION'.
- ./libavcodec/g729dec.c:195 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_ARM;HAVE_AV_CONFIG_H'.
- ./libavcodec/g729dec.c:195 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_ARM;HAVE_AV_CONFIG_H;HAVE_INLINE_ASM'.
- ./libavcodec/g729dec.c:195 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_ARM;HAVE_INLINE_ASM'.
- ./libavcodec/g729dec.c:195 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_ARM;HAVE_NEON'.
- ./libavcodec/g729dec.c:195 [error] - Invalid number of character ({) when these macros are defined: 'ARCH_ARM;__ARMCC_VERSION'.
- ./libavcodec/gif.c:109 [error] - Uninitialized variable: len
- ./libavcodec/h264_loopfilter.c:371 [error] - Uninitialized variable: la_bS
- ./libavcodec/h264_loopfilter.c:514 [error] - Uninitialized variable: bS
- ./libavcodec/h264_loopfilter.c:518 [error] - Uninitialized variable: bS
- ./libavcodec/h264_loopfilter.c:524 [error] - Uninitialized variable: bS
- ./libavcodec/h264_loopfilter.c:483 [error] - Uninitialized variable: bS
- ./libavcodec/indeo3.c:90 [error] - Array 'corrector_type_2[8]' index -248 out of bounds
- ./libavcodec/ituh263dec.c:566 [error] - Uninitialized variable: la_dblock
- ./libavcodec/mpegvideo_enc.c:3323 [error] - Uninitialized variable: la_d1
- ./libavcodec/vaapi.c:91 [error] - Possible null pointer dereference: slice_buf_ids - otherwise it is redundant to check if slice_buf_ids is null at line 92
- ./libavcodec/vp3.c:1343 [error] - Uninitialized variable: la_block
- ./libavcodec/x86/vc1dsp_mmx.c:463 [error] - Uninitialized variable: tmp
- ./libavcodec/x86/vc1dsp_mmx.c:464 [error] - Uninitialized variable: tmp
- ./libavformat/iss.c:76 [error] - Uninitialized variable: token
- ./libavformat/iss.c:77 [error] - Uninitialized variable: token
- ./libavformat/mpegts.c:1418 [error] - Uninitialized variable: packet
- ./libdvdnav/vm/vm.c:217 [error] - Deallocating a deallocated pointer: fd
- ./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'.
- ./libmenu/menu.c:201 [error] - Common realloc mistake: "menu_list" nulled but not freed upon failure
- ./libmenu/menu.c:256 [error] - Common realloc mistake: "buffer" nulled but not freed upon failure
- ./libmpcodecs/ad_libdca.c:252 [error] - Uninitialized variable: flags
- ./libmpcodecs/ad_realaud.c:281 [error] - Common realloc mistake: "path" nulled but not freed upon failure
- ./libmpcodecs/ad_speex.c:68 [error] - Memory leak: ctx
- ./libmpcodecs/vd.c:249 [error] - Possible null pointer dereference: vp - otherwise it is redundant to check if vp is null at line 251
- ./libmpcodecs/vf_remove_logo.c:544 [error] - Resource leak: input
- ./libmpcodecs/vf_remove_logo.c:541 [error] - Memory leak: new_pgm
- ./libmpdemux/demux_film.c:131 [error] - Memory leak: dp
- ./libmpdemux/demux_gif.c:171 [error] - Memory leak: dp
- ./libmpdemux/demux_gif.c:263 [error] - Memory leak: priv
- ./libmpdemux/demux_mf.c:65 [error] - Memory leak: dp
- ./libmpdemux/demux_nut.c:250 [error] - Memory leak: dp
- ./libmpdemux/demux_rawdv.c:125 [error] - Memory leak: dp_video
- ./libmpdemux/demux_rawdv.c:164 [error] - Memory leak: frames
- ./libmpdemux/demux_rtp.cpp:404 [error] - Possible null pointer dereference: env
- ./libmpdemux/demux_ts.c:2605 [error] - Memory leak: tss
- ./libmpdemux/demux_ty_osd.c:710 [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:714 [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:723 [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:727 [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:729 [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:731 [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:733 [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:810 [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:814 [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:817 [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.
- ./libmpdemux/demux_ty_osd.c:828 [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/muxer_mpeg.c:353 [error] - Memory leak: tmp
- ./libvo/gl_common.c:616 [error] - Memory leak: data
- ./libvo/vo_dxr2.c:919 [error] - Memory leak: uCode
- ./libvo/vo_dxr3.c:1126 [error] - Memory leak: lut
- ./libvo/vo_fbdev.c:621 [error] - Possible null pointer dereference: red - otherwise it is redundant to check if red is null at line 622
- ./libvo/vo_fbdev.c:629 [error] - Possible null pointer dereference: green - otherwise it is redundant to check if green is null at line 630
- ./libvo/vo_fbdev.c:638 [error] - Possible null pointer dereference: blue - otherwise it is redundant to check if blue is null at line 639
- ./libvo/vo_fbdev2.c:128 [error] - Possible null pointer dereference: red - otherwise it is redundant to check if red is null at line 129
- ./libvo/vo_fbdev2.c:136 [error] - Possible null pointer dereference: green - otherwise it is redundant to check if green is null at line 137
- ./libvo/vo_fbdev2.c:145 [error] - Possible null pointer dereference: blue - otherwise it is redundant to check if blue is null at line 146
- ./libvo/vo_vdpau.c:779 [error] - Common realloc mistake: "index_data" nulled but not freed upon failure
- ./libvo/vo_vdpau.c:896 [error] - Common realloc mistake: "eosd_surfaces" nulled but not freed upon failure
- ./libvo/vo_vdpau.c:897 [error] - Common realloc mistake: "eosd_targets" nulled but not freed upon failure
- ./m_option.c:86 [error] - Common realloc mistake: "p" nulled but not freed upon failure
- ./m_option.c:485 [error] - Common realloc mistake: "lst" nulled but not freed upon failure
- ./m_option.c:1016 [error] - Common realloc mistake: "lst" nulled but not freed upon failure
- ./m_option.c:1696 [error] - Common realloc mistake: "obj_list" nulled but not freed upon failure
- ./m_property.c:186 [error] - Common realloc mistake: "ret" nulled but not freed upon failure
- ./mp3lib/test.c:90 [error] - Resource leak: f
- ./mp3lib/test2.c:89 [error] - Resource leak: audio_fd
- ./mplayer.c:480 [error] - Buffer access out-of-bounds
- ./mplayer.c:3238 [error] - Common realloc mistake: "psub" nulled but not freed upon failure
- ./osdep/macosx_finder_args.c:65 [error] - Common realloc mistake: "parm" nulled but not freed upon failure
- ./parser-mecmd.c:148 [error] - Common realloc mistake: "lst" nulled but not freed upon failure
- ./path.c:127 [error] - Common realloc mistake: "res_url_path" nulled but not freed upon failure
- ./path.c:133 [error] - Common realloc mistake: "bdl_url_path" nulled but not freed upon failure
- ./playtreeparser.c:268 [error] - Common realloc mistake: "e" nulled but not freed upon failure
- ./stream/cookies.c:128 [error] - Resource leak: fd
- ./stream/cookies.c:145 [error] - Memory leak: buffer
- ./stream/http.c:435 [error] - Common realloc mistake: "field" nulled but not freed upon failure
- ./stream/http.c:499 [error] - Memory leak: uri
- ./stream/stream_netstream.h:112 [error] - Common realloc mistake: "pack" nulled but not freed upon failure
- ./stream/stream_netstream.h:118 [error] - Memory leak: pack
- ./stream/stream_radio.c:1145 [error] - Memory leak: priv
- ./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 Tue, 08 Feb 2011 07:00:21 +0000, based on results by cppcheck 1.46