2022-06-22 09:48 ftp://ftp.de.debian.org/debian/pool/main/g/gst-libav1.0/gst-libav1.0_1.20.2.orig.tar.xz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j2 platform: Linux-5.10.0-15-cloud-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.25 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.8 head-info: 650f409 (2022-06-22 08:46:48 +0200) count: 90 90 elapsed-time: 395.5 514.3 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: gst-libav-1.20.2/ext/libav/gstavauddec.c:539:18: style: Expression is always true because 'else if' condition is opposite to previous condition at line 473. [multiCondition] gst-libav-1.20.2/ext/libav/gstavauddec.c:473:11: note: first condition gst-libav-1.20.2/ext/libav/gstavauddec.c:539:18: note: else if condition is opposite to first condition gst-libav-1.20.2/ext/libav/gstavaudenc.c:420:17: style: Variable 'nsamples' is assigned a value that is never used. [unreadVariable] gst-libav-1.20.2/ext/libav/gstavaudenc.c:528:36: style: Variable 'nsamples' is assigned a value that is never used. [unreadVariable] gst-libav-1.20.2/ext/libav/gstavaudenc.c:687:9: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] gst-libav-1.20.2/ext/libav/gstavcfg.c:497:10: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] gst-libav-1.20.2/ext/libav/gstavcfg.c:505:10: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] gst-libav-1.20.2/ext/libav/gstavcfg.c:513:10: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] gst-libav-1.20.2/ext/libav/gstavcfg.c:521:10: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] gst-libav-1.20.2/ext/libav/gstavcfg.c:529:10: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] gst-libav-1.20.2/ext/libav/gstavcfg.c:537:10: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] gst-libav-1.20.2/ext/libav/gstavcfg.c:546:10: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] gst-libav-1.20.2/ext/libav/gstavcfg.c:555:12: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] gst-libav-1.20.2/ext/libav/gstavcfg.c:561:12: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] gst-libav-1.20.2/ext/libav/gstavcfg.c:399:11: style: Variable 'prop_id' is assigned a value that is never used. [unreadVariable] gst-libav-1.20.2/ext/libav/gstavdeinterlace.c:460:47: style:inconclusive: Function 'gst_ffmpegdeinterlace_set_property' argument 1 names different: declaration 'self' definition 'object'. [funcArgNamesDifferent] gst-libav-1.20.2/ext/libav/gstavdeinterlace.c:128:59: note: Function 'gst_ffmpegdeinterlace_set_property' argument 1 names different: declaration 'self' definition 'object'. gst-libav-1.20.2/ext/libav/gstavdeinterlace.c:460:47: note: Function 'gst_ffmpegdeinterlace_set_property' argument 1 names different: declaration 'self' definition 'object'. gst-libav-1.20.2/ext/libav/gstavdeinterlace.c:491:47: style:inconclusive: Function 'gst_ffmpegdeinterlace_get_property' argument 1 names different: declaration 'self' definition 'object'. [funcArgNamesDifferent] gst-libav-1.20.2/ext/libav/gstavdeinterlace.c:130:59: note: Function 'gst_ffmpegdeinterlace_get_property' argument 1 names different: declaration 'self' definition 'object'. gst-libav-1.20.2/ext/libav/gstavdeinterlace.c:491:47: note: Function 'gst_ffmpegdeinterlace_get_property' argument 1 names different: declaration 'self' definition 'object'. gst-libav-1.20.2/ext/libav/gstavdemux.c:1775:74: style:inconclusive: Function 'gst_ffmpegdemux_chain' argument 3 names different: declaration 'buf' definition 'buffer'. [funcArgNamesDifferent] gst-libav-1.20.2/ext/libav/gstavdemux.c:124:37: note: Function 'gst_ffmpegdemux_chain' argument 3 names different: declaration 'buf' definition 'buffer'. gst-libav-1.20.2/ext/libav/gstavdemux.c:1775:74: note: Function 'gst_ffmpegdemux_chain' argument 3 names different: declaration 'buf' definition 'buffer'. gst-libav-1.20.2/ext/libav/gstavdemux.c:1380:12: style: Variable 'res' is assigned a value that is never used. [unreadVariable] gst-libav-1.20.2/ext/libav/gstavviddec.c:956:9: style: Local variable 'c' shadows outer variable [shadowVariable] gst-libav-1.20.2/ext/libav/gstavviddec.c:850:9: note: Shadowed declaration gst-libav-1.20.2/ext/libav/gstavviddec.c:956:9: note: Shadow variable gst-libav-1.20.2/ext/libav/gstavviddec.c:957:9: style: Local variable 'ret' shadows outer variable [shadowVariable] gst-libav-1.20.2/ext/libav/gstavviddec.c:851:17: note: Shadowed declaration gst-libav-1.20.2/ext/libav/gstavviddec.c:957:9: note: Shadow variable gst-libav-1.20.2/tests/check/generic/libavcodec-locking.c:62:7: style: Variable 'ret' is reassigned a value before the old one has been used. [redundantAssignment] gst-libav-1.20.2/tests/check/generic/libavcodec-locking.c:61:7: note: ret is assigned gst-libav-1.20.2/tests/check/generic/libavcodec-locking.c:62:7: note: ret is overwritten gst-libav-1.20.2/ext/libav/gstavcodecmap.c:4380:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:4392:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:801:48: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:809:80: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:825:34: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:832:60: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:840:18: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:856:66: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:889:67: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:903:63: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:909:63: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:917:65: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:930:75: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:937:75: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1016:41: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1051:61: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1059:45: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1066:80: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1085:71: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1089:20: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1108:65: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1111:69: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1123:44: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1130:61: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1136:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1142:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1185:19: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1189:50: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1204:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1210:21: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1218:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1225:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1240:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1247:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1258:45: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1281:43: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1297:62: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1316:43: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1348:40: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1354:40: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1360:40: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1366:40: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1441:65: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1504:79: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1511:39: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1516:39: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1522:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1535:70: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1559:57: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1579:47: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1591:47: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1603:66: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1609:71: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1615:71: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1621:71: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1626:38: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1664:61: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1669:61: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1693:55: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1711:64: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1958:49: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:1989:42: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:2127:42: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:2201:67: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:2239:42: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:2427:69: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:2510:42: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:719:20: style: Local variable 'rates' shadows outer variable [shadowVariable] gst-libav-1.20.2/ext/libav/gstavcodecmap.c:568:17: note: Shadowed declaration gst-libav-1.20.2/ext/libav/gstavcodecmap.c:719:20: note: Shadow variable gst-libav-1.20.2/ext/libav/gstavcodecmap.c:70:67: style: Parameter 'pos' can be declared as pointer to const [constParameter] diff: head gst-libav-1.20.2/ext/libav/gstavcodecmap.c:70:67: style: Parameter 'pos' can be declared as pointer to const [constParameter] 2.8 gst-libav-1.20.2/ext/libav/gstavcodecmap.c:70:67: style: Parameter 'pos' can be declared with const [constParameter] DONE