2024-04-18 18:49 ftp://ftp.de.debian.org/debian/pool/main/m/mp4h/mp4h_1.3.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=pcre --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.1.0-18-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.56 compiler: g++ (Debian 12.2.0-14) 12.2.0 cppcheck: head 2.13.0 head-info: 8c78869 (2024-04-18 16:27:02 +0200) count: 175 162 elapsed-time: 4.5 5.4 head-timing-info: old-timing-info: head results: mp4h-1.3.1/intl/bindtextdom.c:228:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable domainname [valueFlowBailoutIncompleteVar] mp4h-1.3.1/intl/dcigettext.c:509:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERANGE [valueFlowBailoutIncompleteVar] mp4h-1.3.1/intl/dcigettext.c:1038:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lor [valueFlowBailoutIncompleteVar] mp4h-1.3.1/intl/l10nflist.c:132:17: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/intl/l10nflist.c:328:8: style: Variable 'dir' can be declared as pointer to const [constVariablePointer] mp4h-1.3.1/intl/loadmsgcat.c:371:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] mp4h-1.3.1/intl/loadmsgcat.c:413:2: error: Resource leak: fd [resourceLeak] mp4h-1.3.1/intl/loadmsgcat.c:406:12: style: The comparison 'data == (struct mo_file_header*)-1' is always true because 'data' and '(struct mo_file_header*)-1' represent the same value. [knownConditionTrueFalse] mp4h-1.3.1/intl/loadmsgcat.c:351:33: note: 'data' is assigned value '(struct mo_file_header*)-1' here. mp4h-1.3.1/intl/loadmsgcat.c:406:12: note: The comparison 'data == (struct mo_file_header*)-1' is always true because 'data' and '(struct mo_file_header*)-1' represent the same value. mp4h-1.3.1/intl/localcharset.c:91:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBDIR [valueFlowBailoutIncompleteVar] mp4h-1.3.1/intl/localealias.c:131:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOCALE_ALIAS_PATH [valueFlowBailoutIncompleteVar] mp4h-1.3.1/intl/localealias.c:223:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] mp4h-1.3.1/intl/bindtextdom.c:254:12: style: Local variable 'len' shadows outer variable [shadowVariable] mp4h-1.3.1/intl/bindtextdom.c:226:14: note: Shadowed declaration mp4h-1.3.1/intl/bindtextdom.c:254:12: note: Shadow variable mp4h-1.3.1/intl/bindtextdom.c:285:15: style: Local variable 'len' shadows outer variable [shadowVariable] mp4h-1.3.1/intl/bindtextdom.c:226:14: note: Shadowed declaration mp4h-1.3.1/intl/bindtextdom.c:285:15: note: Shadow variable mp4h-1.3.1/intl/localcharset.c:227:14: style: Condition 'locale==NULL' is always true [knownConditionTrueFalse] mp4h-1.3.1/intl/localcharset.c:218:24: note: Assignment 'locale=NULL', assigned value is 0 mp4h-1.3.1/intl/localcharset.c:227:14: note: Condition 'locale==NULL' is always true mp4h-1.3.1/intl/localcharset.c:153:5: error: Common realloc mistake: 'res_ptr' nulled but not freed upon failure [memleakOnRealloc] mp4h-1.3.1/intl/localealias.c:234:11: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/intl/localealias.c:242:11: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/intl/localealias.c:132:21: style: Variable 'retval' can be declared as pointer to const [constVariablePointer] mp4h-1.3.1/intl/localealias.c:224:13: style: Variable 'alias' can be declared as pointer to const [constVariablePointer] mp4h-1.3.1/intl/localealias.c:225:13: style: Variable 'value' can be declared as pointer to const [constVariablePointer] mp4h-1.3.1/intl/localealias.c:147:41: error: Uninitialized variable: &item.value [uninitvar] plural.y:188:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable qmop [valueFlowBailoutIncompleteVar] plural.y:307:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable equal [valueFlowBailoutIncompleteVar] mp4h-1.3.1/lib/error.c:139:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mp4h-1.3.1/lib/error.c:211:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mp4h-1.3.1/lib/error.c:216:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mp4h-1.3.1/lib/error.c:127:12: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/lib/error.c:128:6: style: Parameter 'a1' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/lib/error.c:185:12: style: Parameter 'message' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/lib/error.c:186:6: style: Parameter 'a1' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/lib/obstack.c:302:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable d [valueFlowBailoutIncompleteVar] mp4h-1.3.1/lib/obstack.c:471:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mp4h-1.3.1/lib/obstack.c:302:32: portability:inconclusive: Casting from double * to char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] plural.y:410:18: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] /home/haible/gnu/arch/linuxlibc6/share/bison.simple:190:18: style: Variable 'f' can be declared as pointer to const [constVariablePointer] mp4h-1.3.1/lib/obstack.c:347:14: style: Parameter 'obj' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/lib/obstack.c:61:23: style: struct member 'fooalign::x' is never used. [unusedStructMember] mp4h-1.3.1/lib/obstack.c:67:22: style: union member 'fooround::x' is never used. [unusedStructMember] mp4h-1.3.1/lib/getopt.c:681:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mp4h-1.3.1/lib/xmalloc.c:132:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] mp4h-1.3.1/lib/xmalloc.c:132:5: style: Variable 'p' is assigned a value that is never used. [unreadVariable] mp4h-1.3.1/lib/strtol.c:280:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] mp4h-1.3.1/lib/strtol.c:477:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __ [valueFlowBailoutIncompleteVar] mp4h-1.3.1/lib/xstrdup.c:39:12: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/modules/example/test.c:80:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable argc [valueFlowBailoutIncompleteVar] mp4h-1.3.1/modules/intl/gettext.c:86:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable warning_status [valueFlowBailoutIncompleteVar] mp4h-1.3.1/modules/intl/gettext.c:103:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable warning_status [valueFlowBailoutIncompleteVar] mp4h-1.3.1/modules/intl/gettext.c:127:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable warning_status [valueFlowBailoutIncompleteVar] mp4h-1.3.1/modules/intl/gettext.c:149:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARGBODY [valueFlowBailoutIncompleteVar] mp4h-1.3.1/modules/javascript/mozjs.c:80:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JS_TRUE [valueFlowBailoutIncompleteVar] mp4h-1.3.1/modules/javascript/mozjs.c:94:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable warning_status [valueFlowBailoutIncompleteVar] mp4h-1.3.1/modules/javascript/mozjs.c:135:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable obs [valueFlowBailoutIncompleteVar] mp4h-njs.c:137:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JS_INTEGER [valueFlowBailoutIncompleteVar] mp4h-njs.c:339:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JS_BUILTIN_PROP_SET [valueFlowBailoutIncompleteVar] mp4h-njs.c:391:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JS_PROPERTY_FOUND [valueFlowBailoutIncompleteVar] mp4h-njs.c:459:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable js_free [valueFlowBailoutIncompleteVar] mp4h-1.3.1/lib/strtol.c:347:8: warning: Either the condition 's==end' is redundant or there is possible null pointer dereference: s. [nullPointerRedundantCheck] mp4h-1.3.1/lib/strtol.c:340:11: note: Assignment 'end=0', assigned value is 0 mp4h-1.3.1/lib/strtol.c:381:8: note: Assuming that condition 's==end' is not redundant mp4h-1.3.1/lib/strtol.c:347:8: note: Null pointer dereference mp4h-1.3.1/modules/javascript/njs.c:56:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable warning_status [valueFlowBailoutIncompleteVar] mp4h-1.3.1/modules/javascript/njs.c:101:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable obs [valueFlowBailoutIncompleteVar] mp4h-1.3.1/modules/javascript/njs.c:44:17: style: Local variable 'interp' shadows outer variable [shadowVariable] mp4h-1.3.1/modules/javascript/njs.c:38:20: note: Shadowed declaration mp4h-1.3.1/modules/javascript/njs.c:44:17: note: Shadow variable mp4h-1.3.1/modules/javascript/njs.c:82:34: style: Parameter 'obs' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/modules/system/exec.c:77:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable argv [valueFlowBailoutIncompleteVar] mp4h-1.3.1/modules/system/sh.c:69:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARGBODY [valueFlowBailoutIncompleteVar] mp4h-1.3.1/intl/dcigettext.c:508:10: style: Obsolescent function 'getwd' called. It is recommended to use 'getcwd' instead. [prohibitedgetwdCalled] mp4h-1.3.1/intl/dcigettext.c:529:23: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/intl/dcigettext.c:575:25: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/intl/dcigettext.c:555:39: style: Redundant condition: The condition 'categoryvalue[0] != '\0'' is redundant since 'categoryvalue[0] == ':'' is sufficient. [redundantCondition] mp4h-1.3.1/intl/dcigettext.c:497:13: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] mp4h-1.3.1/intl/dcigettext.c:216:9: style: struct member 'known_translation_t::domainname' is never used. [unusedStructMember] mp4h-1.3.1/intl/dcigettext.c:219:7: style: struct member 'known_translation_t::category' is never used. [unusedStructMember] mp4h-1.3.1/intl/dcigettext.c:222:7: style: struct member 'known_translation_t::counter' is never used. [unusedStructMember] mp4h-1.3.1/intl/dcigettext.c:225:27: style: struct member 'known_translation_t::domain' is never used. [unusedStructMember] mp4h-1.3.1/intl/dcigettext.c:228:15: style: struct member 'known_translation_t::translation' is never used. [unusedStructMember] mp4h-1.3.1/intl/dcigettext.c:229:10: style: struct member 'known_translation_t::translation_length' is never used. [unusedStructMember] mp4h-1.3.1/intl/dcigettext.c:232:8: style: struct member 'known_translation_t::msgid' is never used. [unusedStructMember] mp4h-njs.c:330:1: style: Label 'js_done' is not used. [unusedLabel] mp4h-njs.c:383:1: style: Label 'js_done' is not used. [unusedLabel] mp4h-njs.c:39:64: style: Parameter 'js_info' can be declared as pointer to const. However it seems that 'MP4H_method' is a callback function, if 'js_info' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mp4h-njs.c:454:26: note: You might need to cast the function pointer here mp4h-njs.c:39:64: note: Parameter 'js_info' can be declared as pointer to const mp4h-njs.c:39:79: style: Parameter 'js_ictx' can be declared as pointer to const. However it seems that 'MP4H_method' is a callback function, if 'js_ictx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mp4h-njs.c:454:26: note: You might need to cast the function pointer here mp4h-njs.c:39:79: note: Parameter 'js_ictx' can be declared as pointer to const mp4h-njs.c:40:12: style: Variable 'js_context' can be declared as pointer to const [constVariablePointer] mp4h-njs.c:334:66: style: Parameter 'js_info' can be declared as pointer to const. However it seems that 'MP4H_property' is a callback function, if 'js_info' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mp4h-njs.c:455:28: note: You might need to cast the function pointer here mp4h-njs.c:334:66: note: Parameter 'js_info' can be declared as pointer to const mp4h-njs.c:334:81: style: Parameter 'js_ictx' can be declared as pointer to const. However it seems that 'MP4H_property' is a callback function, if 'js_ictx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mp4h-njs.c:455:28: note: You might need to cast the function pointer here mp4h-njs.c:334:81: note: Parameter 'js_ictx' can be declared as pointer to const mp4h-njs.c:335:12: style: Variable 'js_context' can be declared as pointer to const [constVariablePointer] mp4h-njs.c:387:41: style: Parameter 'js_vm' can be declared as pointer to const. However it seems that 'MP4H_query' is a callback function, if 'js_vm' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mp4h-njs.c:456:25: note: You might need to cast the function pointer here mp4h-njs.c:387:41: note: Parameter 'js_vm' can be declared as pointer to const mp4h-njs.c:387:63: style: Parameter 'js_info' can be declared as pointer to const. However it seems that 'MP4H_query' is a callback function, if 'js_info' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mp4h-njs.c:456:25: note: You might need to cast the function pointer here mp4h-njs.c:387:63: note: Parameter 'js_info' can be declared as pointer to const mp4h-njs.c:387:78: style: Parameter 'js_ictx' can be declared as pointer to const. However it seems that 'MP4H_query' is a callback function, if 'js_ictx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mp4h-njs.c:456:25: note: You might need to cast the function pointer here mp4h-njs.c:387:78: note: Parameter 'js_ictx' can be declared as pointer to const mp4h-njs.c:388:12: style: Variable 'js_context' can be declared as pointer to const [constVariablePointer] mp4h-njs.c:412:82: style: Parameter 'js_ictx' can be declared as pointer to const. However it seems that 'MP4H_enumerate' is a callback function, if 'js_ictx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mp4h-njs.c:457:29: note: You might need to cast the function pointer here mp4h-njs.c:412:82: note: Parameter 'js_ictx' can be declared as pointer to const mp4h-njs.c:97:11: style: Variable 'visible' is assigned a value that is never used. [unreadVariable] mp4h-njs.c:129:15: style: Variable 'status' is assigned a value that is never used. [unreadVariable] mp4h-njs.c:138:12: style: Variable 'status' is assigned a value that is never used. [unreadVariable] mp4h-njs.c:250:22: style: Variable 'verbatimAttributes' is assigned a value that is never used. [unreadVariable] mp4h-njs.c:251:13: style: Variable 'container' is assigned a value that is never used. [unreadVariable] mp4h-njs.c:252:20: style: Variable 'deleteWhitespace' is assigned a value that is never used. [unreadVariable] mp4h-njs.c:265:15: style: Variable 'divnum' is assigned a value that is never used. [unreadVariable] mp4h-njs.c:273:12: style: Variable 'divnum' is assigned a value that is never used. [unreadVariable] mp4h-njs.c:288:15: style: Variable 'divnum' is assigned a value that is never used. [unreadVariable] mp4h-njs.c:296:12: style: Variable 'divnum' is assigned a value that is never used. [unreadVariable] mp4h-1.3.1/lib/getopt.c:776:11: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] mp4h-1.3.1/src/builtin.c:667:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pcre_malloc [valueFlowBailoutIncompleteVar] mp4h-1.3.1/src/builtin.c:1102:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] mp4h-1.3.1/src/debug.c:58:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mp4h-1.3.1/src/debug.c:159:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mp4h-1.3.1/src/debug.c:187:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mp4h-1.3.1/src/debug.c:206:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mp4h-1.3.1/pcre/pcre.c:2534:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pcre_default_tables [valueFlowBailoutIncompleteVar] mp4h-1.3.1/src/devel.c:197:12: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/devel.c:182:9: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] mp4h-1.3.1/src/freeze.c:243:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mp4h-1.3.1/src/input.c:230:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mp4h-1.3.1/src/input.c:249:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mp4h-1.3.1/src/freeze.c:243:10: warning: Either the condition 'file==NULL' is redundant or there is possible null pointer dereference: file. [nullPointerRedundantCheck] mp4h-1.3.1/src/freeze.c:234:12: note: Assuming that condition 'file==NULL' is not redundant mp4h-1.3.1/src/freeze.c:243:10: note: Null pointer dereference mp4h-1.3.1/src/ltdl.h:330:1: error: syntax error [syntaxError] mp4h-1.3.1/src/input.c:1144:18: style: Variable 'ch' is assigned a value that is never used. [unreadVariable] mp4h-1.3.1/src/macro.c:710:27: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/src/macro.c:441:25: style: Variable 't' is assigned a value that is never used. [unreadVariable] mp4h-1.3.1/src/macro.c:487:25: style: Variable 't' is assigned a value that is never used. [unreadVariable] mp4h-1.3.1/src/macro.c:817:12: style: Variable 'expanded' is assigned a value that is never used. [unreadVariable] mp4h-1.3.1/src/mp4h.c:111:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mp4h-1.3.1/src/mp4h.c:258:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mp4h-1.3.1/src/output.c:106:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mp4h-1.3.1/src/output.c:142:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] mp4h-1.3.1/src/mp4h.c:423:25: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/path.c:130:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MP4HLIBDIR [valueFlowBailoutIncompleteVar] mp4h-1.3.1/src/path.c:112:18: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/path.c:117:23: warning: Either the condition 'path_end' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] mp4h-1.3.1/src/path.c:113:11: note: Assuming that condition 'path_end' is not redundant mp4h-1.3.1/src/path.c:117:23: note: Null pointer addition mp4h-1.3.1/src/output.c:141:3: warning: Return value of function mktemp() is not used. [ignoredReturnValue] mp4h-1.3.1/src/output.c:141:3: warning: Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. [prohibitedmktempCalled] mp4h-1.3.1/src/output.c:436:7: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] mp4h-1.3.1/src/builtin.c:3780:3: error: Address of local auto-variable assigned to a function parameter. [autoVariables] mp4h-1.3.1/src/builtin.c:760:15: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/builtin.c:869:16: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/builtin.c:1525:27: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] mp4h-1.3.1/src/builtin.c:1535:29: style: Obsolete function 'asctime' called. It is recommended to use 'strftime' instead. [prohibitedasctimeCalled] mp4h-1.3.1/src/builtin.c:1913:12: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/builtin.c:2121:12: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/builtin.c:3845:19: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/builtin.c:3856:27: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/builtin.c:3962:15: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/builtin.c:3989:19: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/builtin.c:4000:27: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/builtin.c:4055:20: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/builtin.c:4076:24: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/builtin.c:4423:19: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/builtin.c:4434:16: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/builtin.c:4481:19: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mp4h-1.3.1/src/builtin.c:4612:8: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] mp4h-1.3.1/src/builtin.c:4641:8: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] mp4h-1.3.1/src/builtin.c:4700:9: error: Memory leak: value [memleak] mp4h-1.3.1/src/builtin.c:714:20: warning: Either the condition 'nptr==NULL' is redundant or there is possible null pointer dereference: nptr. [nullPointerRedundantCheck] mp4h-1.3.1/src/builtin.c:715:12: note: Assuming that condition 'nptr==NULL' is not redundant mp4h-1.3.1/src/builtin.c:714:20: note: Null pointer dereference mp4h-1.3.1/src/builtin.c:734:20: warning: Either the condition 'nptr==NULL' is redundant or there is possible null pointer dereference: nptr. [nullPointerRedundantCheck] mp4h-1.3.1/src/builtin.c:735:12: note: Assuming that condition 'nptr==NULL' is not redundant mp4h-1.3.1/src/builtin.c:734:20: note: Null pointer dereference mp4h-1.3.1/src/builtin.c:3424:11: warning: Either the condition '!utf' is redundant or there is possible null pointer dereference: utf. [nullPointerRedundantCheck] mp4h-1.3.1/src/builtin.c:3426:9: note: Assuming that condition '!utf' is not redundant mp4h-1.3.1/src/builtin.c:3424:11: note: Null pointer dereference mp4h-1.3.1/src/builtin.c:4705:22: style: Variable '*(old_value-1)' is reassigned a value before the old one has been used. [redundantAssignment] mp4h-1.3.1/src/builtin.c:4701:22: note: *(old_value-1) is assigned mp4h-1.3.1/src/builtin.c:4705:22: note: *(old_value-1) is overwritten mp4h-1.3.1/src/builtin.c:1499:15: style: Local variable 'format' shadows outer function [shadowFunction] mp4h-1.3.1/src/mp4h.h:656:6: note: Shadowed declaration mp4h-1.3.1/src/builtin.c:1499:15: note: Shadow variable mp4h-1.3.1/src/builtin.c:447:37: style: Parameter 'func' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/src/builtin.c:637:45: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/src/builtin.c:2866:18: style: Parameter 'obs' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/src/builtin.c:2940:22: style: Parameter 'obs' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/src/builtin.c:4389:21: style: Parameter 'var' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/src/builtin.c:4412:9: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] mp4h-1.3.1/src/builtin.c:4470:41: style: Parameter 'var' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/src/builtin.c:4472:9: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] mp4h-1.3.1/src/builtin.c:4777:9: style: Variable 'string1' can be declared as pointer to const [constVariablePointer] mp4h-1.3.1/src/builtin.c:4777:19: style: Variable 'string2' can be declared as pointer to const [constVariablePointer] mp4h-1.3.1/src/builtin.c:2904:38: warning: Char literal compared with pointer '2u.u_t.text):""'. Did you intend to dereference it? [charLiteralWithCharPtrCompare] mp4h-1.3.1/src/builtin.c:886:19: style: Variable 'max_subexps' is assigned a value that is never used. [unreadVariable] mp4h-1.3.1/src/builtin.c:3639:12: style: Variable 'matchpos' is assigned a value that is never used. [unreadVariable] mp4h-1.3.1/src/builtin.c:4837:10: style: Variable 'length' is assigned a value that is never used. [unreadVariable] mp4h-1.3.1/pcre/pcre.c:4896:53: warning: Either the condition 'subject==NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] mp4h-1.3.1/pcre/pcre.c:4907:27: note: Assuming that condition 'subject==NULL' is not redundant mp4h-1.3.1/pcre/pcre.c:4896:53: note: Null pointer addition mp4h-1.3.1/pcre/pcre.c:674:50: style: Parameter 'cd' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/pcre/pcre.c:712:40: style: Parameter 'cd' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/pcre/pcre.c:930:76: style: Parameter 'cd' can be declared as pointer to const [constParameterPointer] mp4h-1.3.1/pcre/pcre.c:2134:9: style: Variable 'start_bracket' can be declared as pointer to const [constVariablePointer] mp4h-1.3.1/pcre/pcre.c:4972:17: style: Variable 'iend' can be declared as pointer to const [constVariablePointer] mp4h-1.3.1/pcre/pcre.c:5017:17: style: Variable 'iend' can be declared as pointer to const [constVariablePointer] diff: head mp4h-1.3.1/intl/dcigettext.c:1038:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable lor [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/intl/localealias.c:223:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] 2.13.0 mp4h-1.3.1/lib/error.c:128:6: style: Parameter 'a2' can be declared as pointer to const [constParameterPointer] 2.13.0 mp4h-1.3.1/lib/error.c:128:6: style: Parameter 'a3' can be declared as pointer to const [constParameterPointer] 2.13.0 mp4h-1.3.1/lib/error.c:128:6: style: Parameter 'a4' can be declared as pointer to const [constParameterPointer] 2.13.0 mp4h-1.3.1/lib/error.c:128:6: style: Parameter 'a5' can be declared as pointer to const [constParameterPointer] 2.13.0 mp4h-1.3.1/lib/error.c:128:6: style: Parameter 'a6' can be declared as pointer to const [constParameterPointer] 2.13.0 mp4h-1.3.1/lib/error.c:128:6: style: Parameter 'a7' can be declared as pointer to const [constParameterPointer] 2.13.0 mp4h-1.3.1/lib/error.c:128:6: style: Parameter 'a8' can be declared as pointer to const [constParameterPointer] 2.13.0 mp4h-1.3.1/lib/error.c:186:6: style: Parameter 'a2' can be declared as pointer to const [constParameterPointer] 2.13.0 mp4h-1.3.1/lib/error.c:186:6: style: Parameter 'a3' can be declared as pointer to const [constParameterPointer] 2.13.0 mp4h-1.3.1/lib/error.c:186:6: style: Parameter 'a4' can be declared as pointer to const [constParameterPointer] 2.13.0 mp4h-1.3.1/lib/error.c:186:6: style: Parameter 'a5' can be declared as pointer to const [constParameterPointer] 2.13.0 mp4h-1.3.1/lib/error.c:186:6: style: Parameter 'a6' can be declared as pointer to const [constParameterPointer] 2.13.0 mp4h-1.3.1/lib/error.c:186:6: style: Parameter 'a7' can be declared as pointer to const [constParameterPointer] 2.13.0 mp4h-1.3.1/lib/error.c:186:6: style: Parameter 'a8' can be declared as pointer to const [constParameterPointer] head mp4h-1.3.1/lib/error.c:211:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/lib/obstack.c:471:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/lib/strtol.c:477:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __ [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/modules/intl/gettext.c:103:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable warning_status [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/modules/intl/gettext.c:127:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable warning_status [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/modules/intl/gettext.c:149:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ARGBODY [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/modules/javascript/mozjs.c:135:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable obs [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/modules/javascript/mozjs.c:94:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable warning_status [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/modules/javascript/njs.c:101:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable obs [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/modules/javascript/njs.c:82:34: style: Parameter 'obs' can be declared as pointer to const [constParameterPointer] head mp4h-1.3.1/src/builtin.c:1102:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PACKAGE_VERSION [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/src/builtin.c:2866:18: style: Parameter 'obs' can be declared as pointer to const [constParameterPointer] head mp4h-1.3.1/src/builtin.c:2940:22: style: Parameter 'obs' can be declared as pointer to const [constParameterPointer] head mp4h-1.3.1/src/debug.c:159:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/src/debug.c:187:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/src/debug.c:206:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/src/input.c:249:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/src/mp4h.c:258:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] head mp4h-1.3.1/src/output.c:142:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] head mp4h-njs.c:339:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JS_BUILTIN_PROP_SET [valueFlowBailoutIncompleteVar] head mp4h-njs.c:387:41: style: Parameter 'js_vm' can be declared as pointer to const. However it seems that 'MP4H_query' is a callback function, if 'js_vm' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mp4h-njs.c:456:25: note: You might need to cast the function pointer here mp4h-njs.c:387:41: note: Parameter 'js_vm' can be declared as pointer to const head mp4h-njs.c:391:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JS_PROPERTY_FOUND [valueFlowBailoutIncompleteVar] head mp4h-njs.c:459:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable js_free [valueFlowBailoutIncompleteVar] head plural.y:307:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable equal [valueFlowBailoutIncompleteVar] head plural.y:410:18: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] DONE