There are 155 total results
2 errors, 17 warnings, 26 performance, 2 portability,
0 information, 108 style
MythTV

cppcheck Report


Columns are sortable
# Severity Description File
1 1 error  Memory leak: cl mythtv/libs/libmythtv/recorders/vbitext/vbi.c:455
2 1 error  Possible null pointer dereference: filestack - otherwise it is redundant to check it against null. mythtv/libs/libmythui/lirc_client.c:1009
mythtv/libs/libmythui/lirc_client.c:1003
3 2 warning  Possible leak in public function. The pointer ' m_browser' is not deallocated before it is allocated. mythplugins/mythbrowser/mythbrowser/mythflashplayer.cpp:48
4 2 warning  Possible leak in public function. The pointer ' m_gameTree' is not deallocated before it is allocated. mythplugins/mythgame/mythgame/gameui.cpp:105
5 2 warning  Redundant assignment of ' node' to itself. mythplugins/mythmusic/mythmusic/visualize.cpp:1614
6 2 warning  Casting between integer* and float* which have an incompatible binary data representation. mythtv/libs/libmyth/audio/audiooutputjack.cpp:404
7 2 warning  Member variable ' MythCoreContextPrivate::pluginmanager' is not initialized in the constructor. mythtv/libs/libmythbase/mythcorecontext.cpp:97
8 2 warning  Member variable ' ATSCEvent::desc' is not initialized in the constructor. mythtv/libs/libmythtv/eithelper.h:27
9 2 warning  Member variable ' RecordingInfo::future' is not assigned a value in ' RecordingInfo::operator=' . mythtv/libs/libmythtv/recordinginfo.h:198
10 2 warning  Member variable ' RecordingInfo::schedorder' is not assigned a value in ' RecordingInfo::operator=' . mythtv/libs/libmythtv/recordinginfo.h:198
11 2 warning  Member variable ' RecordingInfo::desiredrecstartts' is not assigned a value in ' RecordingInfo::operator=' . mythtv/libs/libmythtv/recordinginfo.h:198
12 2 warning  Member variable ' RecordingInfo::desiredrecendts' is not assigned a value in ' RecordingInfo::operator=' . mythtv/libs/libmythtv/recordinginfo.h:198
13 2 warning  Member variable ' ScreenWizard::m_blackout' is not initialized in the constructor. mythtv/programs/mythscreenwizard/screenwizard.cpp:24
14 2 warning  Member variable ' ScreenWizard::m_preview' is not initialized in the constructor. mythtv/programs/mythscreenwizard/screenwizard.cpp:24
15 2 warning  Member variable ' ScreenWizard::m_size' is not initialized in the constructor. mythtv/programs/mythscreenwizard/screenwizard.cpp:24
16 2 warning  Member variable ' ScreenWizard::m_offsets' is not initialized in the constructor. mythtv/programs/mythscreenwizard/screenwizard.cpp:24
17 2 warning  Member variable ' ScreenWizard::m_changeamount' is not initialized in the constructor. mythtv/programs/mythscreenwizard/screenwizard.cpp:24
18 2 warning  Member variable ' ScreenWizard::OKButton' is not initialized in the constructor. mythtv/programs/mythscreenwizard/screenwizard.cpp:24
19 2 warning  Member variable ' ScreenWizard::updateButton' is not initialized in the constructor. mythtv/programs/mythscreenwizard/screenwizard.cpp:24
20 3 performance  Variable ' m_CDdevice' is assigned in constructor body. Consider performing initialization in initialization list. mythplugins/mythmusic/mythmusic/cdrip.cpp:1406
21 3 performance  Function parameter ' s' should be passed by reference. mythplugins/mythzoneminder/mythzmserver/zmserver.cpp:344
22 3 performance  Function parameter ' s' should be passed by reference. mythplugins/mythzoneminder/mythzmserver/zmserver.cpp:362
23 3 performance  Variable ' message' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythbase/mythevent.h:25
24 3 performance  Variable ' message' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythbase/mythevent.h:33
25 3 performance  Variable ' extradata' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythbase/mythevent.h:34
26 3 performance  Variable ' message' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythbase/mythevent.h:40
27 3 performance  Variable ' message' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythbase/mythevent.h:48
28 3 performance  Variable ' extradata' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythbase/mythevent.h:49
29 3 performance  Variable ' message' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythbase/mythevent.h:56
30 3 performance  Variable ' m_uuid' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythbase/hardwareprofile.cpp:25
31 3 performance  Variable ' name' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythbase/lcddevice.h:28
32 3 performance  Variable ' itemText' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythbase/lcddevice.h:69
33 3 performance  Variable ' itemScreen' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythbase/lcddevice.h:70
34 3 performance  Variable ' itemWidget' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythbase/lcddevice.h:71
35 3 performance  Variable ' m_query' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythbase/loggingserver.cpp:414
36 3 performance  Variable ' m_name' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythbase/mythdbcon.cpp:73
37 3 performance  Variable ' m_DevicePath' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythbase/mythmedia.cpp:71
38 3 performance  Variable ' frameheader' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythtv/nuppeldecoder.h:26
39 3 performance  Variable ' db_all_channels' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythtv/tvbrowsehelper.cpp:47
40 3 performance  Variable ' m_position' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythui/mythgesture.h:93
41 3 performance  Variable ' drawArea' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythui/mythuiguidegrid.h:84
42 3 performance  Variable ' title' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythui/mythuiguidegrid.h:85
43 3 performance  Variable ' category' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythui/mythuiguidegrid.h:86
44 3 performance  Variable ' categoryColor' is assigned in constructor body. Consider performing initialization in initialization list. mythtv/libs/libmythui/mythuiguidegrid.h:87
45 3 performance  Buffer ' t' is being written before its old content has been used. mythtv/programs/mythtranscode/replex/replex.c:990
mythtv/programs/mythtranscode/replex/replex.c:988
46 4 portability  scanf without field width limits can crash with huge input data on some versions of libc. mythtv/libs/libmythtv/netstream.cpp:263
47 4 portability  scanf without field width limits can crash with huge input data on some versions of libc. mythtv/libs/libmythtv/netstream.cpp:282
48 6 style  ' class ImageView' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. mythplugins/mythgallery/mythgallery/imageview.h:35
49 6 style  Unused variable: label mythplugins/mythmusic/mythmusic/cdrip.cpp:675
50 6 style  Unused variable: tmptitle mythplugins/mythmusic/mythmusic/cdrip.cpp:1119
51 6 style  ' class Recycler' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. mythplugins/mythmusic/mythmusic/recycler.h:16
52 6 style  Variable ' allZero' is assigned a value that is never used. mythplugins/mythmusic/mythmusic/visualize.cpp:747
53 6 style  Variable ' icon' is assigned a value that is never used. mythplugins/mythnews/mythnews/mythnews.cpp:192
54 6 style  ' class AudioOutputWinPrivate' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. mythtv/libs/libmyth/audio/audiooutputwin.cpp:48
55 6 style  ' class XMLParse' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. mythtv/libs/libmyth/xmlparse.h:12
56 6 style  Unused variable: pubuuid mythtv/libs/libmythbase/hardwareprofile.cpp:102
57 6 style  Unused variable: tempString mythtv/libs/libmythbase/lcddevice.cpp:268
58 6 style  Variable ' string' is assigned a value that is never used. mythtv/libs/libmythbase/logging.cpp:739
59 6 style  Class ' LoggingItem' is unsafe, ' LoggingItem::m_file' can leak by wrong usage. mythtv/libs/libmythbase/logging.h:144
60 6 style  Class ' LoggingItem' is unsafe, ' LoggingItem::m_function' can leak by wrong usage. mythtv/libs/libmythbase/logging.h:145
61 6 style  Class ' LoggingItem' is unsafe, ' LoggingItem::m_threadName' can leak by wrong usage. mythtv/libs/libmythbase/logging.h:146
62 6 style  Class ' LoggingItem' is unsafe, ' LoggingItem::m_appName' can leak by wrong usage. mythtv/libs/libmythbase/logging.h:147
63 6 style  Class ' LoggingItem' is unsafe, ' LoggingItem::m_table' can leak by wrong usage. mythtv/libs/libmythbase/logging.h:148
64 6 style  Class ' LoggingItem' is unsafe, ' LoggingItem::m_logFile' can leak by wrong usage. mythtv/libs/libmythbase/logging.h:149
65 6 style  Variable ' sendstrlist' is assigned a value that is never used. mythtv/libs/libmythbase/mythcorecontext.cpp:975
66 6 style  Unused variable: filepath mythtv/libs/libmythbase/mythcommandlineparser.cpp:2460
67 6 style  ' class MythDB' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. mythtv/libs/libmythbase/mythdb.h:14
68 6 style  Variable ' locerr' is assigned a value that is never used. mythtv/libs/libmythbase/system-windows.cpp:585
69 6 style  ' class UnZip' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. mythtv/libs/libmythbase/unzip.h:47
70 6 style  Found duplicate branches for ' if' and ' else' . mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp:1146
mythtv/libs/libmythtv/HLS/httplivestreambuffer.cpp:1151
71 6 style  Variable ' position' is assigned a value that is never used. mythtv/libs/libmythtv/eitfixup.cpp:1557
72 6 style  Variable ' position' is assigned a value that is never used. mythtv/libs/libmythtv/eitfixup.cpp:1874
73 6 style  Variable ' position' is assigned a value that is never used. mythtv/libs/libmythtv/eitfixup.cpp:1968
74 6 style  ' class FIFOWriter' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. mythtv/libs/libmythtv/fifowriter.h:30
75 6 style  Found duplicate branches for ' if' and ' else' . mythtv/libs/libmythtv/mhegic.cpp:55
mythtv/libs/libmythtv/mhegic.cpp:57
76 6 style  ' class H264Parser' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. mythtv/libs/libmythtv/mpeg/H264Parser.h:53
77 6 style  Unused variable: _ptrs mythtv/libs/libmythtv/mpeg/mpegtables.cpp:293
78 6 style  ' class MythPlayer' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. mythtv/libs/libmythtv/mythplayer.h:113
79 6 style  Variable ' dtm' is assigned a value that is never used. mythtv/libs/libmythtv/previewgenerator.cpp:196
80 6 style  ' class VDALibrary' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. mythtv/libs/libmythtv/privatedecoder_vda.h:17
81 6 style  A pointer can not be negative so it is either pointless or an error to check if it is. mythtv/libs/libmythtv/recorders/NuppelVideoRecorder.cpp:1245
82 6 style  Variable ' videofd' is assigned a value that is never used. mythtv/libs/libmythtv/recorders/analogsignalmonitor.cpp:32
83 6 style  Variable ' chk' is assigned a value that is never used. mythtv/libs/libmythtv/recorders/audioinputoss.cpp:136
84 6 style  Variable ' chk' is assigned a value that is never used. mythtv/libs/libmythtv/recorders/audioinputoss.cpp:171
85 6 style  Variable ' chk' is assigned a value that is never used. mythtv/libs/libmythtv/recorders/audioinputoss.cpp:190
86 6 style  Variable ' chk' is assigned a value that is never used. mythtv/libs/libmythtv/recorders/audioinputoss.cpp:209
87 6 style  Variable ' bufptr' is assigned a value that is never used. mythtv/libs/libmythtv/recorders/audioinputoss.cpp:240
88 6 style  Variable ' chk' is assigned a value that is never used. mythtv/libs/libmythtv/recorders/audioinputoss.cpp:259
89 6 style  ' class DFDPriv' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. mythtv/libs/libmythtv/recorders/darwinfirewiredevice.cpp:74
90 6 style  Redundant condition: If diff < 0, the comparison diff < -900000 is always true. mythtv/libs/libmythtv/recorders/dtvrecorder.cpp:632
91 6 style  Variable ' started' is assigned a value that is never used. mythtv/libs/libmythtv/recorders/mpegrecorder.cpp:1307
92 6 style  Variable ' stopped' is assigned a value that is never used. mythtv/libs/libmythtv/recorders/mpegrecorder.cpp:1351
93 6 style  Variable ' seperation' is assigned a value that is never used. mythtv/libs/libmythtv/teletextscreen.cpp:456
94 6 style  Variable ' flash' is assigned a value that is never used. mythtv/libs/libmythtv/teletextscreen.cpp:427
95 6 style  Variable ' blink' is assigned a value that is never used. mythtv/libs/libmythtv/teletextscreen.cpp:377
96 6 style  Variable ' ok' is assigned a value that is never used. mythtv/libs/libmythtv/videoout_nullvaapi.cpp:76
97 6 style  ' class VideoOutput' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. mythtv/libs/libmythtv/videooutbase.h:45
98 6 style  Variable ' p' is assigned a value that is never used. mythtv/libs/libmythtv/yuv2rgb.cpp:706
99 6 style  Variable ' token3' is assigned a value that is never used. mythtv/libs/libmythui/lirc_client.c:1098
100 6 style  Consecutive return, break, continue, goto or throw statements are unnecessary. mythtv/libs/libmythui/mythgenerictree.cpp:50
101 6 style  Same expression on both sides of ' ||' . mythtv/libs/libmythui/mythrender_opengl.cpp:355
mythtv/libs/libmythui/mythrender_opengl.cpp:355
102 6 style  Same expression on both sides of ' ||' . mythtv/libs/libmythui/mythrender_opengl.cpp:1314
mythtv/libs/libmythui/mythrender_opengl.cpp:1314
103 6 style  Unused variable: filename mythtv/libs/libmythui/myththemedmenu.cpp:848
104 6 style  Variable ' basename' is assigned a value that is never used. mythtv/libs/libmythui/mythuiwebbrowser.cpp:615
105 6 style  Variable ' basename' is assigned a value that is never used. mythtv/libs/libmythui/mythuiwebbrowser.cpp:685
106 6 style  ' class ScreenSaverX11Private' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. mythtv/libs/libmythui/screensaver-x11.cpp:26
107 6 style  Variable ' consumed' is assigned a value that is never used. mythtv/libs/libmythupnp/bufferedsocketdevice.cpp:312
108 6 style  ' class BufferedSocketDevice' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. mythtv/libs/libmythupnp/bufferedsocketdevice.h:38
109 6 style  Variable ' bFound' is assigned a value that is never used. mythtv/libs/libmythupnp/serverSideScripting.cpp:123
110 6 style  Variable ' fileprefix' is assigned a value that is never used. mythtv/programs/mythbackend/autoexpire.cpp:664
111 6 style  Unused variable: querystr mythtv/programs/mythbackend/housekeeper.cpp:672
112 6 style  ' class HouseKeeper' does not have a copy constructor which is recommended since the class contains a pointer to allocated memory. mythtv/programs/mythbackend/housekeeper.h:39
113 6 style  Unused variable: dirs mythtv/programs/mythbackend/httpstatus.cpp:441
114 6 style  Variable ' hostname' is assigned a value that is never used. mythtv/programs/mythbackend/httpstatus.cpp:460
115 6 style  Variable ' isLocalstr' is assigned a value that is never used. mythtv/programs/mythbackend/httpstatus.cpp:462
116 6 style  Unused variable: ids mythtv/programs/mythbackend/httpstatus.cpp:446
117 6 style  Unused variable: sDeviceType mythtv/programs/mythbackend/mediaserver.cpp:95
118 6 style  Variable ' logInfo' is assigned a value that is never used. mythtv/programs/mythbackend/mainserver.cpp:1963
119 6 style  Variable ' name' is assigned a value that is never used. mythtv/programs/mythbackend/mainserver.cpp:1967
120 6 style  Variable ' logInfo' is assigned a value that is never used. mythtv/programs/mythbackend/mainserver.cpp:2654
121 6 style  Variable ' pbshost' is assigned a value that is never used. mythtv/programs/mythbackend/mainserver.cpp:3554
122 6 style  Variable ' enchost' is assigned a value that is never used. mythtv/programs/mythbackend/mainserver.cpp:3572
123 6 style  Variable ' pbshost' is assigned a value that is never used. mythtv/programs/mythbackend/mainserver.cpp:3695
124 6 style  Unused variable: enchost mythtv/programs/mythbackend/mainserver.cpp:3702
125 6 style  Unused variable: driveKey mythtv/programs/mythbackend/mainserver.cpp:4444
126 6 style  Unused variable: pbsHost mythtv/programs/mythbackend/mainserver.cpp:4538
127 6 style  Unused variable: querytext mythtv/programs/mythbackend/mainserver.cpp:6110
128 6 style  Variable ' qtitle' is assigned a value that is never used. mythtv/programs/mythbackend/scheduler.cpp:3878
129 6 style  Unused variable: dirKey mythtv/programs/mythbackend/scheduler.cpp:4555
130 6 style  Unused variable: strlist mythtv/programs/mythbackend/scheduler.cpp:4556
131 6 style  Variable ' sRating' is assigned a value that is never used. mythtv/programs/mythbackend/upnpcdsvideo.cpp:248
132 6 style  Variable ' flagFPS' is assigned a value that is never used. mythtv/programs/mythcommflag/ClassicCommDetector.cpp:591
133 6 style  Variable ' lastScore' is assigned a value that is never used. mythtv/programs/mythcommflag/ClassicCommDetector.cpp:1802
134 6 style  Variable ' lastFrameWasBlank' is assigned a value that is never used. mythtv/programs/mythcommflag/ClassicCommDetector.cpp:1301
135 6 style  Variable ' prevpercent' is assigned a value that is never used. mythtv/programs/mythcommflag/CommDetector2.cpp:470
136 6 style  Variable ' framesToProcess' is assigned a value that is never used. mythtv/programs/mythcommflag/PrePostRollFlagger.cpp:194
137 6 style  Variable ' nn' is assigned a value that is never used. mythtv/programs/mythcommflag/pgm.cpp:71
138 6 style  Variable ' bDTS' is assigned a value that is never used. mythtv/programs/mythfrontend/audiogeneralsettings.cpp:305
139 6 style  Unused variable: sit mythtv/programs/mythfrontend/programrecpriority.cpp:1346
140 6 style  Variable ' bDTS' is assigned a value that is never used. mythtv/programs/mythfrontend/setupwizard_audio.cpp:248
141 6 style  Variable ' handled' is assigned a value that is never used. mythtv/programs/mythfrontend/videodlg.cpp:635
142 6 style  Unused variable: prefix_tree_map mythtv/programs/mythfrontend/videolist.cpp:641
143 6 style  Unused variable: gtnm mythtv/programs/mythfrontend/videolist.cpp:948
144 6 style  Variable ' err' is assigned a value that is never used. mythtv/programs/mythtranscode/main.cpp:947
145 6 style  Variable ' len' is assigned a value that is never used. mythtv/programs/mythtranscode/replex/avi.c:66
146 6 style  Variable ' r' is assigned a value that is never used. mythtv/programs/mythtranscode/replex/element.c:372
147 6 style  Variable ' l' is assigned a value that is never used. mythtv/programs/mythtranscode/replex/element.c:404
148 6 style  Variable ' set_ok' is assigned a value that is never used. mythtv/programs/mythtranscode/replex/multiplex.c:556
149 6 style  Variable ' pos' is assigned a value that is never used. mythtv/programs/mythtranscode/replex/ts.c:454
150 6 style  Variable ' hour' is assigned a value that is never used. mythtv/programs/mythtranscode/replex/replex.c:667
151 6 style  Variable ' min' is assigned a value that is never used. mythtv/programs/mythtranscode/replex/replex.c:668
152 6 style  Variable ' sec' is assigned a value that is never used. mythtv/programs/mythtranscode/replex/replex.c:670
153 6 style  Variable ' len' is assigned a value that is never used. mythtv/programs/mythtranscode/replex/replex.c:1415
154 6 style  Variable ' c' is assigned a value that is never used. mythtv/programs/mythtranscode/replex/replex.c:1446
155 6 style  Variable ' scans' is assigned a value that is never used. mythtv/programs/mythtv-setup/main.cpp:496

cppcheck version - 1.58
Updated 19 May 2013 14:14:53 GMT