2026-05-03 05:15 ftp://ftp.de.debian.org/debian/pool/main/libm/libmediascan/libmediascan_0~20220401.git.34fc2d.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-1047-aws-aarch64-with-glibc2.35 python: 3.10.12 client-version: 1.4.0 compiler: g++ (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 661 660 elapsed-time: 4.0 3.3 head-timing-info: old-timing-info: head results: libmediascan/bindings/perl/Magic.c:28:32: error: There is an unknown macro here somewhere. Configuration is required. If aTHX_ is a macro then please configure it. [unknownMacro] libmediascan/src/audio.c:25:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanAudio [valueFlowBailoutIncompleteVar] libmediascan/src/audio.c:37:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:52:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:70:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:124:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:188:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WARN [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:199:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:206:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WARN [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:216:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:231:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:275:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:295:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WARN [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:306:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:335:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:365:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:394:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:423:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:457:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:491:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:519:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:547:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:667:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:722:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:773:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:835:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HUGE_VAL [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:957:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/buffer.c:614:9: style: Condition 'is_utf8' is always false [knownConditionTrueFalse] libmediascan/src/buffer.c:609:13: note: Assignment 'is_utf8=0', assigned value is 0 libmediascan/src/buffer.c:614:9: note: Condition 'is_utf8' is always false libmediascan/src/buffer.c:52:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libmediascan/src/buffer.c:70:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libmediascan/src/buffer.c:124:5: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] libmediascan/src/buffer.c:151:5: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] libmediascan/src/buffer.c:188:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libmediascan/src/buffer.c:188:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libmediascan/src/buffer.c:206:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libmediascan/src/buffer.c:206:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libmediascan/src/buffer.c:231:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libmediascan/src/buffer.c:231:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libmediascan/src/buffer.c:957:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libmediascan/src/buffer.c:971:7: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libmediascan/src/buffer.c:955:23: warning: If memory allocation fails, then there is a possible null pointer dereference: tmp [nullPointerOutOfMemory] libmediascan/src/buffer.c:947:34: note: Assuming allocation function fails libmediascan/src/buffer.c:947:11: note: Assignment 'tmp=(unsigned char*)malloc(actual_wanted)', assigned value is 0 libmediascan/src/buffer.c:955:23: note: Null pointer dereference libmediascan/src/buffer.c:255:3: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] libmediascan/src/buffer.c:955:51: style: Checking if unsigned expression 'read=fread(tmp,1,actual_wanted,fp)' is less than zero. [unsignedLessThanZero] libmediascan/src/buffer.c:242:43: style:inconclusive: Function 'buffer_dump' argument 2 names different: declaration 'len' definition 'size'. [funcArgNamesDifferent] libmediascan/src/buffer.h:65:43: note: Function 'buffer_dump' argument 2 names different: declaration 'len' definition 'size'. libmediascan/src/buffer.c:242:43: note: Function 'buffer_dump' argument 2 names different: declaration 'len' definition 'size'. libmediascan/src/buffer.c:930:31: style:inconclusive: Function 'buffer_check_load' argument 1 names different: declaration 'buffer' definition 'buf'. [funcArgNamesDifferent] libmediascan/src/buffer.h:110:31: note: Function 'buffer_check_load' argument 1 names different: declaration 'buffer' definition 'buf'. libmediascan/src/buffer.c:930:31: note: Function 'buffer_check_load' argument 1 names different: declaration 'buffer' definition 'buf'. libmediascan/src/buffer.c:180:29: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] libmediascan/src/buffer.c:236:26: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] libmediascan/src/buffer.c:243:18: style: Variable 'data' can be declared as pointer to const [constVariablePointer] libmediascan/src/buffer.c:565:18: style: Variable 'bptr' can be declared as pointer to const [constVariablePointer] libmediascan/src/buffer.c:598:18: style: Variable 'bptr' can be declared as pointer to const [constVariablePointer] libmediascan/src/buffer.c:818:18: style: Variable 'bptr' can be declared as pointer to const [constVariablePointer] libmediascan/src/buffer.c:913:18: style: Variable 'bptr' can be declared as pointer to const [constVariablePointer] libmediascan/src/buffer.c:243:23: style: Variable 'data' is assigned a value that is never used. [unreadVariable] libmediascan/src/buffer.c:245:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] libmediascan/src/buffer.c:247:19: style: Variable 'bytestr' is assigned a value that is never used. [unreadVariable] libmediascan/src/buffer.c:248:27: style: Variable 'hexstr' is assigned a value that is never used. [unreadVariable] libmediascan/src/buffer.c:249:28: style: Variable 'charstr' is assigned a value that is never used. [unreadVariable] libmediascan/src/buffer.c:654:15: style: Variable 'wc' is assigned a value that is never used. [unreadVariable] libmediascan/src/database.c:40:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFO [valueFlowBailoutIncompleteVar] libmediascan/src/database.c:54:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/database.c:115:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DB_FORCESYNC [valueFlowBailoutIncompleteVar] libmediascan/src/error.c:15:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanError [valueFlowBailoutIncompleteVar] libmediascan/src/error.c:34:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanError [valueFlowBailoutIncompleteVar] libmediascan/src/error.c:46:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/error.c:35:10: warning: If memory allocation fails, then there is a possible null pointer dereference: ecopy [nullPointerOutOfMemory] libmediascan/src/error.c:34:33: note: Assuming allocation function fails libmediascan/src/error.c:34:33: note: Assignment 'ecopy=malloc(sizeof(MediaScanError))', assigned value is 0 libmediascan/src/error.c:35:10: note: Null pointer dereference libmediascan/src/error.c:37:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ecopy [nullPointerOutOfMemory] libmediascan/src/error.c:34:33: note: Assuming allocation function fails libmediascan/src/error.c:34:33: note: Assignment 'ecopy=malloc(sizeof(MediaScanError))', assigned value is 0 libmediascan/src/error.c:37:3: note: Null pointer dereference libmediascan/src/error.c:38:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ecopy [nullPointerOutOfMemory] libmediascan/src/error.c:34:33: note: Assuming allocation function fails libmediascan/src/error.c:34:33: note: Assignment 'ecopy=malloc(sizeof(MediaScanError))', assigned value is 0 libmediascan/src/error.c:38:3: note: Null pointer dereference libmediascan/src/error.c:33:44: style: Parameter 'e' can be declared as pointer to const [constParameterPointer] libmediascan/src/folder_mon_win32.c:38:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DBT [valueFlowBailoutIncompleteVar] libmediascan/src/folder_mon_win32.c:65:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GENERIC_READ [valueFlowBailoutIncompleteVar] libmediascan/src/folder_mon_win32.c:129:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_ERROR_CACHE [valueFlowBailoutIncompleteVar] libmediascan/src/folder_mon_win32.c:307:5: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] libmediascan/src/folder_mon_win32.c:136:30: error: Uninitialized variable: oOverlap [uninitvar] libmediascan/src/folder_mon_win32.c:145:30: error: Uninitialized variable: RecvOverlapped [uninitvar] libmediascan/src/folder_mon_win32.c:118:9: style: Unused variable: RecvBytes [unusedVariable] libmediascan/src/folder_mon_win32.c:120:7: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] libmediascan/src/folder_mon_win32.c:121:7: style: Variable 'err' is assigned a value that is never used. [unreadVariable] libmediascan/src/image.c:27:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanImage [valueFlowBailoutIncompleteVar] libmediascan/src/image.c:60:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/image.c:189:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/image.c:194:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/image.c:69:18: style: Variable 'bptr' can be declared as pointer to const [constVariablePointer] libmediascan/src/image_bmp.c:32:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/image_bmp.c:181:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WARN [valueFlowBailoutIncompleteVar] libmediascan/src/image_bmp.c:351:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/image_bmp.c:29:3: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:29:3: note: Null pointer dereference libmediascan/src/image_bmp.c:30:3: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:30:3: note: Null pointer dereference libmediascan/src/image_bmp.c:34:18: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:34:18: note: Null pointer dereference libmediascan/src/image_bmp.c:36:30: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:36:30: note: Null pointer dereference libmediascan/src/image_bmp.c:37:18: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:37:18: note: Null pointer dereference libmediascan/src/image_bmp.c:38:32: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:38:32: note: Null pointer dereference libmediascan/src/image_bmp.c:39:33: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:39:33: note: Null pointer dereference libmediascan/src/image_bmp.c:40:18: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:40:18: note: Null pointer dereference libmediascan/src/image_bmp.c:41:3: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:41:3: note: Null pointer dereference libmediascan/src/image_bmp.c:41:34: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:41:34: note: Null pointer dereference libmediascan/src/image_bmp.c:42:3: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:42:3: note: Null pointer dereference libmediascan/src/image_bmp.c:42:40: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:42:40: note: Null pointer dereference libmediascan/src/image_bmp.c:47:7: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:47:7: note: Null pointer dereference libmediascan/src/image_bmp.c:62:18: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:47:24: note: Assuming condition is false libmediascan/src/image_bmp.c:62:18: note: Null pointer dereference libmediascan/src/image_bmp.c:64:38: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:47:24: note: Assuming condition is false libmediascan/src/image_bmp.c:64:38: note: Null pointer dereference libmediascan/src/image_bmp.c:67:18: warning: If memory allocation fails, then there is a possible null pointer dereference: bmp [nullPointerOutOfMemory] libmediascan/src/image_bmp.c:27:36: note: Assuming allocation function fails libmediascan/src/image_bmp.c:27:18: note: Assignment 'bmp=(struct BMPData*)calloc(sizeof(struct BMPData),1)', assigned value is 0 libmediascan/src/image_bmp.c:47:24: note: Assuming condition is false libmediascan/src/image_bmp.c:67:18: note: Null pointer dereference libmediascan/src/image_bmp.c:97:11: style: Local variable 'r' shadows outer argument [shadowArgument] libmediascan/src/image_bmp.c:25:63: note: Shadowed declaration libmediascan/src/image_bmp.c:97:11: note: Shadow variable libmediascan/src/image_bmp.c:162:18: style: Variable 'bptr' can be declared as pointer to const [constVariablePointer] libmediascan/src/image_gif.c:36:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/image_gif.c:46:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/image_gif.c:92:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GIF_ERROR [valueFlowBailoutIncompleteVar] libmediascan/src/image_gif.c:217:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GIF_OK [valueFlowBailoutIncompleteVar] libmediascan/src/image_gif.c:48:3: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] libmediascan/src/image_gif.c:44:22: note: Assuming allocation function fails libmediascan/src/image_gif.c:44:22: note: Assignment 'g=malloc(sizeof(struct GIFData))', assigned value is 0 libmediascan/src/image_gif.c:48:3: note: Null pointer dereference libmediascan/src/image_gif.c:49:3: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] libmediascan/src/image_gif.c:44:22: note: Assuming allocation function fails libmediascan/src/image_gif.c:44:22: note: Assignment 'g=malloc(sizeof(struct GIFData))', assigned value is 0 libmediascan/src/image_gif.c:49:3: note: Null pointer dereference libmediascan/src/image_gif.c:50:3: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] libmediascan/src/image_gif.c:44:22: note: Assuming allocation function fails libmediascan/src/image_gif.c:44:22: note: Assignment 'g=malloc(sizeof(struct GIFData))', assigned value is 0 libmediascan/src/image_gif.c:50:3: note: Null pointer dereference libmediascan/src/image_gif.c:52:7: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] libmediascan/src/image_gif.c:44:22: note: Assuming allocation function fails libmediascan/src/image_gif.c:44:22: note: Assignment 'g=malloc(sizeof(struct GIFData))', assigned value is 0 libmediascan/src/image_gif.c:52:7: note: Null pointer dereference libmediascan/src/image_gif.c:58:14: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] libmediascan/src/image_gif.c:44:22: note: Assuming allocation function fails libmediascan/src/image_gif.c:44:22: note: Assignment 'g=malloc(sizeof(struct GIFData))', assigned value is 0 libmediascan/src/image_gif.c:52:14: note: Assuming condition is false libmediascan/src/image_gif.c:58:14: note: Null pointer dereference libmediascan/src/image_gif.c:59:15: warning: If memory allocation fails, then there is a possible null pointer dereference: g [nullPointerOutOfMemory] libmediascan/src/image_gif.c:44:22: note: Assuming allocation function fails libmediascan/src/image_gif.c:44:22: note: Assignment 'g=malloc(sizeof(struct GIFData))', assigned value is 0 libmediascan/src/image_gif.c:52:14: note: Assuming condition is false libmediascan/src/image_gif.c:59:15: note: Null pointer dereference libmediascan/src/image_gif.c:81:17: style: Variable 'ColorMapEntry' can be declared as pointer to const [constVariablePointer] libmediascan/src/image_jpeg.c:134:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/src/image_jpeg.c:150:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/src/image_jpeg.c:190:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable jpeg_resync_to_restart [valueFlowBailoutIncompleteVar] libmediascan/src/image_jpeg.c:204:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/image_jpeg.c:227:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/image_jpeg.c:242:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/image_jpeg.c:263:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JMSG_LENGTH_MAX [valueFlowBailoutIncompleteVar] libmediascan/src/image_jpeg.c:277:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/image_jpeg.c:361:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/image_jpeg.c:486:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WARN [valueFlowBailoutIncompleteVar] libmediascan/src/image_jpeg.c:569:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/image_jpeg.c:595:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/src/image_jpeg.c:227:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libmediascan/src/image_jpeg.c:245:3: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libmediascan/src/image_jpeg.c:245:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libmediascan/src/image_jpeg.c:279:3: warning: If memory allocation fails, then there is a possible null pointer dereference: j [nullPointerOutOfMemory] libmediascan/src/image_jpeg.c:275:23: note: Assuming allocation function fails libmediascan/src/image_jpeg.c:275:23: note: Assignment 'j=malloc(sizeof(struct JPEGData))', assigned value is 0 libmediascan/src/image_jpeg.c:279:3: note: Null pointer dereference libmediascan/src/image_jpeg.c:280:3: warning: If memory allocation fails, then there is a possible null pointer dereference: j [nullPointerOutOfMemory] libmediascan/src/image_jpeg.c:275:23: note: Assuming allocation function fails libmediascan/src/image_jpeg.c:275:23: note: Assignment 'j=malloc(sizeof(struct JPEGData))', assigned value is 0 libmediascan/src/image_jpeg.c:280:3: note: Null pointer dereference libmediascan/src/image_jpeg.c:284:3: warning: If memory allocation fails, then there is a possible null pointer dereference: j [nullPointerOutOfMemory] libmediascan/src/image_jpeg.c:275:23: note: Assuming allocation function fails libmediascan/src/image_jpeg.c:275:23: note: Assignment 'j=malloc(sizeof(struct JPEGData))', assigned value is 0 libmediascan/src/image_jpeg.c:284:3: note: Null pointer dereference libmediascan/src/image_jpeg.c:284:34: warning: If memory allocation fails, then there is a possible null pointer dereference: j [nullPointerOutOfMemory] libmediascan/src/image_jpeg.c:275:23: note: Assuming allocation function fails libmediascan/src/image_jpeg.c:275:23: note: Assignment 'j=malloc(sizeof(struct JPEGData))', assigned value is 0 libmediascan/src/image_jpeg.c:284:34: note: Null pointer dereference libmediascan/src/image_jpeg.c:285:3: warning: If memory allocation fails, then there is a possible null pointer dereference: j [nullPointerOutOfMemory] libmediascan/src/image_jpeg.c:275:23: note: Assuming allocation function fails libmediascan/src/image_jpeg.c:275:23: note: Assignment 'j=malloc(sizeof(struct JPEGData))', assigned value is 0 libmediascan/src/image_jpeg.c:285:3: note: Null pointer dereference libmediascan/src/image_jpeg.c:286:3: warning: If memory allocation fails, then there is a possible null pointer dereference: j [nullPointerOutOfMemory] libmediascan/src/image_jpeg.c:275:23: note: Assuming allocation function fails libmediascan/src/image_jpeg.c:275:23: note: Assignment 'j=malloc(sizeof(struct JPEGData))', assigned value is 0 libmediascan/src/image_jpeg.c:286:3: note: Null pointer dereference libmediascan/src/image_jpeg.c:541:7: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] libmediascan/src/image_jpeg.c:535:33: note: Assuming allocation function fails libmediascan/src/image_jpeg.c:535:10: note: Assignment 'data=(unsigned char*)malloc(row_stride)', assigned value is 0 libmediascan/src/image_jpeg.c:541:7: note: Null pointer dereference libmediascan/src/image_jpeg.c:542:7: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] libmediascan/src/image_jpeg.c:535:33: note: Assuming allocation function fails libmediascan/src/image_jpeg.c:535:10: note: Assignment 'data=(unsigned char*)malloc(row_stride)', assigned value is 0 libmediascan/src/image_jpeg.c:542:7: note: Null pointer dereference libmediascan/src/image_jpeg.c:543:7: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] libmediascan/src/image_jpeg.c:535:33: note: Assuming allocation function fails libmediascan/src/image_jpeg.c:535:10: note: Assignment 'data=(unsigned char*)malloc(row_stride)', assigned value is 0 libmediascan/src/image_jpeg.c:543:7: note: Null pointer dereference libmediascan/src/image_jpeg.c:351:60: style: Parameter 'spec_hint' can be declared as pointer to const [constParameterPointer] libmediascan/src/image_jpeg.c:471:64: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/dlna.h:101:49: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] libmediascan/src/image_png.c:58:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WARN [valueFlowBailoutIncompleteVar] libmediascan/src/image_png.c:66:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WARN [valueFlowBailoutIncompleteVar] libmediascan/src/image_png.c:92:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/image_png.c:192:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG_COLOR_TYPE_PALETTE [valueFlowBailoutIncompleteVar] libmediascan/src/image_png.c:310:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG_COLOR_TYPE_RGB_ALPHA [valueFlowBailoutIncompleteVar] libmediascan/src/image_png.c:406:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/image_png.c:94:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] libmediascan/src/image_png.c:90:22: note: Assuming allocation function fails libmediascan/src/image_png.c:90:22: note: Assignment 'p=malloc(sizeof(struct PNGData))', assigned value is 0 libmediascan/src/image_png.c:94:3: note: Null pointer dereference libmediascan/src/image_png.c:95:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] libmediascan/src/image_png.c:90:22: note: Assuming allocation function fails libmediascan/src/image_png.c:90:22: note: Assignment 'p=malloc(sizeof(struct PNGData))', assigned value is 0 libmediascan/src/image_png.c:95:3: note: Null pointer dereference libmediascan/src/image_png.c:96:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] libmediascan/src/image_png.c:90:22: note: Assuming allocation function fails libmediascan/src/image_png.c:90:22: note: Assignment 'p=malloc(sizeof(struct PNGData))', assigned value is 0 libmediascan/src/image_png.c:96:3: note: Null pointer dereference libmediascan/src/image_png.c:56:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] libmediascan/src/image_png.c:64:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] libmediascan/src/libdlna/audio_aac.c:319:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_AAC [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/audio_aac.c:495:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/audio_aac.c:517:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/audio_aac.c:295:31: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/audio_aac.c:313:47: style: Parameter 'ac' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/audio_aac.c:486:44: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/audio_aac.c:508:34: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/audio_ac3.c:42:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_AC3 [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/audio_ac3.c:36:42: style: Parameter 'ac' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/audio_amr.c:56:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_AMR_NB [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/audio_amr.c:92:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_AMR_WB [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/audio_amr.c:51:37: style: Parameter 'ac' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/audio_amr.c:87:40: style: Parameter 'ac' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/audio_atrac3.c:57:46: style: Condition 'audio_profile_guess_atrac(codecs->ac)==AUDIO_PROFILE_ATRAC' is always false [knownConditionTrueFalse] libmediascan/src/libdlna/audio_atrac3.c:57:33: note: Calling function 'audio_profile_guess_atrac' returns 0 libmediascan/src/libdlna/audio_atrac3.c:57:46: note: Condition 'audio_profile_guess_atrac(codecs->ac)==AUDIO_PROFILE_ATRAC' is always false libmediascan/src/libdlna/audio_atrac3.c:36:44: style: Parameter 'ac' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/audio_g726.c:34:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_ADPCM_G726 [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/audio_g726.c:29:43: style: Parameter 'ac' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/audio_lpcm.c:54:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_PCM_S16LE [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/audio_lpcm.c:47:43: style: Parameter 'ac' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/audio_mp1.c:34:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_MP1 [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/audio_mp1.c:29:42: style: Parameter 'ac' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/audio_mp2.c:34:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_MP2 [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/audio_mp2.c:29:42: style: Parameter 'ac' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/audio_mp3.c:50:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_MP3 [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/audio_mp3.c:44:44: style: Parameter 'ac' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/audio_wma.c:58:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_WMAV2 [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/audio_wma.c:50:42: style: Parameter 'ac' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/av_mpeg1.c:45:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_MPEG1VIDEO [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/av_mpeg2.c:468:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_AAC [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/av_mpeg2.c:637:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_MPEG2VIDEO [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/av_mpeg4_part10.c:1233:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_H264 [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/av_mpeg4_part10.c:1163:62: style: Condition 'vs->r_frame_rate.num==1' is always false [knownConditionTrueFalse] libmediascan/src/libdlna/av_mpeg4_part10.c:1163:32: note: Assuming that condition 'vs->r_frame_rate.num==15' is not redundant libmediascan/src/libdlna/av_mpeg4_part10.c:1163:62: note: Condition 'vs->r_frame_rate.num==1' is always false libmediascan/src/libdlna/av_mpeg4_part10.c:1133:51: style: Parameter 'vc' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/av_mpeg4_part10.c:1146:41: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/av_mpeg4_part10.c:1146:56: style: Parameter 'vs' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/av_mpeg4_part2.c:791:31: style: Same expression on both sides of '/'. [duplicateExpression] libmediascan/src/libdlna/av_mpeg4_part2.c:767:35: style: Parameter 'vc' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/av_mpeg4_part2.c:783:35: style: Parameter 'vs' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/av_mpeg4_part2.c:783:55: style: Parameter 'vc' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/av_wmv9.c:248:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_WMV3 [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/av_wmv9.c:189:40: style: Parameter 'vs' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/av_wmv9.c:189:60: style: Parameter 'vc' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/containers.c:52:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/containers.c:105:40: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/profiles.c:179:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/profiles.c:214:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable codec_type [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/profiles.c:298:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libmediascan/src/libdlna/profiles.c:162:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dlna [nullPointerOutOfMemory] libmediascan/src/libdlna/profiles.c:161:17: note: Assuming allocation function fails libmediascan/src/libdlna/profiles.c:161:17: note: Assignment 'dlna=malloc(sizeof(struct dlna_t))', assigned value is 0 libmediascan/src/libdlna/profiles.c:162:3: note: Null pointer dereference libmediascan/src/libdlna/profiles.c:163:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dlna [nullPointerOutOfMemory] libmediascan/src/libdlna/profiles.c:161:17: note: Assuming allocation function fails libmediascan/src/libdlna/profiles.c:161:17: note: Assignment 'dlna=malloc(sizeof(struct dlna_t))', assigned value is 0 libmediascan/src/libdlna/profiles.c:163:3: note: Null pointer dereference libmediascan/src/libdlna/profiles.c:164:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dlna [nullPointerOutOfMemory] libmediascan/src/libdlna/profiles.c:161:17: note: Assuming allocation function fails libmediascan/src/libdlna/profiles.c:161:17: note: Assignment 'dlna=malloc(sizeof(struct dlna_t))', assigned value is 0 libmediascan/src/libdlna/profiles.c:164:3: note: Null pointer dereference libmediascan/src/libdlna/profiles.c:227:3: warning: If memory allocation fails, then there is a possible null pointer dereference: codecs [nullPointerOutOfMemory] libmediascan/src/libdlna/profiles.c:209:19: note: Assuming allocation function fails libmediascan/src/libdlna/profiles.c:209:19: note: Assignment 'codecs=malloc(sizeof(struct av_codecs_t))', assigned value is 0 libmediascan/src/libdlna/profiles.c:227:3: note: Null pointer dereference libmediascan/src/libdlna/profiles.c:228:60: warning: If memory allocation fails, then there is a possible null pointer dereference: codecs [nullPointerOutOfMemory] libmediascan/src/libdlna/profiles.c:209:19: note: Assuming allocation function fails libmediascan/src/libdlna/profiles.c:209:19: note: Assignment 'codecs=malloc(sizeof(struct av_codecs_t))', assigned value is 0 libmediascan/src/libdlna/profiles.c:228:60: note: Null pointer dereference libmediascan/src/libdlna/profiles.c:231:3: warning: If memory allocation fails, then there is a possible null pointer dereference: codecs [nullPointerOutOfMemory] libmediascan/src/libdlna/profiles.c:209:19: note: Assuming allocation function fails libmediascan/src/libdlna/profiles.c:209:19: note: Assignment 'codecs=malloc(sizeof(struct av_codecs_t))', assigned value is 0 libmediascan/src/libdlna/profiles.c:231:3: note: Null pointer dereference libmediascan/src/libdlna/profiles.c:233:3: warning: If memory allocation fails, then there is a possible null pointer dereference: codecs [nullPointerOutOfMemory] libmediascan/src/libdlna/profiles.c:209:19: note: Assuming allocation function fails libmediascan/src/libdlna/profiles.c:209:19: note: Assignment 'codecs=malloc(sizeof(struct av_codecs_t))', assigned value is 0 libmediascan/src/libdlna/profiles.c:233:3: note: Null pointer dereference libmediascan/src/libdlna/profiles.c:234:60: warning: If memory allocation fails, then there is a possible null pointer dereference: codecs [nullPointerOutOfMemory] libmediascan/src/libdlna/profiles.c:209:19: note: Assuming allocation function fails libmediascan/src/libdlna/profiles.c:209:19: note: Assignment 'codecs=malloc(sizeof(struct av_codecs_t))', assigned value is 0 libmediascan/src/libdlna/profiles.c:234:60: note: Null pointer dereference libmediascan/src/libdlna/profiles.c:237:3: warning: If memory allocation fails, then there is a possible null pointer dereference: codecs [nullPointerOutOfMemory] libmediascan/src/libdlna/profiles.c:209:19: note: Assuming allocation function fails libmediascan/src/libdlna/profiles.c:209:19: note: Assignment 'codecs=malloc(sizeof(struct av_codecs_t))', assigned value is 0 libmediascan/src/libdlna/profiles.c:237:3: note: Null pointer dereference libmediascan/src/libdlna/profiles.c:360:48: style: Parameter 'profile' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/profiles.c:381:39: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/profiles.c:382:35: style: Parameter 'codecs' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/profiles.c:399:35: style: Parameter 'codecs' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/profiles.c:413:32: style: Parameter 'codecs' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/profiles.c:439:43: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] libmediascan/src/libdlna/profiles.c:447:11: warning: Uninitialized variable: protocol [uninitvar] libmediascan/src/libdlna/profiles.c:444:12: note: Assuming condition is false libmediascan/src/libdlna/profiles.c:447:11: note: Uninitialized variable: protocol libmediascan/src/libdlna/upnp_dms.c:105:11: warning: If memory allocation fails, then there is a possible null pointer dereference: desc [nullPointerOutOfMemory] libmediascan/src/libdlna/upnp_dms.c:104:17: note: Assuming allocation function fails libmediascan/src/libdlna/upnp_dms.c:104:17: note: Assignment 'desc=malloc(len)', assigned value is 0 libmediascan/src/libdlna/upnp_dms.c:105:11: note: Null pointer dereference libmediascan/src/mediascan.c:142:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_LOG_PANIC [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:185:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScan [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:264:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:292:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSENO_NULLSCANOBJ [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:334:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSENO_NULLSCANOBJ [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:361:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSENO_NULLSCANOBJ [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:403:68: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanThumbSpec [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:433:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSENO_NULLSCANOBJ [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:469:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSENO_NULLSCANOBJ [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:491:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSENO_NULLSCANOBJ [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:514:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSENO_NULLSCANOBJ [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:536:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSENO_NULLSCANOBJ [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:557:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSENO_NULLSCANOBJ [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:598:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:751:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TYPE_UNKNOWN [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:821:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVENT_TYPE_PROGRESS [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:832:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVENT_TYPE_ERROR [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:844:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EVENT_TYPE_RESULT [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:877:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_ERROR_CACHE [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:984:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:1047:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MSENO_NULLSCANOBJ [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:1206:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_THUMBS [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan.c:203:3: warning: If memory allocation fails, then there is a possible null pointer dereference: (struct dirq*)s->_dirq [nullPointerOutOfMemory] libmediascan/src/mediascan.c:202:20: note: Assuming allocation function fails libmediascan/src/mediascan.c:202:20: note: Assignment 's->_dirq=malloc(sizeof(struct dirq))', assigned value is 0 libmediascan/src/mediascan.c:203:3: note: Null pointer dereference libmediascan/src/mediascan.c:207:3: warning: If memory allocation fails, then there is a possible null pointer dereference: dlna [nullPointerOutOfMemory] libmediascan/src/mediascan.c:206:26: note: Assuming allocation function fails libmediascan/src/mediascan.c:206:10: note: Assignment 'dlna=(struct dlna_t*)calloc(sizeof(struct dlna_t),1)', assigned value is 0 libmediascan/src/mediascan.c:207:3: note: Null pointer dereference libmediascan/src/mediascan.c:404:5: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] libmediascan/src/mediascan.c:403:60: note: Assuming allocation function fails libmediascan/src/mediascan.c:403:32: note: Assignment 'spec=(MediaScanThumbSpec*)calloc(sizeof(MediaScanThumbSpec),1)', assigned value is 0 libmediascan/src/mediascan.c:404:5: note: Null pointer dereference libmediascan/src/mediascan.c:405:5: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] libmediascan/src/mediascan.c:403:60: note: Assuming allocation function fails libmediascan/src/mediascan.c:403:32: note: Assignment 'spec=(MediaScanThumbSpec*)calloc(sizeof(MediaScanThumbSpec),1)', assigned value is 0 libmediascan/src/mediascan.c:405:5: note: Null pointer dereference libmediascan/src/mediascan.c:406:5: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] libmediascan/src/mediascan.c:403:60: note: Assuming allocation function fails libmediascan/src/mediascan.c:403:32: note: Assignment 'spec=(MediaScanThumbSpec*)calloc(sizeof(MediaScanThumbSpec),1)', assigned value is 0 libmediascan/src/mediascan.c:406:5: note: Null pointer dereference libmediascan/src/mediascan.c:407:5: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] libmediascan/src/mediascan.c:403:60: note: Assuming allocation function fails libmediascan/src/mediascan.c:403:32: note: Assignment 'spec=(MediaScanThumbSpec*)calloc(sizeof(MediaScanThumbSpec),1)', assigned value is 0 libmediascan/src/mediascan.c:407:5: note: Null pointer dereference libmediascan/src/mediascan.c:408:5: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] libmediascan/src/mediascan.c:403:60: note: Assuming allocation function fails libmediascan/src/mediascan.c:403:32: note: Assignment 'spec=(MediaScanThumbSpec*)calloc(sizeof(MediaScanThumbSpec),1)', assigned value is 0 libmediascan/src/mediascan.c:408:5: note: Null pointer dereference libmediascan/src/mediascan.c:409:5: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] libmediascan/src/mediascan.c:403:60: note: Assuming allocation function fails libmediascan/src/mediascan.c:403:32: note: Assignment 'spec=(MediaScanThumbSpec*)calloc(sizeof(MediaScanThumbSpec),1)', assigned value is 0 libmediascan/src/mediascan.c:409:5: note: Null pointer dereference libmediascan/src/mediascan.c:999:5: warning: If memory allocation fails, then there is a possible null pointer dereference: thread_data [nullPointerOutOfMemory] libmediascan/src/mediascan.c:996:45: note: Assuming allocation function fails libmediascan/src/mediascan.c:996:19: note: Assignment 'thread_data=(struct thread_data_type*)calloc(sizeof(struct thread_data_type),1)', assigned value is 0 libmediascan/src/mediascan.c:999:5: note: Null pointer dereference libmediascan/src/mediascan.c:1000:5: warning: If memory allocation fails, then there is a possible null pointer dereference: thread_data [nullPointerOutOfMemory] libmediascan/src/mediascan.c:996:45: note: Assuming allocation function fails libmediascan/src/mediascan.c:996:19: note: Assignment 'thread_data=(struct thread_data_type*)calloc(sizeof(struct thread_data_type),1)', assigned value is 0 libmediascan/src/mediascan.c:1000:5: note: Null pointer dereference libmediascan/src/mediascan.c:1114:11: style: Local variable 'ret' shadows outer variable [shadowVariable] libmediascan/src/mediascan.c:1035:7: note: Shadowed declaration libmediascan/src/mediascan.c:1114:11: note: Shadow variable libmediascan/src/mediascan.c:582:42: style: Parameter 'respipe' can be declared as const array [constParameter] libmediascan/src/mediascan.c:632:36: style: Parameter 's' can be declared as pointer to const [constParameterPointer] libmediascan/src/mediascan.c:692:32: style: Parameter 's' can be declared as pointer to const [constParameterPointer] libmediascan/src/mediascan.c:723:29: style: Parameter 's' can be declared as pointer to const [constParameterPointer] libmediascan/src/mediascan.c:725:9: style: Variable 'found' can be declared as pointer to const [constVariablePointer] libmediascan/src/mediascan.c:726:9: style: Variable 'ext' can be declared as pointer to const [constVariablePointer] libmediascan/src/mediascan.c:800:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] libmediascan/src/mediascan.c:1040:8: style: Variable 'tmp_full_path' can be declared as const array [constVariable] libmediascan/src/mediascan.c:1221:12: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] libmediascan/src/mediascan.c:1243:41: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] libmediascan/src/mediascan.c:1247:23: style: Variable 'ti' can be declared as pointer to const [constVariablePointer] libmediascan/src/mediascan.c:1092:19: error: Uninitialized variable: tmp_full_path [uninitvar] libmediascan/src/mediascan_linux.c:48:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan_sun.c:49:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFO [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan_unix.c:239:1: error: Unmatched '}'. Configuration: '__GNUC__=1'. [syntaxError] libmediascan/src/mediascan_win32.c:39:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_FEATURE_CHARS [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan_win32.c:106:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INVALID_HANDLE_VALUE [valueFlowBailoutIncompleteVar] libmediascan/src/mediascan_win32.c:168:3: warning: If memory allocation fails, then there is a possible null pointer dereference: subdirq [nullPointerOutOfMemory] libmediascan/src/mediascan_win32.c:167:19: note: Assuming allocation function fails libmediascan/src/mediascan_win32.c:167:19: note: Assignment 'subdirq=malloc(sizeof(struct dirq))', assigned value is 0 libmediascan/src/mediascan_win32.c:168:3: note: Null pointer dereference libmediascan/src/mediascan_win32.c:213:13: warning: If memory allocation fails, then there is a possible null pointer dereference: subdir_entry [nullPointerOutOfMemory] libmediascan/src/mediascan_win32.c:212:53: note: Assuming allocation function fails libmediascan/src/mediascan_win32.c:212:53: note: Assignment 'subdir_entry=malloc(sizeof(struct dirq_entry))', assigned value is 0 libmediascan/src/mediascan_win32.c:213:13: note: Null pointer dereference libmediascan/src/mediascan_win32.c:214:13: warning: If memory allocation fails, then there is a possible null pointer dereference: subdir_entry [nullPointerOutOfMemory] libmediascan/src/mediascan_win32.c:212:53: note: Assuming allocation function fails libmediascan/src/mediascan_win32.c:212:53: note: Assignment 'subdir_entry=malloc(sizeof(struct dirq_entry))', assigned value is 0 libmediascan/src/mediascan_win32.c:214:13: note: Null pointer dereference libmediascan/src/mediascan_win32.c:226:13: warning: If memory allocation fails, then there is a possible null pointer dereference: parent_entry [nullPointerOutOfMemory] libmediascan/src/mediascan_win32.c:225:34: note: Assuming allocation function fails libmediascan/src/mediascan_win32.c:225:34: note: Assignment 'parent_entry=malloc(sizeof(struct dirq_entry))', assigned value is 0 libmediascan/src/mediascan_win32.c:226:13: note: Null pointer dereference libmediascan/src/mediascan_win32.c:227:13: warning: If memory allocation fails, then there is a possible null pointer dereference: parent_entry [nullPointerOutOfMemory] libmediascan/src/mediascan_win32.c:225:34: note: Assuming allocation function fails libmediascan/src/mediascan_win32.c:225:34: note: Assignment 'parent_entry=malloc(sizeof(struct dirq_entry))', assigned value is 0 libmediascan/src/mediascan_win32.c:227:13: note: Null pointer dereference libmediascan/src/mediascan_win32.c:228:13: warning: If memory allocation fails, then there is a possible null pointer dereference: parent_entry [nullPointerOutOfMemory] libmediascan/src/mediascan_win32.c:225:34: note: Assuming allocation function fails libmediascan/src/mediascan_win32.c:225:34: note: Assignment 'parent_entry=malloc(sizeof(struct dirq_entry))', assigned value is 0 libmediascan/src/mediascan_win32.c:228:13: note: Null pointer dereference libmediascan/src/mediascan_win32.c:228:13: warning: If memory allocation fails, then there is a possible null pointer dereference: parent_entry->files [nullPointerOutOfMemory] libmediascan/src/mediascan_win32.c:227:41: note: Assuming allocation function fails libmediascan/src/mediascan_win32.c:227:41: note: Assignment 'parent_entry->files=malloc(sizeof(struct fileq))', assigned value is 0 libmediascan/src/mediascan_win32.c:228:13: note: Null pointer dereference libmediascan/src/mediascan_win32.c:229:13: warning: If memory allocation fails, then there is a possible null pointer dereference: parent_entry [nullPointerOutOfMemory] libmediascan/src/mediascan_win32.c:225:34: note: Assuming allocation function fails libmediascan/src/mediascan_win32.c:225:34: note: Assignment 'parent_entry=malloc(sizeof(struct dirq_entry))', assigned value is 0 libmediascan/src/mediascan_win32.c:229:13: note: Null pointer dereference libmediascan/src/mediascan_win32.c:234:11: warning: If memory allocation fails, then there is a possible null pointer dereference: entry [nullPointerOutOfMemory] libmediascan/src/mediascan_win32.c:233:25: note: Assuming allocation function fails libmediascan/src/mediascan_win32.c:233:25: note: Assignment 'entry=malloc(sizeof(struct fileq_entry))', assigned value is 0 libmediascan/src/mediascan_win32.c:234:11: note: Null pointer dereference libmediascan/src/mediascan_win32.c:235:11: warning: If memory allocation fails, then there is a possible null pointer dereference: entry [nullPointerOutOfMemory] libmediascan/src/mediascan_win32.c:233:25: note: Assuming allocation function fails libmediascan/src/mediascan_win32.c:233:25: note: Assignment 'entry=malloc(sizeof(struct fileq_entry))', assigned value is 0 libmediascan/src/mediascan_win32.c:235:11: note: Null pointer dereference libmediascan/src/mediascan_win32.c:236:11: warning: If memory allocation fails, then there is a possible null pointer dereference: entry [nullPointerOutOfMemory] libmediascan/src/mediascan_win32.c:233:25: note: Assuming allocation function fails libmediascan/src/mediascan_win32.c:233:25: note: Assignment 'entry=malloc(sizeof(struct fileq_entry))', assigned value is 0 libmediascan/src/mediascan_win32.c:236:11: note: Null pointer dereference libmediascan/src/mediascan_win32.c:236:11: warning: If memory allocation fails, then there is a possible null pointer dereference: parent_entry [nullPointerOutOfMemory] libmediascan/src/mediascan_win32.c:225:34: note: Assuming allocation function fails libmediascan/src/mediascan_win32.c:225:34: note: Assignment 'parent_entry=malloc(sizeof(struct dirq_entry))', assigned value is 0 libmediascan/src/mediascan_win32.c:236:11: note: Null pointer dereference libmediascan/src/mediascan_win32.c:38:8: style: Unused variable: szProductCode [unusedVariable] libmediascan/src/mediascan_win32.c:39:8: style: Unused variable: szFeatureId [unusedVariable] libmediascan/src/mediascan_win32.c:40:8: style: Unused variable: szComponentCode [unusedVariable] libmediascan/src/progress.c:33:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanProgress [valueFlowBailoutIncompleteVar] libmediascan/src/progress.c:52:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanProgress [valueFlowBailoutIncompleteVar] libmediascan/src/progress.c:104:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/src/progress.c:148:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/progress.c:53:10: warning: If memory allocation fails, then there is a possible null pointer dereference: pcopy [nullPointerOutOfMemory] libmediascan/src/progress.c:52:36: note: Assuming allocation function fails libmediascan/src/progress.c:52:36: note: Assignment 'pcopy=malloc(sizeof(MediaScanProgress))', assigned value is 0 libmediascan/src/progress.c:53:10: note: Null pointer dereference libmediascan/src/progress.c:51:53: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] libmediascan/src/result.c:167:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_USE_EXTENSION [valueFlowBailoutIncompleteVar] libmediascan/src/result.c:207:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WARN [valueFlowBailoutIncompleteVar] libmediascan/src/result.c:222:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/result.c:268:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_USE_EXTENSION [valueFlowBailoutIncompleteVar] libmediascan/src/result.c:436:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_ERROR_FILE [valueFlowBailoutIncompleteVar] libmediascan/src/result.c:513:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/src/result.c:547:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_ERROR_TYPE_INVALID_PARAMS [valueFlowBailoutIncompleteVar] libmediascan/src/result.c:610:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/result.c:634:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] libmediascan/src/result.c:682:5: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libmediascan/src/result.c:405:21: style: Local variable 'i' shadows outer variable [shadowVariable] libmediascan/src/result.c:266:9: note: Shadowed declaration libmediascan/src/result.c:405:21: note: Shadow variable libmediascan/src/result.c:365:14: style: Variable 'ac' can be declared as pointer to const [constVariablePointer] libmediascan/src/tag.c:10:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanTag [valueFlowBailoutIncompleteVar] libmediascan/src/tag.c:33:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/tag.c:40:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_TAG_ITEMS [valueFlowBailoutIncompleteVar] libmediascan/src/tag_item.c:10:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanTagItem [valueFlowBailoutIncompleteVar] libmediascan/src/tag_item.c:28:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/thread.c:108:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanThread [valueFlowBailoutIncompleteVar] libmediascan/src/thread.c:171:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/src/thread.c:204:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/thread.c:229:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/src/thread.c:237:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/src/thread.c:256:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/src/thread.c:288:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/src/thread.c:118:3: warning: If memory allocation fails, then there is a possible null pointer dereference: (struct equeue*)t->event_queue [nullPointerOutOfMemory] libmediascan/src/thread.c:117:26: note: Assuming allocation function fails libmediascan/src/thread.c:117:26: note: Assignment 't->event_queue=malloc(sizeof(struct equeue))', assigned value is 0 libmediascan/src/thread.c:118:3: note: Null pointer dereference libmediascan/src/thread.c:173:3: warning: If memory allocation fails, then there is a possible null pointer dereference: entry [nullPointerOutOfMemory] libmediascan/src/thread.c:170:38: note: Assuming allocation function fails libmediascan/src/thread.c:170:38: note: Assignment 'entry=malloc(sizeof(struct equeue_entry))', assigned value is 0 libmediascan/src/thread.c:173:3: note: Null pointer dereference libmediascan/src/thread.c:174:3: warning: If memory allocation fails, then there is a possible null pointer dereference: entry [nullPointerOutOfMemory] libmediascan/src/thread.c:170:38: note: Assuming allocation function fails libmediascan/src/thread.c:170:38: note: Assignment 'entry=malloc(sizeof(struct equeue_entry))', assigned value is 0 libmediascan/src/thread.c:174:3: note: Null pointer dereference libmediascan/src/thread.c:177:3: warning: If memory allocation fails, then there is a possible null pointer dereference: entry [nullPointerOutOfMemory] libmediascan/src/thread.c:170:38: note: Assuming allocation function fails libmediascan/src/thread.c:170:38: note: Assignment 'entry=malloc(sizeof(struct equeue_entry))', assigned value is 0 libmediascan/src/thread.c:177:3: note: Null pointer dereference libmediascan/src/thread.c:106:74: style:inconclusive: Function 'thread_create' argument 2 names different: declaration '' definition 'thread_data'. [funcArgNamesDifferentUnnamed] libmediascan/src/thread.c:106:91: style:inconclusive: Function 'thread_create' argument 3 names different: declaration '' definition 'optional_fds'. [funcArgNamesDifferentUnnamed] libmediascan/src/thread.c:106:91: style: Parameter 'optional_fds' can be declared as const array [constParameter] libmediascan/src/thread.c:221:24: style: Parameter 'spipe' can be declared as const array [constParameter] libmediascan/src/thread.c:222:15: style: Variable 'counter' can be declared as const array [constVariable] libmediascan/src/thread.c:234:29: style: Parameter 'spipe' can be declared as const array [constParameter] libmediascan/src/thumb.c:22:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanThumbSpec [valueFlowBailoutIncompleteVar] libmediascan/src/thumb.c:155:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/src/thumb.c:220:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WARN [valueFlowBailoutIncompleteVar] libmediascan/src/thumb.c:346:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WARN [valueFlowBailoutIncompleteVar] libmediascan/src/thumb.c:23:10: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] libmediascan/src/thumb.c:22:58: note: Assuming allocation function fails libmediascan/src/thumb.c:22:30: note: Assignment 'spec=(MediaScanThumbSpec*)calloc(sizeof(MediaScanThumbSpec),1)', assigned value is 0 libmediascan/src/thumb.c:23:10: note: Null pointer dereference libmediascan/src/thumb.c:45:8: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] libmediascan/src/thumb.c:22:58: note: Assuming allocation function fails libmediascan/src/thumb.c:22:30: note: Assignment 'spec=(MediaScanThumbSpec*)calloc(sizeof(MediaScanThumbSpec),1)', assigned value is 0 libmediascan/src/thumb.c:45:8: note: Null pointer dereference libmediascan/src/thumb.c:58:18: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] libmediascan/src/thumb.c:22:58: note: Assuming allocation function fails libmediascan/src/thumb.c:22:30: note: Assignment 'spec=(MediaScanThumbSpec*)calloc(sizeof(MediaScanThumbSpec),1)', assigned value is 0 libmediascan/src/thumb.c:58:18: note: Null pointer dereference libmediascan/src/thumb.c:59:19: warning: If memory allocation fails, then there is a possible null pointer dereference: spec [nullPointerOutOfMemory] libmediascan/src/thumb.c:22:58: note: Assuming allocation function fails libmediascan/src/thumb.c:22:30: note: Assignment 'spec=(MediaScanThumbSpec*)calloc(sizeof(MediaScanThumbSpec),1)', assigned value is 0 libmediascan/src/thumb.c:59:19: note: Null pointer dereference libmediascan/src/thumb.c:18:80: style:inconclusive: Function 'thumb_create_from_image' argument 2 names different: declaration 'spec' definition 'spec_orig'. [funcArgNamesDifferent] libmediascan/src/thumb.h:6:80: note: Function 'thumb_create_from_image' argument 2 names different: declaration 'spec' definition 'spec_orig'. libmediascan/src/thumb.c:18:80: note: Function 'thumb_create_from_image' argument 2 names different: declaration 'spec' definition 'spec_orig'. libmediascan/src/thumb.c:18:80: style: Parameter 'spec_orig' can be declared as pointer to const [constParameterPointer] libmediascan/src/thumb.c:188:55: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] libmediascan/src/thumb.c:188:76: style: Parameter 'dst' can be declared as pointer to const [constParameterPointer] libmediascan/src/thumb.c:228:90: style: Parameter 'spec' can be declared as pointer to const [constParameterPointer] libmediascan/src/util.c:82:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/util.c:103:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] libmediascan/src/video.c:37:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libmediascan/src/video.c:41:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanVideo [valueFlowBailoutIncompleteVar] libmediascan/src/video.c:61:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_TIME_BASE [valueFlowBailoutIncompleteVar] libmediascan/src/video.c:235:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MEMORY [valueFlowBailoutIncompleteVar] libmediascan/src/wav.c:36:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERR [valueFlowBailoutIncompleteVar] libmediascan/src/wav.c:107:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/src/wav.c:211:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable channels [valueFlowBailoutIncompleteVar] libmediascan/src/wav.c:302:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable info [valueFlowBailoutIncompleteVar] libmediascan/src/wav.c:107:5: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libmediascan/src/wav.c:195:11: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] libmediascan/src/wav.c:47:11: style: Variable 'bptr' can be declared as pointer to const [constVariablePointer] libmediascan/src/wav.c:139:22: style: Variable 'bptr' can be declared as pointer to const [constVariablePointer] libmediascan/src/wav.c:207:19: style: Variable 'format' is assigned a value that is never used. [unreadVariable] libmediascan/src/win32_port.c:44:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GetFileExInfoStandard [valueFlowBailoutIncompleteVar] libmediascan/src/win32_port.c:73:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] libmediascan/src/win32_port.c:103:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GENERIC_READ [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:805:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ConvertINetString [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:824:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:850:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:857:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:865:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:964:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1115:98: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MB_ERR_INVALID_CHARS [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1298:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1314:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1338:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1349:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1382:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1393:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1432:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1444:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1456:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1481:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1510:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1525:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1609:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1702:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable S_OK [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:1777:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] libmediascan/src/win_iconv.c:825:12: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] libmediascan/src/win_iconv.c:838:10: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] libmediascan/src/win_iconv.c:841:25: style:inconclusive: Function 'iconv_close' argument 1 names different: declaration 'cd' definition '_cd'. [funcArgNamesDifferent] libmediascan/src/win_iconv.c:102:25: note: Function 'iconv_close' argument 1 names different: declaration 'cd' definition '_cd'. libmediascan/src/win_iconv.c:841:25: note: Function 'iconv_close' argument 1 names different: declaration 'cd' definition '_cd'. libmediascan/src/win_iconv.c:854:22: style:inconclusive: Function 'iconv' argument 1 names different: declaration 'cd' definition '_cd'. [funcArgNamesDifferent] libmediascan/src/win_iconv.c:103:22: note: Function 'iconv' argument 1 names different: declaration 'cd' definition '_cd'. libmediascan/src/win_iconv.c:854:22: note: Function 'iconv' argument 1 names different: declaration 'cd' definition '_cd'. libmediascan/src/win_iconv.c:877:33: style:inconclusive: Function 'win_iconv' argument 1 names different: declaration 'cd' definition '_cd'. [funcArgNamesDifferent] libmediascan/src/win_iconv.c:161:33: note: Function 'win_iconv' argument 1 names different: declaration 'cd' definition '_cd'. libmediascan/src/win_iconv.c:877:33: note: Function 'win_iconv' argument 1 names different: declaration 'cd' definition '_cd'. libmediascan/src/win_iconv.c:961:41: style:inconclusive: Function 'make_csconv' argument 1 names different: declaration 'name' definition '_name'. [funcArgNamesDifferent] libmediascan/src/win_iconv.c:164:41: note: Function 'make_csconv' argument 1 names different: declaration 'name' definition '_name'. libmediascan/src/win_iconv.c:961:41: note: Function 'make_csconv' argument 1 names different: declaration 'name' definition '_name'. libmediascan/src/win_iconv.c:885:13: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] libmediascan/src/win_iconv.c:1291:34: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'sbcs_mblen' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/src/win_iconv.c:1021:18: note: You might need to cast the function pointer here libmediascan/src/win_iconv.c:1291:34: note: Parameter 'cv' can be declared as pointer to const libmediascan/src/win_iconv.c:1302:34: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'mbcs_mblen' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/src/win_iconv.c:1025:18: note: You might need to cast the function pointer here libmediascan/src/win_iconv.c:1302:34: note: Parameter 'cv' can be declared as pointer to const libmediascan/src/win_iconv.c:1321:34: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'utf8_mblen' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/src/win_iconv.c:1003:16: note: You might need to cast the function pointer here libmediascan/src/win_iconv.c:1321:34: note: Parameter 'cv' can be declared as pointer to const libmediascan/src/win_iconv.c:1344:35: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'eucjp_mblen' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/src/win_iconv.c:1014:16: note: You might need to cast the function pointer here libmediascan/src/win_iconv.c:1344:35: note: Parameter 'cv' can be declared as pointer to const libmediascan/src/win_iconv.c:1454:36: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'utf16_mbtowc' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/src/win_iconv.c:989:17: note: You might need to cast the function pointer here libmediascan/src/win_iconv.c:1454:36: note: Parameter 'cv' can be declared as pointer to const libmediascan/src/win_iconv.c:1479:36: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'utf16_wctomb' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/src/win_iconv.c:990:17: note: You might need to cast the function pointer here libmediascan/src/win_iconv.c:1479:36: note: Parameter 'cv' can be declared as pointer to const libmediascan/src/win_iconv.c:1479:49: style: Parameter 'wbuf' can be declared as pointer to const. However it seems that 'utf16_wctomb' is a callback function, if 'wbuf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/src/win_iconv.c:990:17: note: You might need to cast the function pointer here libmediascan/src/win_iconv.c:1479:49: note: Parameter 'wbuf' can be declared as pointer to const libmediascan/src/win_iconv.c:1506:36: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'utf32_mbtowc' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/src/win_iconv.c:995:17: note: You might need to cast the function pointer here libmediascan/src/win_iconv.c:1506:36: note: Parameter 'cv' can be declared as pointer to const libmediascan/src/win_iconv.c:1521:36: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'utf32_wctomb' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/src/win_iconv.c:996:17: note: You might need to cast the function pointer here libmediascan/src/win_iconv.c:1521:36: note: Parameter 'cv' can be declared as pointer to const libmediascan/src/win_iconv.c:1521:49: style: Parameter 'wbuf' can be declared as pointer to const. However it seems that 'utf32_wctomb' is a callback function, if 'wbuf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/src/win_iconv.c:996:17: note: You might need to cast the function pointer here libmediascan/src/win_iconv.c:1521:49: note: Parameter 'wbuf' can be declared as pointer to const libmediascan/src/win_iconv.c:1766:39: style: Parameter 'cv' can be declared as pointer to const. However it seems that 'iso2022jp_flush' is a callback function, if 'cv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/src/win_iconv.c:1009:16: note: You might need to cast the function pointer here libmediascan/src/win_iconv.c:1766:39: note: Parameter 'cv' can be declared as pointer to const libmediascan/test/api_test.c:47:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libmediascan/test/api_test.c:197:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFO [valueFlowBailoutIncompleteVar] libmediascan/test/api_test.c:118:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'signed long'. [invalidPrintfArgType_sint] libmediascan/test/common.h:28:12: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] libmediascan/test/common.h:26:25: note: Assuming allocation function fails libmediascan/test/common.h:26:11: note: Assignment 'buf=(char*)malloc(1024)', assigned value is 0 libmediascan/test/common.h:28:12: note: Null pointer dereference libmediascan/test/common.h:46:10: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] libmediascan/test/common.h:38:29: note: Assuming allocation function fails libmediascan/test/common.h:38:15: note: Assignment 'buf=(char*)malloc(1024)', assigned value is 0 libmediascan/test/common.h:46:10: note: Null pointer dereference libmediascan/test/api_test.c:53:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/api_test.c:54:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/api_test.c:29:43: style: Parameter 's' can be declared as pointer to const [constParameterPointer] libmediascan/test/api_test.c:29:63: style: Parameter 'result' can be declared as pointer to const [constParameterPointer] libmediascan/test/api_test.c:29:77: style: Parameter 'userdata' can be declared as pointer to const [constParameterPointer] libmediascan/test/api_test.c:46:61: style: Parameter 'error' can be declared as pointer to const. However it seems that 'my_error_callback' is a callback function, if 'error' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/api_test.c:99:28: note: You might need to cast the function pointer here libmediascan/test/api_test.c:46:61: note: Parameter 'error' can be declared as pointer to const libmediascan/test/common.h:39:9: style: Variable 'last_slash' can be declared as pointer to const [constVariablePointer] libmediascan/test/common.h:41:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] libmediascan/test/api_thumbnail_test.c:48:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libmediascan/test/api_thumbnail_test.c:64:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanError [valueFlowBailoutIncompleteVar] libmediascan/test/api_thumbnail_test.c:237:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TYPE_IMAGE [valueFlowBailoutIncompleteVar] libmediascan/test/api_thumbnail_test.c:295:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PNG_COLOR_TYPE_RGB_ALPHA [valueFlowBailoutIncompleteVar] libmediascan/test/api_thumbnail_test.c:419:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable THUMB_PNG [valueFlowBailoutIncompleteVar] libmediascan/test/api_thumbnail_test.c:440:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable THUMB_PNG [valueFlowBailoutIncompleteVar] libmediascan/test/api_thumbnail_test.c:304:5: error: Resource leak: fp [resourceLeak] libmediascan/test/api_thumbnail_test.c:321:5: error: Resource leak: fp [resourceLeak] libmediascan/test/api_thumbnail_test.c:137:42: style: Parameter 's' can be declared as pointer to const. However it seems that 'my_error_callback' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/api_thumbnail_test.c:438:29: note: You might need to cast the function pointer here libmediascan/test/api_thumbnail_test.c:137:42: note: Parameter 's' can be declared as pointer to const libmediascan/test/api_thumbnail_test.c:137:61: style: Parameter 'error' can be declared as pointer to const. However it seems that 'my_error_callback' is a callback function, if 'error' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/api_thumbnail_test.c:438:29: note: You might need to cast the function pointer here libmediascan/test/api_thumbnail_test.c:137:61: note: Parameter 'error' can be declared as pointer to const libmediascan/test/api_thumbnail_test.c:137:74: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'my_error_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/api_thumbnail_test.c:438:29: note: You might need to cast the function pointer here libmediascan/test/api_thumbnail_test.c:137:74: note: Parameter 'userdata' can be declared as pointer to const libmediascan/test/api_thumbnail_test.c:293:27: style: Parameter 'file_name' can be declared as pointer to const [constParameterPointer] libmediascan/test/api_thumbnail_test.c:405:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] libmediascan/test/api_thumbnail_test.c:430:8: style: Unused variable: tfp [unusedVariable] libmediascan/test/api_thumbnail_test.c:432:9: style: Unused variable: n [unusedVariable] libmediascan/test/api_thumbnail_test.c:433:18: style: Unused variable: thumb [unusedVariable] libmediascan/test/api_thumbnail_test.c:434:10: style: Unused variable: dbuf [unusedVariable] libmediascan/test/image_test.c:17:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libmediascan/test/image_test.c:21:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libmediascan/test/image_test.c:40:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/test/image_test.c:25:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/image_test.c:26:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/image_test.c:11:43: style: Parameter 's' can be declared as pointer to const. However it seems that 'my_result_callback' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/image_test.c:59:31: note: You might need to cast the function pointer here libmediascan/test/image_test.c:11:43: note: Parameter 's' can be declared as pointer to const libmediascan/test/image_test.c:11:63: style: Parameter 'result' can be declared as pointer to const. However it seems that 'my_result_callback' is a callback function, if 'result' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/image_test.c:59:31: note: You might need to cast the function pointer here libmediascan/test/image_test.c:11:63: note: Parameter 'result' can be declared as pointer to const libmediascan/test/image_test.c:11:77: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'my_result_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/image_test.c:59:31: note: You might need to cast the function pointer here libmediascan/test/image_test.c:11:77: note: Parameter 'userdata' can be declared as pointer to const libmediascan/test/image_test.c:16:61: style: Parameter 'error' can be declared as pointer to const. However it seems that 'my_error_callback' is a callback function, if 'error' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/image_test.c:60:30: note: You might need to cast the function pointer here libmediascan/test/image_test.c:16:61: note: Parameter 'error' can be declared as pointer to const libmediascan/test/image_test.c:30:43: style: Parameter 's' can be declared as pointer to const. However it seems that 'my_finish_callback' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/image_test.c:62:31: note: You might need to cast the function pointer here libmediascan/test/image_test.c:30:43: note: Parameter 's' can be declared as pointer to const libmediascan/test/image_test.c:30:52: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'my_finish_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/image_test.c:62:31: note: You might need to cast the function pointer here libmediascan/test/image_test.c:30:52: note: Parameter 'userdata' can be declared as pointer to const libmediascan/test/scan_test.c:13:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_LOG_ERROR [valueFlowBailoutIncompleteVar] libmediascan/test/scan_test.c:23:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:24:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:25:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:26:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:27:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:28:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:29:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:31:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:32:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:33:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:34:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:35:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:36:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:37:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:38:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:39:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:40:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:41:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:42:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:50:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:51:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:54:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:55:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:58:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:59:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:62:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:63:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:66:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:67:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:70:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:71:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:74:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:75:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:78:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:79:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:82:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:83:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:86:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:87:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:90:11: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:103:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/scan_test.c:111:5: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/tap.c:250:2: error: failed to evaluate #if condition, undefined function-like macro invocation: defind( ... ) [syntaxError] libmediascan/test/test.c:49:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanError [valueFlowBailoutIncompleteVar] libmediascan/test/test.c:176:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_PATHS [valueFlowBailoutIncompleteVar] libmediascan/test/test.c:229:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ms_errno [valueFlowBailoutIncompleteVar] libmediascan/test/test.c:271:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ms_errno [valueFlowBailoutIncompleteVar] libmediascan/test/test.c:374:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanError [valueFlowBailoutIncompleteVar] libmediascan/test/test.c:397:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ms_errno [valueFlowBailoutIncompleteVar] libmediascan/test/test.c:457:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ms_errno [valueFlowBailoutIncompleteVar] libmediascan/test/test.c:539:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ms_errno [valueFlowBailoutIncompleteVar] libmediascan/test/test.c:578:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CUE_SUCCESS [valueFlowBailoutIncompleteVar] libmediascan/test/test.c:513:3: style: Obsolescent function 'utimes' called. It is recommended to use 'utimensat' instead. [prohibitedutimesCalled] libmediascan/test/test.c:42:63: style: Parameter 'r' can be declared as pointer to const. However it seems that 'my_result_callback' is a callback function, if 'r' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test.c:533:28: note: You might need to cast the function pointer here libmediascan/test/test.c:42:63: note: Parameter 'r' can be declared as pointer to const libmediascan/test/test.c:79:42: style: Parameter 's' can be declared as pointer to const. However it seems that 'my_error_callback' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test.c:537:27: note: You might need to cast the function pointer here libmediascan/test/test.c:79:42: note: Parameter 's' can be declared as pointer to const libmediascan/test/test.c:79:61: style: Parameter 'error' can be declared as pointer to const. However it seems that 'my_error_callback' is a callback function, if 'error' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test.c:537:27: note: You might need to cast the function pointer here libmediascan/test/test.c:79:61: note: Parameter 'error' can be declared as pointer to const libmediascan/test/test.c:79:74: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'my_error_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test.c:537:27: note: You might need to cast the function pointer here libmediascan/test/test.c:79:74: note: Parameter 'userdata' can be declared as pointer to const libmediascan/test/test.c:280:47: style: Parameter 's' can be declared as pointer to const. However it seems that 'my_progress_callback_6' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test.c:326:30: note: You might need to cast the function pointer here libmediascan/test/test.c:280:47: note: Parameter 's' can be declared as pointer to const libmediascan/test/test.c:280:69: style: Parameter 'progress' can be declared as pointer to const. However it seems that 'my_progress_callback_6' is a callback function, if 'progress' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test.c:326:30: note: You might need to cast the function pointer here libmediascan/test/test.c:280:69: note: Parameter 'progress' can be declared as pointer to const libmediascan/test/test.c:280:85: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'my_progress_callback_6' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test.c:326:30: note: You might need to cast the function pointer here libmediascan/test/test.c:280:85: note: Parameter 'userdata' can be declared as pointer to const libmediascan/test/test.c:365:45: style: Parameter 's' can be declared as pointer to const. However it seems that 'my_result_callback_1' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test.c:449:28: note: You might need to cast the function pointer here libmediascan/test/test.c:365:45: note: Parameter 's' can be declared as pointer to const libmediascan/test/test.c:365:65: style: Parameter 'result' can be declared as pointer to const. However it seems that 'my_result_callback_1' is a callback function, if 'result' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test.c:449:28: note: You might need to cast the function pointer here libmediascan/test/test.c:365:65: note: Parameter 'result' can be declared as pointer to const libmediascan/test/test.c:365:79: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'my_result_callback_1' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test.c:449:28: note: You might need to cast the function pointer here libmediascan/test/test.c:365:79: note: Parameter 'userdata' can be declared as pointer to const libmediascan/test/test.c:247:46: style: Variable 'out_dir' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:54:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] libmediascan/test/test_background.c:91:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] libmediascan/test/test_background.c:118:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libmediascan/test/test_background.c:154:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libmediascan/test/test_background.c:159:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libmediascan/test/test_background.c:345:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ms_errno [valueFlowBailoutIncompleteVar] libmediascan/test/test_background.c:390:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ms_errno [valueFlowBailoutIncompleteVar] libmediascan/test/test_background.c:422:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_RESCAN [valueFlowBailoutIncompleteVar] libmediascan/test/test_background.c:542:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_RESCAN [valueFlowBailoutIncompleteVar] libmediascan/test/test_background.c:580:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_RESCAN [valueFlowBailoutIncompleteVar] libmediascan/test/test_background.c:620:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ms_errno [valueFlowBailoutIncompleteVar] libmediascan/test/test_background.c:699:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEBUG [valueFlowBailoutIncompleteVar] libmediascan/test/test_background.c:29:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libmediascan/test/test_background.c:29:12: warning: Invalid usleep() argument nr 1. The value is 1000000 but the valid values are '0:999999'. [invalidFunctionArg] libmediascan/test/test_background.c:838:8: note: Calling function 'Sleep', 1st argument '1000' value is 1000 libmediascan/test/test_background.c:29:12: note: Invalid argument libmediascan/test/test_background.c:112:63: style: Parameter 'r' can be declared as pointer to const. However it seems that 'my_result_callback' is a callback function, if 'r' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test_background.c:801:28: note: You might need to cast the function pointer here libmediascan/test/test_background.c:112:63: note: Parameter 'r' can be declared as pointer to const libmediascan/test/test_background.c:151:61: style: Parameter 'error' can be declared as pointer to const. However it seems that 'my_error_callback' is a callback function, if 'error' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test_background.c:805:27: note: You might need to cast the function pointer here libmediascan/test/test_background.c:151:61: note: Parameter 'error' can be declared as pointer to const libmediascan/test/test_background.c:62:24: style: Variable 'status' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:99:24: style: Variable 'status' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:286:25: style: Variable 'data_file2' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:287:25: style: Variable 'data_file3' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:288:25: style: Variable 'data_file4' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:289:25: style: Variable 'data_file5' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:337:25: style: Variable 'test_path4' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:604:24: style: Variable 'test_path' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:607:25: style: Variable 'test_file1' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:608:25: style: Variable 'test_file2' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:610:25: style: Variable 'test_file4' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:611:30: style: Variable 'dest_test_file1' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:612:7: style: Unused variable: out_path [unusedVariable] libmediascan/test/test_background.c:686:24: style: Variable 'test_path' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:689:25: style: Variable 'test_file2' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:691:25: style: Variable 'test_file4' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:693:25: style: Variable 'test_file6' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:695:30: style: Variable 'dest_test_file4' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_background.c:696:7: style: Unused variable: out_path [unusedVariable] libmediascan/test/test_defects.c:54:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] libmediascan/test/test_defects.c:91:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WNOHANG [valueFlowBailoutIncompleteVar] libmediascan/test/test_defects.c:119:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libmediascan/test/test_defects.c:159:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libmediascan/test/test_defects.c:164:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libmediascan/test/test_defects.c:178:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_RESCAN [valueFlowBailoutIncompleteVar] libmediascan/test/test_defects.c:214:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_RESCAN [valueFlowBailoutIncompleteVar] libmediascan/test/test_defects.c:251:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_RESCAN [valueFlowBailoutIncompleteVar] libmediascan/test/test_defects.c:288:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_RESCAN [valueFlowBailoutIncompleteVar] libmediascan/test/test_defects.c:325:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_RESCAN [valueFlowBailoutIncompleteVar] libmediascan/test/test_defects.c:361:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_RESCAN [valueFlowBailoutIncompleteVar] libmediascan/test/test_defects.c:414:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_RESCAN [valueFlowBailoutIncompleteVar] libmediascan/test/test_defects.c:29:2: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] libmediascan/test/test_defects.c:438:2: portability: %d in format string (no. 1) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] libmediascan/test/test_defects.c:156:61: style: Parameter 'error' can be declared as pointer to const. However it seems that 'my_error_callback' is a callback function, if 'error' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test_defects.c:427:27: note: You might need to cast the function pointer here libmediascan/test/test_defects.c:156:61: note: Parameter 'error' can be declared as pointer to const libmediascan/test/test_defects.c:62:24: style: Variable 'status' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_defects.c:99:24: style: Variable 'status' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_images.c:21:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanError [valueFlowBailoutIncompleteVar] libmediascan/test/test_images.c:106:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TYPE_UNKNOWN [valueFlowBailoutIncompleteVar] libmediascan/test/test_images.c:14:63: style: Parameter 'r' can be declared as pointer to const. However it seems that 'my_result_callback' is a callback function, if 'r' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test_images.c:100:28: note: You might need to cast the function pointer here libmediascan/test/test_images.c:14:63: note: Parameter 'r' can be declared as pointer to const libmediascan/test/test_images.c:51:42: style: Parameter 's' can be declared as pointer to const. However it seems that 'my_error_callback' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test_images.c:104:27: note: You might need to cast the function pointer here libmediascan/test/test_images.c:51:42: note: Parameter 's' can be declared as pointer to const libmediascan/test/test_images.c:51:61: style: Parameter 'error' can be declared as pointer to const. However it seems that 'my_error_callback' is a callback function, if 'error' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test_images.c:104:27: note: You might need to cast the function pointer here libmediascan/test/test_images.c:51:61: note: Parameter 'error' can be declared as pointer to const libmediascan/test/test_images.c:51:74: style: Parameter 'userdata' can be declared as pointer to const. However it seems that 'my_error_callback' is a callback function, if 'userdata' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/test_images.c:104:27: note: You might need to cast the function pointer here libmediascan/test/test_images.c:51:74: note: Parameter 'userdata' can be declared as pointer to const libmediascan/test/test_images.c:84:35: style: Variable 'dir' is assigned a value that is never used. [unreadVariable] libmediascan/test/test_images.c:57:8: style: Unused variable: time1 [unusedVariable] libmediascan/test/test_images.c:57:15: style: Unused variable: time2 [unusedVariable] libmediascan/test/test_images.c:85:18: style: Unused variable: now [unusedVariable] libmediascan/test/video_dlna_test.c:82:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TYPE_VIDEO [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:233:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:246:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanError [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:314:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:362:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:390:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:683:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:818:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:953:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:1041:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:1257:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:1346:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:1482:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:1524:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:1788:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:1861:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:2013:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:2102:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:2270:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:2423:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:2590:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MediaScanResult [valueFlowBailoutIncompleteVar] libmediascan/test/video_dlna_test.c:82:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:83:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:84:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:85:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:86:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:87:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:88:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:89:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:90:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:91:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:92:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:93:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:94:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:95:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:104:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:105:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:106:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:107:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:108:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:109:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:110:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:111:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:112:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:113:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:114:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:121:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:122:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:123:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:124:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:125:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:126:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:127:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:128:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:129:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:130:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:137:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:138:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:139:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:140:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:141:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:142:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:149:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:150:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:151:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:152:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:153:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:154:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:155:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:156:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:157:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:158:7: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:318:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:321:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:322:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:323:3: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:326:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:327:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:328:3: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:333:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:334:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:335:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:336:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:366:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:369:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:370:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:371:3: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:375:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:376:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:377:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:378:2: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] libmediascan/test/video_dlna_test.c:69:63: style: Parameter 'r' can be declared as pointer to const. However it seems that 'my_result_callback' is a callback function, if 'r' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/video_dlna_test.c:2628:29: note: You might need to cast the function pointer here libmediascan/test/video_dlna_test.c:69:63: note: Parameter 'r' can be declared as pointer to const libmediascan/test/video_dlna_test.c:70:9: style: Variable 'file' can be declared as pointer to const [constVariablePointer] libmediascan/test/video_dlna_test.c:232:61: style: Parameter 'error' can be declared as pointer to const. However it seems that 'my_error_callback' is a callback function, if 'error' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/video_dlna_test.c:2629:28: note: You might need to cast the function pointer here libmediascan/test/video_dlna_test.c:232:61: note: Parameter 'error' can be declared as pointer to const libmediascan/test/video_dlna_test.c:239:64: style: Parameter 'r' can be declared as pointer to const. However it seems that 'my_result_callback2' is a callback function, if 'r' is declared with const you might also need to cast function pointer(s). [constParameterCallback] libmediascan/test/video_dlna_test.c:357:31: note: You might need to cast the function pointer here libmediascan/test/video_dlna_test.c:239:64: note: Parameter 'r' can be declared as pointer to const libmediascan/test/video_dlna_test.c:2642:22: style: Parameter 'argv' can be declared as const array [constParameter] libmediascan/test/video_dlna_test.c:286:7: style: struct member 'ExpectedResult::audio_vbr' is never used. [unusedStructMember] libmediascan/test/video_dlna_test.c:290:8: style: struct member 'ExpectedResult::video_codec' is never used. [unusedStructMember] libmediascan/test/video_dlna_test.c:2645:22: style: Unused variable: expected [unusedVariable] libmediascan/src/buffer.c:44:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buffer [ctunullpointerOutOfMemory] libmediascan/src/image_png.c:333:25: note: Assuming allocation function fails libmediascan/src/image_png.c:333:9: note: Assignment 'buf=(struct Buffer*)malloc(sizeof(struct Buffer))', assigned value is 0 libmediascan/src/image_png.c:334:14: note: Calling function buffer_init, 1st argument is null libmediascan/src/buffer.c:44:3: note: Dereferencing argument buffer that is null libmediascan/src/buffer.c:181:10: warning: Null pointer dereference: buffer [ctunullpointer] libmediascan/src/result.c:220:25: note: Assuming allocation function fails libmediascan/src/result.c:220:9: note: Assignment 'buf=(struct Buffer*)malloc(sizeof(struct Buffer))', assigned value is 0 libmediascan/src/result.c:226:25: note: Calling function buffer_check_load, 1st argument is null libmediascan/src/buffer.c:934:7: note: Calling function buffer_len, 1st argument is null libmediascan/src/buffer.c:181:10: note: Dereferencing argument buffer that is null diff: 2.20.0 libmediascan/src/libdlna/profiles.c:447:11: error: Uninitialized variable: protocol [legacyUninitvar] head libmediascan/src/libdlna/profiles.c:447:11: warning: Uninitialized variable: protocol [uninitvar] libmediascan/src/libdlna/profiles.c:444:12: note: Assuming condition is false libmediascan/src/libdlna/profiles.c:447:11: note: Uninitialized variable: protocol head libmediascan/src/thread.c:106:74: style:inconclusive: Function 'thread_create' argument 2 names different: declaration '' definition 'thread_data'. [funcArgNamesDifferentUnnamed] head libmediascan/src/thread.c:106:91: style:inconclusive: Function 'thread_create' argument 3 names different: declaration '' definition 'optional_fds'. [funcArgNamesDifferentUnnamed] 2.20.0 libmediascan/test/common.h:29:12: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] libmediascan/test/common.h:26:25: note: Assuming allocation function fails libmediascan/test/common.h:26:11: note: Assignment 'buf=(char*)malloc(1024)', assigned value is 0 libmediascan/test/common.h:29:12: note: Null pointer dereference DONE