2026-04-29 09:20 ftp://ftp.de.debian.org/debian/pool/main/libr/libraw/libraw_0.22.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openmp --library=zlib --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: 9682731 (2026-04-29 11:09:09 +0200) count: 1245 1237 elapsed-time: 131.5 129.9 head-timing-info: old-timing-info: head results: LibRaw-0.22.1/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.cpp:207:3: performance: Variable 'cameraMeta' is assigned in constructor body. Consider performing initialization in initialization list. [useInitializationList] LibRaw-0.22.1/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.cpp:32:52: style:inconclusive: Function 'rawspeed3_clearresult' argument 1 names different: declaration '' definition 'r'. [funcArgNamesDifferentUnnamed] LibRaw-0.22.1/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.cpp:227:59: style:inconclusive: Function 'CameraMetaDataFromMem' argument 1 names different: declaration 'xmlstring' definition 'document'. [funcArgNamesDifferent] LibRaw-0.22.1/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.cpp:199:46: note: Function 'CameraMetaDataFromMem' argument 1 names different: declaration 'xmlstring' definition 'document'. LibRaw-0.22.1/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.cpp:227:59: note: Function 'CameraMetaDataFromMem' argument 1 names different: declaration 'xmlstring' definition 'document'. LibRaw-0.22.1/RawSpeed3/rawspeed3_c_api/rawspeed3_capi_test.cpp:11:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable binary [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/RawSpeed3/rawspeed3_c_api/rawspeed3_capi_test.cpp:34:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/RawSpeed3/rawspeed3_c_api/rawspeed3_capi_test.cpp:19:16: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/samples/4channels.cpp:97:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_SUCCESS [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/4channels.cpp:128:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] LibRaw-0.22.1/samples/4channels.cpp:128:9: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] LibRaw-0.22.1/samples/4channels.cpp:155:35: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/samples/4channels.cpp:160:35: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/samples/4channels.cpp:95:9: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/samples/4channels.cpp:122:18: style: Local variable 'c' shadows outer variable [shadowVariable] LibRaw-0.22.1/samples/4channels.cpp:95:9: note: Shadowed declaration LibRaw-0.22.1/samples/4channels.cpp:122:18: note: Shadow variable LibRaw-0.22.1/samples/dcraw_emu.cpp:212:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/dcraw_emu.cpp:271:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/dcraw_emu.cpp:618:9: warning:inconclusive: The buffer 'outfn' may not be null-terminated after the call to strncpy(). [terminateStrncpy] LibRaw-0.22.1/samples/dcraw_emu.cpp:621:9: warning:inconclusive: The buffer 'outfn' may not be null-terminated after the call to strncpy(). [terminateStrncpy] LibRaw-0.22.1/samples/dcraw_emu.cpp:521:11: style: Suspicious condition (assignment + comparison); Clarify expression with parentheses. [clarifyCondition] LibRaw-0.22.1/samples/dcraw_emu.cpp:617:47: style: Condition '*outext!='.'' is always true [knownConditionTrueFalse] LibRaw-0.22.1/samples/dcraw_emu.cpp:141:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/samples/dcraw_emu.cpp:262:16: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/samples/dcraw_emu.cpp:267:27: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/samples/dcraw_emu.cpp:479:10: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/samples/dcraw_emu.cpp:495:39: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/samples/dcraw_emu.cpp:248:13: style: The scope of the variable 'opt' can be reduced. [variableScope] LibRaw-0.22.1/samples/dcraw_emu.cpp:248:19: style: The scope of the variable 'cp' can be reduced. [variableScope] LibRaw-0.22.1/samples/dcraw_emu.cpp:248:24: style: The scope of the variable 'sp' can be reduced. [variableScope] LibRaw-0.22.1/samples/dcraw_emu.cpp:141:9: style: Variable 'passed' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/samples/dcraw_emu.cpp:248:19: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/samples/dcraw_emu.cpp:248:24: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/samples/dcraw_emu.cpp:250:9: style: Variable 'outext' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/samples/dcraw_emu.cpp:265:11: style: Variable 'optstr' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/samples/dcraw_half.c:48:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/half_mt.c:71:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/half_mt.c:156:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/half_mt.c:171:9: warning: If memory allocation fails, then there is a possible null pointer dereference: threads [nullPointerOutOfMemory] LibRaw-0.22.1/samples/half_mt.c:165:19: note: Assuming allocation function fails LibRaw-0.22.1/samples/half_mt.c:165:19: note: Assignment 'threads=calloc(max_threads,sizeof(threads[0]))', assigned value is 0 LibRaw-0.22.1/samples/half_mt.c:171:9: note: Null pointer dereference LibRaw-0.22.1/samples/half_mt.c:118:22: style: Parameter 'q' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/samples/half_mt.c:120:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/samples/half_mt_win32.c:64:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INFINITE [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/half_mt_win32.c:88:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/half_mt_win32.c:175:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/half_mt_win32.c:189:10: warning: If memory allocation fails, then there is a possible null pointer dereference: threads [nullPointerOutOfMemory] LibRaw-0.22.1/samples/half_mt_win32.c:184:19: note: Assuming allocation function fails LibRaw-0.22.1/samples/half_mt_win32.c:184:19: note: Assignment 'threads=calloc(max_threads,sizeof(threads[0]))', assigned value is 0 LibRaw-0.22.1/samples/half_mt_win32.c:189:10: note: Null pointer dereference LibRaw-0.22.1/samples/half_mt_win32.c:135:22: style: Parameter 'q' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/samples/half_mt_win32.c:137:9: style: Variable 'p' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/samples/mem_image_sample.cpp:85:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_IMAGE_BITMAP [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/mem_image_sample.cpp:124:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_IMAGE_BITMAP [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/mem_image_sample.cpp:213:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_SUCCESS [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/mem_image_sample.cpp:171:10: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/samples/multirender_test.cpp:47:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_SUCCESS [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/multirender_test.cpp:83:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_SUCCESS [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/multirender_test.cpp:65:10: style: The scope of the variable 'ret' can be reduced. [variableScope] LibRaw-0.22.1/samples/multirender_test.cpp:37:64: style: Parameter 'fname' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/samples/openbayer_sample.cpp:50:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_OPENBAYER_RGGB [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/openbayer_sample.cpp:42:5: error: Resource leak: in [resourceLeak] LibRaw-0.22.1/samples/openbayer_sample.cpp:46:5: error: Resource leak: in [resourceLeak] LibRaw-0.22.1/samples/openbayer_sample.cpp:46:5: error: Memory leak: buffer [memleak] LibRaw-0.22.1/samples/openbayer_sample.cpp:52:5: error: Resource leak: in [resourceLeak] LibRaw-0.22.1/samples/openbayer_sample.cpp:65:1: error: Resource leak: in [resourceLeak] LibRaw-0.22.1/samples/openbayer_sample.cpp:38:9: warning: If resource allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfResources] LibRaw-0.22.1/samples/openbayer_sample.cpp:37:19: note: Assuming allocation function fails LibRaw-0.22.1/samples/openbayer_sample.cpp:37:19: note: Assignment 'in=fopen(av[1],"rb")', assigned value is 0 LibRaw-0.22.1/samples/openbayer_sample.cpp:38:9: note: Null pointer dereference LibRaw-0.22.1/samples/openbayer_sample.cpp:40:27: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/samples/openbayer_sample.cpp:33:24: style: Parameter 'av' can be declared as const array [constParameter] LibRaw-0.22.1/samples/postprocessing_benchmark.cpp:83:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/postprocessing_benchmark.cpp:74:16: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/samples/postprocessing_benchmark.cpp:79:27: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/samples/postprocessing_benchmark.cpp:40:10: style: The scope of the variable 'ret' can be reduced. [variableScope] LibRaw-0.22.1/samples/postprocessing_benchmark.cpp:70:13: style: The scope of the variable 'opt' can be reduced. [variableScope] LibRaw-0.22.1/samples/postprocessing_benchmark.cpp:70:19: style: The scope of the variable 'cp' can be reduced. [variableScope] LibRaw-0.22.1/samples/postprocessing_benchmark.cpp:70:24: style: The scope of the variable 'sp' can be reduced. [variableScope] LibRaw-0.22.1/samples/postprocessing_benchmark.cpp:77:11: style: The scope of the variable 'optstr' can be reduced. [variableScope] LibRaw-0.22.1/samples/postprocessing_benchmark.cpp:147:11: style: The scope of the variable 'mpix' can be reduced. [variableScope] LibRaw-0.22.1/samples/postprocessing_benchmark.cpp:175:16: style: Local variable 'i' shadows outer variable [shadowVariable] LibRaw-0.22.1/samples/postprocessing_benchmark.cpp:40:7: note: Shadowed declaration LibRaw-0.22.1/samples/postprocessing_benchmark.cpp:175:16: note: Shadow variable LibRaw-0.22.1/samples/postprocessing_benchmark.cpp:70:19: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/samples/postprocessing_benchmark.cpp:70:24: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/samples/postprocessing_benchmark.cpp:77:11: style: Variable 'optstr' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/samples/raw-identify.cpp:202:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/raw-identify.cpp:522:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cwidth [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/raw-identify.cpp:197:7: style: The scope of the variable 'ret' can be reduced. [variableScope] LibRaw-0.22.1/samples/raw-identify.cpp:246:11: style: The scope of the variable 'p' can be reduced. [variableScope] LibRaw-0.22.1/samples/raw-identify.cpp:313:7: style: The scope of the variable 'WBi' can be reduced. [variableScope] LibRaw-0.22.1/samples/raw-identify.cpp:314:9: style: The scope of the variable 'denom' can be reduced. [variableScope] LibRaw-0.22.1/samples/raw-identify.cpp:692:7: style: The scope of the variable 'WBi' can be reduced. [variableScope] LibRaw-0.22.1/samples/raw-identify.cpp:693:9: style: The scope of the variable 'denom' can be reduced. [variableScope] LibRaw-0.22.1/samples/raw-identify.cpp:311:26: style:inconclusive: Function 'print_verbose' argument 1 names different: declaration '' definition 'outfile'. [funcArgNamesDifferentUnnamed] LibRaw-0.22.1/samples/raw-identify.cpp:690:24: style:inconclusive: Function 'print_wbfun' argument 1 names different: declaration '' definition 'outfile'. [funcArgNamesDifferentUnnamed] LibRaw-0.22.1/samples/raw-identify.cpp:726:24: style:inconclusive: Function 'print_szfun' argument 1 names different: declaration '' definition 'outfile'. [funcArgNamesDifferentUnnamed] LibRaw-0.22.1/samples/raw-identify.cpp:731:28: style:inconclusive: Function 'print_unpackfun' argument 1 names different: declaration '' definition 'outfile'. [funcArgNamesDifferentUnnamed] LibRaw-0.22.1/samples/raw-identify.cpp:311:76: style: Parameter 'fn' can be declared as reference to const [constParameterReference] LibRaw-0.22.1/samples/raw-identify.cpp:690:41: style: Parameter 'MyCoolRawProcessor' can be declared as reference to const [constParameterReference] LibRaw-0.22.1/samples/raw-identify.cpp:690:74: style: Parameter 'fn' can be declared as reference to const [constParameterReference] LibRaw-0.22.1/samples/raw-identify.cpp:726:41: style: Parameter 'MyCoolRawProcessor' can be declared as reference to const [constParameterReference] LibRaw-0.22.1/samples/raw-identify.cpp:726:74: style: Parameter 'fn' can be declared as reference to const [constParameterReference] LibRaw-0.22.1/samples/raw-identify.cpp:731:95: style: Parameter 'fn' can be declared as reference to const [constParameterReference] LibRaw-0.22.1/samples/raw-identify.cpp:200:9: style: Variable 'filelistfile' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/samples/raw-identify.cpp:201:9: style: Variable 'outputfilename' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/samples/raw-identify.cpp:333:10: style: Variable 'sep' can be declared as const array [constVariable] LibRaw-0.22.1/samples/rawtextdump.cpp:79:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_SUCCESS [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/rawtextdump.cpp:120:54: style: Condition 'channel<4' is always true [knownConditionTrueFalse] LibRaw-0.22.1/samples/rawtextdump.cpp:84:62: note: Assuming that condition 'channel>3' is not redundant LibRaw-0.22.1/samples/rawtextdump.cpp:89:18: note: Assuming condition is false LibRaw-0.22.1/samples/rawtextdump.cpp:120:54: note: Condition 'channel<4' is always true LibRaw-0.22.1/samples/rawtextdump.cpp:99:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] LibRaw-0.22.1/samples/rawtextdump.cpp:113:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] LibRaw-0.22.1/samples/rawtextdump.cpp:125:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] LibRaw-0.22.1/samples/rawtextdump.cpp:136:4: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] LibRaw-0.22.1/samples/rawtextdump.cpp:112:20: style: Variable 'rowdata' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/samples/simple_dcraw.cpp:129:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_RAWOPTIONS_ALLOW_JPEGXL_PREVIEWS [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/samples/simple_dcraw.cpp:83:10: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/samples/simple_dcraw.cpp:36:32: style: Parameter 'unused_data' can be declared as pointer to const. However it seems that 'my_progress_callback' is a callback function, if 'unused_data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] LibRaw-0.22.1/samples/simple_dcraw.cpp:110:44: note: You might need to cast the function pointer here LibRaw-0.22.1/samples/simple_dcraw.cpp:36:32: note: Parameter 'unused_data' can be declared as pointer to const LibRaw-0.22.1/samples/unprocessed_raw.cpp:39:2: error: failed to evaluate #if condition, undefined function-like macro invocation: LIBRAW_COMPILE_CHECK_VERSION_NOTLESS( ... ) [syntaxError] LibRaw-0.22.1/src/decoders/canon_600.cpp:39:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pre_mul [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/canon_600.cpp:47:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flash_used [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/canon_600.cpp:96:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable canon_ev [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/canon_600.cpp:158:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pre_mul [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/canon_600.cpp:181:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable height [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/canon_600.cpp:209:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable height [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/canon_600.cpp:82:12: style: Condition 'miss<-20' is always true [knownConditionTrueFalse] LibRaw-0.22.1/src/decoders/canon_600.cpp:77:47: note: Assuming that condition 'target+20>=ratio[0]' is not redundant LibRaw-0.22.1/src/decoders/canon_600.cpp:79:17: note: Assignment 'miss=target-ratio[0]', assigned value is less than -20 LibRaw-0.22.1/src/decoders/canon_600.cpp:80:17: note: Assuming condition is false LibRaw-0.22.1/src/decoders/canon_600.cpp:82:12: note: Condition 'miss<-20' is always true LibRaw-0.22.1/src/decoders/canon_600.cpp:178:11: style: The scope of the variable 'pix' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/canon_600.cpp:205:17: style: The scope of the variable 'val' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/canon_600.cpp:172:22: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/decoders/canon_600.cpp:155:17: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/decoders/crx.cpp:223:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_EOF [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/crx.cpp:2656:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable crx_track_selected [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/crx.cpp:2716:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_CRXTRACKS_MAXCOUNT [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/crx.cpp:2511:23: style: Comparing expression of type 'unsigned char' against value 255. Condition is always false. [compareValueOutOfTypeRangeError] LibRaw-0.22.1/src/decoders/crx.cpp:2511:47: style: Comparing expression of type 'unsigned char' against value 255. Condition is always false. [compareValueOutOfTypeRangeError] LibRaw-0.22.1/src/decoders/crx.cpp:1793:28: style: Condition 'img->levels' is always true [knownConditionTrueFalse] LibRaw-0.22.1/src/decoders/crx.cpp:1791:10: note: Assuming that condition 'img->levels' is not redundant LibRaw-0.22.1/src/decoders/crx.cpp:1793:28: note: Condition 'img->levels' is always true LibRaw-0.22.1/src/decoders/crx.cpp:2434:97: style: Condition 'crxProcessSubbands(hdr,img,tile,comp)' is always false [knownConditionTrueFalse] LibRaw-0.22.1/src/decoders/crx.cpp:2434:97: note: Calling function 'crxProcessSubbands' returns 0 LibRaw-0.22.1/src/decoders/crx.cpp:2434:97: note: Condition 'crxProcessSubbands(hdr,img,tile,comp)' is always false LibRaw-0.22.1/src/decoders/crx.cpp:236:21: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:253:27: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:269:21: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:950:27: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:966:27: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:977:25: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:978:25: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:990:23: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:993:25: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:998:25: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:1012:25: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:1017:25: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:1031:25: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:1036:25: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:1740:16: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:1806:26: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:1893:19: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:2007:17: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:2263:20: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:2536:23: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:2642:81: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:2701:37: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/crx.cpp:248:20: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/crx.cpp:290:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/crx.cpp:1087:22: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/crx.cpp:1749:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/crx.cpp:1753:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/crx.cpp:1828:46: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/crx.cpp:1829:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/crx.cpp:1832:40: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/crx.cpp:1860:46: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/crx.cpp:1861:46: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/crx.cpp:1862:46: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/crx.cpp:1934:31: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/crx.cpp:2015:24: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/crx.cpp:2275:27: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/crx.cpp:2276:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/crx.cpp:1348:25: style: Variable 'wavelet->lineBuf[2]' is assigned an expression that holds the same value. [redundantAssignment] LibRaw-0.22.1/src/decoders/crx.cpp:1344:28: note: lineBufL2 is assigned 'wavelet->lineBuf[2]' here. LibRaw-0.22.1/src/decoders/crx.cpp:1347:29: note: wavelet->lineBuf[1] is assigned 'lineBufL2' here. LibRaw-0.22.1/src/decoders/crx.cpp:1344:28: note: lineBufL2 is assigned 'wavelet->lineBuf[2]' here. LibRaw-0.22.1/src/decoders/crx.cpp:1347:31: note: Assignment 'wavelet->lineBuf[1]=lineBufL2', assigned value is symbolic=wavelet->lineBuf[2] LibRaw-0.22.1/src/decoders/crx.cpp:1348:25: note: Variable 'wavelet->lineBuf[2]' is assigned an expression that holds the same value. LibRaw-0.22.1/src/decoders/crx.cpp:1456:15: style: Redundant initialization for 'lineBufL2'. The initialized value is overwritten before it is read. [redundantInitialization] LibRaw-0.22.1/src/decoders/crx.cpp:1375:24: note: lineBufL2 is initialized LibRaw-0.22.1/src/decoders/crx.cpp:1456:15: note: lineBufL2 is overwritten LibRaw-0.22.1/src/decoders/crx.cpp:231:12: style: The scope of the variable 'nextData' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/crx.cpp:281:12: style: The scope of the variable 'nextWord' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/crx.cpp:282:11: style: The scope of the variable 'nextByte' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/crx.cpp:383:11: style: The scope of the variable 'nSyms' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/crx.cpp:685:11: style: The scope of the variable 'nSyms' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/crx.cpp:1780:11: style: The scope of the variable 'transformWidth' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/crx.cpp:1083:19: style: Checking if unsigned expression 'band->width' is less than zero. [unsignedLessThanZero] LibRaw-0.22.1/src/decoders/crx.cpp:1714:18: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] LibRaw-0.22.1/src/decoders/crx.cpp:317:11: style: Variable 'symb' can be declared as const array [constVariable] LibRaw-0.22.1/src/decoders/crx.cpp:952:18: style: Variable 'lineBuf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:968:18: style: Variable 'lineBuf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:980:16: style: Variable 'lineBuf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1001:14: style: Variable 'lineBuf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1020:14: style: Variable 'lineBuf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1039:14: style: Variable 'lineBuf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1063:45: style: Parameter 'band' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/src/decoders/crx.cpp:1091:15: style: Variable 'qStepTblPtr' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1129:12: style: Variable 'band0Buf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1130:12: style: Variable 'band1Buf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1131:12: style: Variable 'band2Buf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1132:12: style: Variable 'band3Buf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1275:18: style: Variable 'band0Buf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1276:18: style: Variable 'band1Buf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1277:18: style: Variable 'lineBufH0' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1345:18: style: Variable 'lineBufH0' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1368:14: style: Variable 'band0Buf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1369:14: style: Variable 'band1Buf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1370:14: style: Variable 'band2Buf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1371:14: style: Variable 'band3Buf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1375:14: style: Variable 'lineBufL2' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1376:14: style: Variable 'lineBufH0' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1503:16: style: Variable 'lineBufL1' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1513:18: style: Variable 'band2Buf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1514:18: style: Variable 'band3Buf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1580:16: style: Variable 'band0Buf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1581:16: style: Variable 'band1Buf' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1635:35: style: Parameter 'image' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/src/decoders/crx.cpp:1702:14: style: Variable 'plane3' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:1971:75: style: Parameter 'lineBuf0' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/src/decoders/crx.cpp:1993:28: style: Parameter 'img' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/src/decoders/crx.cpp:2079:58: style: Parameter 'hdr' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/src/decoders/crx.cpp:2101:72: style: Parameter 'tile' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/src/decoders/crx.cpp:2101:92: style: Parameter 'comp' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/src/decoders/crx.cpp:2115:14: style: Variable 'rowExCoef' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:2116:14: style: Variable 'colExCoef' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/crx.cpp:2184:66: style: Parameter 'img' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/src/decoders/crx.cpp:2500:7: style: Variable 'IncrBitTable' can be declared as const array [constVariable] LibRaw-0.22.1/src/decoders/crx.cpp:360:26: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/crx.cpp:459:66: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/crx.cpp:468:72: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/crx.cpp:486:9: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/crx.cpp:492:30: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/crx.cpp:543:24: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/crx.cpp:765:9: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/crx.cpp:819:69: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/crx.cpp:832:69: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/crx.cpp:1117:50: warning: Shifting 32-bit value by 32 bits is undefined behaviour. See condition at line 1116. [shiftTooManyBits] LibRaw-0.22.1/src/decoders/crx.cpp:1116:26: note: Assuming that condition 'band->qParam/6>=6' is not redundant LibRaw-0.22.1/src/decoders/crx.cpp:1117:50: note: Shift LibRaw-0.22.1/src/decoders/crx.cpp:1714:18: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/crx.cpp:1716:16: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/crx.cpp:1983:57: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/crx.cpp:1117:50: warning: Either the condition 'band->qParam/6>=6' is redundant or there is signed integer overflow for expression '1<<(band->qParam/6+26)'. [integerOverflowCond] LibRaw-0.22.1/src/decoders/crx.cpp:1116:26: note: Assuming that condition 'band->qParam/6>=6' is not redundant LibRaw-0.22.1/src/decoders/crx.cpp:1117:50: note: Integer overflow LibRaw-0.22.1/src/decoders/crx.cpp:2460:29: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment] LibRaw-0.22.1/src/decoders/crx.cpp:383:17: style: Variable 'nSyms' is assigned a value that is never used. [unreadVariable] LibRaw-0.22.1/src/decoders/crx.cpp:685:17: style: Variable 'nSyms' is assigned a value that is never used. [unreadVariable] LibRaw-0.22.1/src/decoders/crx.cpp:1780:26: style: Variable 'transformWidth' is assigned a value that is never used. [unreadVariable] LibRaw-0.22.1/src/decoders/decoders_dcraw.cpp:480:7: error: There is an unknown macro here somewhere. Configuration is required. If FORC is a macro then please configure it. [unknownMacro] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:25:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable filters [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:57:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:151:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable height [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:233:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable filters [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:273:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:301:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:335:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tiff_bps [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:399:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_EOF [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:423:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_EOF [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:455:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pana_bpp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:541:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pana_bpp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:599:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:619:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:897:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable strip_offset [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:936:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_height [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:386:3: warning: Member variable 'pana_cs6_page_decoder::pixelbuffer' is not initialized in the constructor. [uninitMemberVar] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:752:2: style: Struct 'iiq_bitstream_t' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:77:5: error: Memory leak: plane [memleak] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:321:46: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:308:30: note: Assuming allocation function fails LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:308:7: note: Assignment 'buf=(unsigned char*)calloc(bytesperrow,1)', assigned value is 0 LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:321:46: note: Null pointer dereference LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:323:11: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:308:30: note: Assuming allocation function fails LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:308:7: note: Assignment 'buf=(unsigned char*)calloc(bytesperrow,1)', assigned value is 0 LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:323:11: note: Null pointer dereference LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:64:19: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:244:24: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:275:24: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:308:7: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:543:26: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:605:27: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:619:7: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:284:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:608:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:924:42: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:796:15: style: The scope of the variable 'bit_check' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:160:54: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:168:58: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:202:60: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:211:62: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:853:18: style: Variable 'bp_shift' can be declared as const array [constVariable] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:855:7: style: Variable 'pix_sub' can be declared as const array [constVariable] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:528:59: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/decoders_libraw.cpp:352:11: style: Variable 'bwide' is assigned a value that is never used. [unreadVariable] LibRaw-0.22.1/src/decoders/decoders_libraw_dcrdefs.cpp:263:7: error: There is an unknown macro here somewhere. Configuration is required. If FORC is a macro then please configure it. [unknownMacro] LibRaw-0.22.1/src/decoders/dng.cpp:24:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable dng_version [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/dng.cpp:31:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_UNSUPPORTED_FORMAT [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/dng.cpp:38:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tiff_samples [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/dng.cpp:63:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable shot_select [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/dng.cpp:143:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tile_length [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/dng.cpp:185:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_DECODE_JPEG [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/dng.cpp:190:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable image [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/dng.cpp:152:11: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/dng.cpp:36:7: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/dng.cpp:58:32: style: The scope of the variable 'jwide' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/dng.cpp:141:12: style: The scope of the variable 'row' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/dng.cpp:141:17: style: The scope of the variable 'col' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/dng.cpp:194:28: style: The scope of the variable 'ntags' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/dng.cpp:194:35: style: The scope of the variable 'opcode' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/dng.cpp:194:43: style: The scope of the variable 'deg' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/dng.cpp:194:48: style: The scope of the variable 'i' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/dng.cpp:194:51: style: The scope of the variable 'j' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/dng.cpp:195:32: style: The scope of the variable 'row' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/dng.cpp:198:10: style: The scope of the variable 'coeff' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/dng.cpp:198:20: style: The scope of the variable 'tot' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/dng.cpp:50:34: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/decoders/dng.cpp:235:22: error: Uninitialized variable: c [legacyUninitvar] LibRaw-0.22.1/src/decoders/dng.cpp:36:7: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/decoders/fp_dng.cpp:292:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_DECODE_RAW [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fp_dng.cpp:472:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_DECODE_RAW [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fp_dng.cpp:477:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tiff_ifd [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fp_dng.cpp:489:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable float_image [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fp_dng.cpp:499:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_alloc [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fp_dng.cpp:615:70: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data_offset [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fp_dng.cpp:549:5: warning: If memory allocation fails, then there is a possible null pointer dereference: raw_alloc [nullPointerOutOfMemory] LibRaw-0.22.1/src/decoders/fp_dng.cpp:518:39: note: Assuming allocation function fails LibRaw-0.22.1/src/decoders/fp_dng.cpp:518:23: note: Assignment 'raw_alloc=(ushort*)malloc(imgdata.sizes.raw_height*imgdata.sizes.raw_width*libraw_internal_data.unpacker_data.tiff_samples*sizeof(ushort))', assigned value is 0 LibRaw-0.22.1/src/decoders/fp_dng.cpp:549:5: note: Null pointer dereference LibRaw-0.22.1/src/decoders/fp_dng.cpp:237:22: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:508:12: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:513:12: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:518:23: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:650:27: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:226:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:227:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:228:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:238:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:239:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:248:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:603:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:675:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:228:18: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:239:18: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:248:18: portability: Casting between unsigned char * and float * which have an incompatible binary data representation. [invalidPointerCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:675:21: portability:inconclusive: Casting from float * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] LibRaw-0.22.1/src/decoders/fp_dng.cpp:278:76: style:inconclusive: Function 'init' argument 2 names different: declaration '' definition 'sizes'. [funcArgNamesDifferentUnnamed] LibRaw-0.22.1/src/decoders/fp_dng.cpp:279:28: style:inconclusive: Function 'init' argument 3 names different: declaration '' definition 'unpacker_data'. [funcArgNamesDifferentUnnamed] LibRaw-0.22.1/src/decoders/fp_dng.cpp:226:15: style: Variable 'dst16' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/fp_dng.cpp:477:22: style: Variable 'ifd' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/fp_dng.cpp:26:34: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fp_dng.cpp:43:35: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fp_dng.cpp:53:31: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fp_dng.cpp:65:34: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fp_dng.cpp:82:35: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fp_dng.cpp:93:27: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:145:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fuji_block_width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:261:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_EOF [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:287:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:331:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_image [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:385:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_image [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:507:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable q_base [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:591:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable q_base [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1022:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fuji_lossless [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1103:89: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fuji_total_blocks [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1155:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fuji_total_lines [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1190:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data_offset [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1027:12: warning: If memory allocation fails, then there is a possible null pointer dereference: info_common [nullPointerOutOfMemory] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1026:51: note: Assuming allocation function fails LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1026:19: note: Assignment 'info_common=(fuji_compressed_params*)calloc(buf_size,1)', assigned value is 0 LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1027:12: note: Null pointer dereference LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1028:5: warning: If memory allocation fails, then there is a possible null pointer dereference: info_common [nullPointerOutOfMemory] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1026:51: note: Assuming allocation function fails LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1026:19: note: Assignment 'info_common=(fuji_compressed_params*)calloc(buf_size,1)', assigned value is 0 LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1028:5: note: Null pointer dereference LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1029:5: warning: If memory allocation fails, then there is a possible null pointer dereference: info_common [nullPointerOutOfMemory] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1026:51: note: Assuming allocation function fails LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1026:19: note: Assignment 'info_common=(fuji_compressed_params*)calloc(buf_size,1)', assigned value is 0 LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1029:5: note: Null pointer dereference LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1032:33: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: info_common [nullPointerOutOfMemory] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1026:51: note: Assuming allocation function fails LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1026:19: note: Assignment 'info_common=(fuji_compressed_params*)calloc(buf_size,1)', assigned value is 0 LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1032:33: note: Null pointer dereference LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1028:57: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1026:51: note: Assuming allocation function fails LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1026:19: note: Assignment 'info_common=(fuji_compressed_params*)calloc(buf_size,1)', assigned value is 0 LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1028:57: note: Null pointer addition LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:170:29: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:184:29: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:281:21: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:293:19: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1026:19: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1103:17: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1104:23: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1122:15: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1028:34: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:1135:31: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:326:12: style: The scope of the variable 'pixel_count' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:328:7: style: The scope of the variable 'index' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:376:12: style: The scope of the variable 'pixel_count' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:547:29: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:629:29: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:93:34: style: Parameter 'q_point' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:501:14: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:502:14: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:503:14: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:516:14: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:547:29: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:586:18: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:587:18: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:600:14: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:629:29: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:659:18: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:660:18: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/fuji_compressed.cpp:661:18: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/generic.cpp:24:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable maximum [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/generic.cpp:45:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/generic.cpp:91:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/generic.cpp:56:32: style: Variable 'row' is reassigned a value before the old one has been used. [redundantAssignment] LibRaw-0.22.1/src/decoders/generic.cpp:55:9: note: row is assigned LibRaw-0.22.1/src/decoders/generic.cpp:56:32: note: row is overwritten LibRaw-0.22.1/src/decoders/generic.cpp:23:7: style: The scope of the variable 'row' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/generic.cpp:23:12: style: The scope of the variable 'col' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/generic.cpp:42:50: style: The scope of the variable 'row' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/generic.cpp:42:60: style: The scope of the variable 'val' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/kodak_decoders.cpp:362:7: error: There is an unknown macro here somewhere. Configuration is required. If FORC is a macro then please configure it. [unknownMacro] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:53:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:58:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:155:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXIFTAG_TYPE_FLOAT [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:216:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable meta_length [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:567:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key_off [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:613:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bitbuf [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:642:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable r_black [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:731:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:809:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable filters [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:862:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tile_width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:885:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_image [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:928:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable image [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:829:9: error: Memory leak: pixel [memleak] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:942:22: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:933:31: note: Assuming allocation function fails LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:933:7: note: Assignment 'buf=(unsigned short*)malloc(width*3*sizeof(unsigned short))', assigned value is 0 LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:942:22: note: Null pointer dereference LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:943:22: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:933:31: note: Assuming allocation function fails LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:933:7: note: Assignment 'buf=(unsigned short*)malloc(width*3*sizeof(unsigned short))', assigned value is 0 LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:943:22: note: Null pointer dereference LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:944:22: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:933:31: note: Assuming allocation function fails LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:933:7: note: Assignment 'buf=(unsigned short*)malloc(width*3*sizeof(unsigned short))', assigned value is 0 LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:944:22: note: Null pointer dereference LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:510:35: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:509:32: note: Assuming allocation function fails LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:509:17: note: Assignment 'yval[0]=(float*)calloc(head[1]*head[3]+head[2]*head[4],6)', assigned value is 0 LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:510:35: note: Null pointer addition LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:647:26: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:646:27: note: Assuming allocation function fails LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:646:11: note: Assignment 'pixel=(ushort*)calloc(raw_width*3+raw_height*4,2)', assigned value is 0 LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:647:26: note: Null pointer addition LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:48:11: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:48:28: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:48:50: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:48:67: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:148:10: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:509:17: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:510:17: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:512:17: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:580:19: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:585:19: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:646:11: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:647:12: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:654:17: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:658:17: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:665:41: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:669:41: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:735:15: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:813:13: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:865:10: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:895:11: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:933:7: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:511:17: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:511:17: portability: Casting from float * to unsigned short * is not portable due to different binary data representations on different platforms. [invalidPointerCast] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:141:16: style: The scope of the variable 'num' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:564:7: style: The scope of the variable 'a' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:564:10: style: The scope of the variable 'b' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:564:13: style: The scope of the variable 'i' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:640:38: style: The scope of the variable 'col' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:640:46: style: The scope of the variable 'j' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:723:7: style: The scope of the variable 'shot' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:723:13: style: The scope of the variable 'row' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:723:18: style: The scope of the variable 'col' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:724:4: style: The scope of the variable 'len' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:724:12: style: The scope of the variable 'diff' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:724:22: style: The scope of the variable 'pred' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:724:28: style: The scope of the variable 'sh' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:724:32: style: The scope of the variable 'f' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:724:35: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:725:12: style: The scope of the variable 's' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:726:12: style: The scope of the variable 'upix' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:726:18: style: The scope of the variable 'urow' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:726:24: style: The scope of the variable 'ucol' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:727:11: style: The scope of the variable 'ip' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:807:22: style: The scope of the variable 'r' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:807:25: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:807:28: style: The scope of the variable 'row' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:807:33: style: The scope of the variable 'col' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:883:18: style: The scope of the variable 'row' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:883:23: style: The scope of the variable 'col' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:883:28: style: The scope of the variable 'r' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:883:31: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:736:11: style: Local variable 'back' shadows outer variable [shadowVariable] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:723:24: note: Shadowed declaration LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:736:11: note: Shadow variable LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:742:13: style: Local variable 'back' shadows outer variable [shadowVariable] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:736:11: note: Shadowed declaration LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:742:13: note: Shadow variable LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:24:19: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:736:16: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:826:22: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/decoders/load_mfbacks.cpp:807:25: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/decoders/olympus14.cpp:206:85: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tagX653 [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/olympus14.cpp:253:32: style: Condition 'col>1' is always true [knownConditionTrueFalse] LibRaw-0.22.1/src/decoders/olympus14.cpp:250:18: note: Assuming that condition 'col>1' is not redundant LibRaw-0.22.1/src/decoders/olympus14.cpp:253:32: note: Condition 'col>1' is always true LibRaw-0.22.1/src/decoders/olympus14.cpp:254:32: style: Condition 'col>1' is always true [knownConditionTrueFalse] LibRaw-0.22.1/src/decoders/olympus14.cpp:250:18: note: Assuming that condition 'col>1' is not redundant LibRaw-0.22.1/src/decoders/olympus14.cpp:254:32: note: Condition 'col>1' is always true LibRaw-0.22.1/src/decoders/olympus14.cpp:264:19: style: Local variable 'gcode' shadows outer variable [shadowVariable] LibRaw-0.22.1/src/decoders/olympus14.cpp:237:41: note: Shadowed declaration LibRaw-0.22.1/src/decoders/olympus14.cpp:264:19: note: Shadow variable LibRaw-0.22.1/src/decoders/olympus14.cpp:141:48: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/olympus14.cpp:141:61: portability: Shifting signed 32-bit value by 31 bits is implementation-defined behaviour [shiftTooManyBitsSigned] LibRaw-0.22.1/src/decoders/pana8.cpp:97:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_EOF [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/pana8.cpp:110:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stripe_count [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/pana8.cpp:145:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_CORRUPT [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/pana8.cpp:152:93: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stripe_count [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/pana8.cpp:31:12: style:inconclusive: Technically the member function 'pana8_bufio_t::size' can be const. [functionConst] LibRaw-0.22.1/src/decoders/pana8.cpp:447:24: style:inconclusive: Technically the member function 'pana8_param_t::gammaCurve' can be const. [functionConst] LibRaw-0.22.1/src/decoders/pana8.cpp:66:10: note: Technically the member function 'pana8_param_t::gammaCurve' can be const. LibRaw-0.22.1/src/decoders/pana8.cpp:447:24: note: Technically the member function 'pana8_param_t::gammaCurve' can be const. LibRaw-0.22.1/src/decoders/pana8.cpp:351:25: style:inconclusive: Technically the member function 'pana8_param_t::GetDBit' can be const. [functionConst] LibRaw-0.22.1/src/decoders/pana8.cpp:71:11: note: Technically the member function 'pana8_param_t::GetDBit' can be const. LibRaw-0.22.1/src/decoders/pana8.cpp:351:25: note: Technically the member function 'pana8_param_t::GetDBit' can be const. LibRaw-0.22.1/src/decoders/pana8.cpp:65:2: style: Struct 'pana8_param_t' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] LibRaw-0.22.1/src/decoders/pana8.cpp:151:31: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/pana8.cpp:196:75: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/pana8.cpp:246:21: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/pana8.cpp:521:19: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/pana8.cpp:277:28: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/pana8.cpp:309:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/pana8.cpp:311:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/pana8.cpp:318:24: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/pana8.cpp:524:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/pana8.cpp:207:11: style: The scope of the variable 'bittail' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/pana8.cpp:208:11: style: The scope of the variable 'bitportion' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/pana8.cpp:209:12: style: The scope of the variable 'inqword' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/pana8.cpp:266:24: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] LibRaw-0.22.1/src/decoders/pana8.cpp:361:50: style:inconclusive: Function 'pana8_param_t' argument 1 names different: declaration 'init' definition 'meta'. [funcArgNamesDifferent] LibRaw-0.22.1/src/decoders/pana8.cpp:65:36: note: Function 'pana8_param_t' argument 1 names different: declaration 'init' definition 'meta'. LibRaw-0.22.1/src/decoders/pana8.cpp:361:50: note: Function 'pana8_param_t' argument 1 names different: declaration 'init' definition 'meta'. LibRaw-0.22.1/src/decoders/pana8.cpp:447:44: style:inconclusive: Function 'gammaCurve' argument 1 names different: declaration 'i' definition 'idx'. [funcArgNamesDifferent] LibRaw-0.22.1/src/decoders/pana8.cpp:66:30: note: Function 'gammaCurve' argument 1 names different: declaration 'i' definition 'idx'. LibRaw-0.22.1/src/decoders/pana8.cpp:447:44: note: Function 'gammaCurve' argument 1 names different: declaration 'i' definition 'idx'. LibRaw-0.22.1/src/decoders/pana8.cpp:196:13: style: Variable 'gammatable' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/pana8.cpp:318:15: style: Variable 'srcrow' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/pana8.cpp:524:14: style: Variable 'b' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/decoders/smal.cpp:35:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/smal.cpp:106:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/smal.cpp:134:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable height [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/smal.cpp:164:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/smal.cpp:169:6: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/smal.cpp:29:7: style: The scope of the variable 'low' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/smal.cpp:30:10: style: The scope of the variable 'count' can be reduced. [variableScope] LibRaw-0.22.1/src/decoders/smal.cpp:30:22: style: The scope of the variable 'next' can be reduced. [variableScope] LibRaw-0.22.1/internal/losslessjpeg.h:50:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_CORRUPT [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/internal/losslessjpeg.h:58:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_CORRUPT [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/sonycc.cpp:237:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable image [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/internal/losslessjpeg.h:188:14: style:inconclusive: Technically the member function 'HuffTable::len' can be const. [functionConst] LibRaw-0.22.1/internal/losslessjpeg.h:197:13: style:inconclusive: Technically the member function 'HuffTable::diff' can be const. [functionConst] LibRaw-0.22.1/internal/losslessjpeg.h:131:2: style: Struct 'BitPumpJpeg' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] LibRaw-0.22.1/internal/losslessjpeg.h:74:7: style: The function 'consume' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] LibRaw-0.22.1/internal/losslessjpeg.h:28:16: note: Virtual function in base class LibRaw-0.22.1/internal/losslessjpeg.h:74:7: note: Function in derived class LibRaw-0.22.1/internal/losslessjpeg.h:82:14: style: The function 'peek' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] LibRaw-0.22.1/internal/losslessjpeg.h:27:20: note: Virtual function in base class LibRaw-0.22.1/internal/losslessjpeg.h:82:14: note: Function in derived class LibRaw-0.22.1/src/decoders/sonycc.cpp:67:80: style:inconclusive: Function 'decode_sony_ljpeg_420' argument 1 names different: declaration 'dest' definition '_dest'. [funcArgNamesDifferent] LibRaw-0.22.1/src/decoders/sonycc.cpp:34:52: note: Function 'decode_sony_ljpeg_420' argument 1 names different: declaration 'dest' definition '_dest'. LibRaw-0.22.1/src/decoders/sonycc.cpp:67:80: note: Function 'decode_sony_ljpeg_420' argument 1 names different: declaration 'dest' definition '_dest'. LibRaw-0.22.1/internal/losslessjpeg.h:199:16: style: Local variable 'len' shadows outer function [shadowFunction] LibRaw-0.22.1/internal/losslessjpeg.h:188:14: note: Shadowed declaration LibRaw-0.22.1/internal/losslessjpeg.h:199:16: note: Shadow variable LibRaw-0.22.1/src/decoders/sonycc.cpp:150:97: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/src/decoders/sonycc.cpp:211:98: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] LibRaw-0.22.1/src/decoders/unpack.cpp:24:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_PROGRESS_LOAD_RAW [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/unpack.cpp:60:11: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack.cpp:339:39: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack.cpp:398:37: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack.cpp:436:39: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:33:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable thumbcount [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:52:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_PROGRESS_IDENTIFY [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:26:29: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:161:19: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:166:27: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:207:32: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:232:19: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:235:31: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:262:21: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:281:19: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:284:32: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:345:23: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:385:19: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:410:27: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:431:21: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:422:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/decoders/unpack_thumb.cpp:275:13: style: The scope of the variable 'i' can be reduced. [variableScope] LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:376:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_CORRUPT [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:336:10: style:inconclusive: Technically the member function 'PseudoPump::valid' can be const. [functionConst] LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:338:11: style: The function 'peek' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] LibRaw-0.22.1/internal/losslessjpeg.h:27:20: note: Virtual function in base class LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:338:11: note: Function in derived class LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:343:10: style: The function 'consume' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] LibRaw-0.22.1/internal/losslessjpeg.h:28:16: note: Virtual function in base class LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:343:10: note: Function in derived class LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:45:73: style:inconclusive: Function 'LibRaw_LjpegDecompressor' argument 2 names different: declaration 's' definition 'bs'. [funcArgNamesDifferent] LibRaw-0.22.1/internal/losslessjpeg.h:251:48: note: Function 'LibRaw_LjpegDecompressor' argument 2 names different: declaration 's' definition 'bs'. LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:45:73: note: Function 'LibRaw_LjpegDecompressor' argument 2 names different: declaration 's' definition 'bs'. LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:145:65: style:inconclusive: Function 'parse_dht' argument 2 names different: declaration 'dht_bits' definition 'bits'. [funcArgNamesDifferent] LibRaw-0.22.1/internal/losslessjpeg.h:255:41: note: Function 'parse_dht' argument 2 names different: declaration 'dht_bits' definition 'bits'. LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:145:65: note: Function 'parse_dht' argument 2 names different: declaration 'dht_bits' definition 'bits'. LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:145:87: style:inconclusive: Function 'parse_dht' argument 3 names different: declaration 'dht_huffval' definition 'huffval'. [funcArgNamesDifferent] LibRaw-0.22.1/internal/losslessjpeg.h:255:67: note: Function 'parse_dht' argument 3 names different: declaration 'dht_huffval' definition 'huffval'. LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:145:87: note: Function 'parse_dht' argument 3 names different: declaration 'dht_huffval' definition 'huffval'. LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:203:72: style:inconclusive: Function 'decode_ljpeg_422' argument 1 names different: declaration 'dest' definition '_dest'. [funcArgNamesDifferent] LibRaw-0.22.1/internal/losslessjpeg.h:256:47: note: Function 'decode_ljpeg_422' argument 1 names different: declaration 'dest' definition '_dest'. LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:203:72: note: Function 'decode_ljpeg_422' argument 1 names different: declaration 'dest' definition '_dest'. LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:253:46: style:inconclusive: Function 'parse_sof' argument 1 names different: declaration '' definition 'input'. [funcArgNamesDifferentUnnamed] LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:279:50: style:inconclusive: Function 'parse_sos' argument 1 names different: declaration '' definition 'input'. [funcArgNamesDifferentUnnamed] LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:350:34: style:inconclusive: Function 'initval' argument 1 names different: declaration 'bits' definition '_bits'. [funcArgNamesDifferent] LibRaw-0.22.1/internal/losslessjpeg.h:150:24: note: Function 'initval' argument 1 names different: declaration 'bits' definition '_bits'. LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:350:34: note: Function 'initval' argument 1 names different: declaration 'bits' definition '_bits'. LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:350:54: style:inconclusive: Function 'initval' argument 2 names different: declaration 'huffval' definition '_huffval'. [funcArgNamesDifferent] LibRaw-0.22.1/internal/losslessjpeg.h:150:43: note: Function 'initval' argument 2 names different: declaration 'huffval' definition '_huffval'. LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:350:54: note: Function 'initval' argument 2 names different: declaration 'huffval' definition '_huffval'. LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:350:74: style:inconclusive: Function 'initval' argument 3 names different: declaration 'dng_bug' definition '_dng_bug'. [funcArgNamesDifferent] LibRaw-0.22.1/internal/losslessjpeg.h:150:62: note: Function 'initval' argument 3 names different: declaration 'dng_bug' definition '_dng_bug'. LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:350:74: note: Function 'initval' argument 3 names different: declaration 'dng_bug' definition '_dng_bug'. LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:369:18: style: Local variable 'len' shadows outer function [shadowFunction] LibRaw-0.22.1/internal/losslessjpeg.h:188:14: note: Shadowed declaration LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:369:18: note: Shadow variable LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:392:14: style: Local variable 'len' shadows outer function [shadowFunction] LibRaw-0.22.1/internal/losslessjpeg.h:188:14: note: Shadowed declaration LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:392:14: note: Shadow variable LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:296:3: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] LibRaw-0.22.1/src/demosaic/aahd_demosaic.cpp:136:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_ALLOC [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/aahd_demosaic.cpp:64:14: style:inconclusive: Technically the member function 'AAHD::Y' can be const. [functionConst] LibRaw-0.22.1/src/demosaic/aahd_demosaic.cpp:69:14: style:inconclusive: Technically the member function 'AAHD::U' can be const. [functionConst] LibRaw-0.22.1/src/demosaic/aahd_demosaic.cpp:74:14: style:inconclusive: Technically the member function 'AAHD::V' can be const. [functionConst] LibRaw-0.22.1/src/demosaic/aahd_demosaic.cpp:79:14: style:inconclusive: Technically the member function 'AAHD::nr_offset' can be const. [functionConst] LibRaw-0.22.1/src/demosaic/aahd_demosaic.cpp:769:22: warning: Struct 'AAHD' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] LibRaw-0.22.1/src/demosaic/aahd_demosaic.cpp:769:22: warning: Struct 'AAHD' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] LibRaw-0.22.1/src/demosaic/aahd_demosaic.cpp:84:3: style: Struct 'AAHD' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] LibRaw-0.22.1/src/demosaic/aahd_demosaic.cpp:139:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/demosaic/aahd_demosaic.cpp:141:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/demosaic/aahd_demosaic.cpp:158:11: style: The scope of the variable 'r' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/aahd_demosaic.cpp:298:7: style: Variable 'hvdir' can be declared as const array [constVariable] LibRaw-0.22.1/src/demosaic/aahd_demosaic.cpp:413:15: style: Variable 'hh' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/demosaic/aahd_demosaic.cpp:660:7: style: Variable 'hvdir' can be declared as const array [constVariable] LibRaw-0.22.1/src/demosaic/aahd_demosaic.cpp:715:7: style: Variable 'dirs' can be declared as const array [constVariable] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:49:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable colors [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:88:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable image [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:110:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:188:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_AHD_TILE [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:247:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_AHD_TILE [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:305:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_AHD_TILE [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:335:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:28:10: style: The scope of the variable 'i' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:28:13: style: The scope of the variable 'j' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:28:16: style: The scope of the variable 'k' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:29:9: style: The scope of the variable 'r' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:77:12: style: The scope of the variable 'col' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:78:10: style: The scope of the variable 'val' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:79:11: style: The scope of the variable 'pix' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:106:7: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:109:10: style: The scope of the variable 'lix' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:113:11: style: The scope of the variable 'pix_above' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:114:11: style: The scope of the variable 'pix_below' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:115:11: style: The scope of the variable 't2' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:180:7: style: The scope of the variable 'tr' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:185:10: style: The scope of the variable 'adjacent_lix' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:186:39: style: The scope of the variable 'leps' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:186:45: style: The scope of the variable 'abeps' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:190:7: style: The scope of the variable 'homogeneity' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:191:9: style: The scope of the variable 'homogeneity_map_p' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:242:7: style: The scope of the variable 'tr' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:242:11: style: The scope of the variable 'tc' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:250:11: style: The scope of the variable 'pix' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:58:26: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:288:24: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:28:7: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/demosaic/ahd_demosaic.cpp:246:7: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:47:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:61:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:75:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:111:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:147:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:185:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:252:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable height [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:264:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable height [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:274:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:304:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:325:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:461:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:487:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:512:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:538:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:647:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable height [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:661:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable height [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:675:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:699:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:748:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:818:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable colors [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:855:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:334:7: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:334:7: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:343:28: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:343:28: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:343:54: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:343:54: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:344:28: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:344:28: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:344:54: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:344:54: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:345:28: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:345:28: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:345:54: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:345:54: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:348:28: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:348:28: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:348:54: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:348:54: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:349:28: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:349:28: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:349:54: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:349:54: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:350:28: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:350:28: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:350:54: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:350:54: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:353:28: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:353:28: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:353:54: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:353:54: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:354:28: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:354:28: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:354:54: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:354:54: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:355:28: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:355:28: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:355:54: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:355:54: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:358:28: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:358:28: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:358:54: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:358:54: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:359:28: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:359:28: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:359:54: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:359:54: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:360:28: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:360:28: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:360:54: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:360:54: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:361:23: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:361:23: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:361:58: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:361:58: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:362:23: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:362:23: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:362:58: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:362:58: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:363:23: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:363:23: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:363:58: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:363:58: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:364:23: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:364:23: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:364:58: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:364:58: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:365:23: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:365:23: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:365:58: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:365:58: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:366:23: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:366:23: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:366:58: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:366:58: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:367:23: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:367:23: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:367:58: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:367:58: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:368:23: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:368:23: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:368:58: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:368:58: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:369:7: warning: If memory allocation fails, then there is a possible null pointer dereference: chroma [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:31: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:328:12: note: Assignment 'chroma=(float(*)[2])calloc(width*height,sizeof(*chroma))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:369:7: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:185:20: style: The scope of the variable 'd' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:186:9: style: The scope of the variable 'current' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:186:18: style: The scope of the variable 'current2' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:186:28: style: The scope of the variable 'current3' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:274:7: style: The scope of the variable 'g1' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:274:11: style: The scope of the variable 'r1' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:274:15: style: The scope of the variable 'b1' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:325:51: style: The scope of the variable 'g1' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:325:55: style: The scope of the variable 'g2' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:487:7: style: The scope of the variable 'current' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:512:7: style: The scope of the variable 'current' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:538:59: style: The scope of the variable 'current' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:675:17: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:699:7: style: The scope of the variable 'indx' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:701:10: style: The scope of the variable 'Co' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:701:14: style: The scope of the variable 'Ho' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:701:18: style: The scope of the variable 'ratio' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:749:20: style: The scope of the variable 'min' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dcb_demosaic.cpp:749:25: style: The scope of the variable 'max' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:1014:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable filters [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:58:14: style:inconclusive: Technically the member function 'DHT::nr_offset' can be const. [functionConst] LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:1008:8: warning: Struct 'DHT' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:1008:8: warning: Struct 'DHT' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:181:3: style: Struct 'DHT' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:228:5: warning: If memory allocation fails, then there is a possible null pointer dereference: nraw [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:220:26: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:220:10: note: Assignment 'nraw=(float3(*)[3])malloc(nr_height*nr_width*sizeof(float3[3]))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:228:5: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:228:18: warning: If memory allocation fails, then there is a possible null pointer dereference: nraw [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:220:26: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:220:10: note: Assignment 'nraw=(float3(*)[3])malloc(nr_height*nr_width*sizeof(float3[3]))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:228:18: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:228:31: warning: If memory allocation fails, then there is a possible null pointer dereference: nraw [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:220:26: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:220:10: note: Assignment 'nraw=(float3(*)[3])malloc(nr_height*nr_width*sizeof(float3[3]))', assigned value is 0 LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:228:31: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:222:10: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:787:7: style: Redundant initialization for 'l'. The initialized value is overwritten before it is read. [redundantInitialization] LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:785:11: note: l is initialized LibRaw-0.22.1/src/demosaic/dht_demosaic.cpp:787:7: note: l is overwritten LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:25:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_PROGRESS_PRE_INTERPOLATE [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:86:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable height [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:109:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable height [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:134:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_PROGRESS_INTERPOLATE [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:212:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pix [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:345:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:56:11: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:51:33: note: Assuming allocation function fails LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:51:13: note: Assignment 'img=(ushort(*)[4])calloc(height+extra,(width+extra)*sizeof(*img))', assigned value is 0 LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:56:11: note: Null pointer dereference LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:223:8: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:111:15: style: The scope of the variable 'ip' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:112:13: style: The scope of the variable 'pix' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:131:44: style: The scope of the variable 'ip' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:132:7: style: The scope of the variable 'f' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:132:29: style: The scope of the variable 'shift' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:132:36: style: The scope of the variable 'color' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:214:23: style: The scope of the variable 'x1' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:214:27: style: The scope of the variable 'x2' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:214:31: style: The scope of the variable 'y1' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:214:35: style: The scope of the variable 'y2' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:214:42: style: The scope of the variable 'weight' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:214:50: style: The scope of the variable 'grads' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:215:10: style: The scope of the variable 'diff' can be reduced. [variableScope] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:101:34: error: Uninitialized variable: c [legacyUninitvar] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:159:11: error: Uninitialized variable: c [legacyUninitvar] LibRaw-0.22.1/src/demosaic/misc_demosaic.cpp:311:15: error: Uninitialized variable: c [legacyUninitvar] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:35:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_AHD_TILE [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:423:70: portability: Assigning an integer to a pointer is not portable. [AssignmentIntegerToAddress] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:231:33: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:254:50: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:110:43: style: Condition 'min=~(max=0)' is always true [knownConditionTrueFalse] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:139:24: style: Condition 'min=~(max=0)' is always true [knownConditionTrueFalse] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:193:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:346:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:231:27: style: Local variable 'rgb' shadows outer variable [shadowVariable] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:188:17: note: Shadowed declaration LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:231:27: note: Shadow variable LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:420:35: style: Local variable 'avg' shadows outer variable [shadowVariable] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:415:25: note: Shadowed declaration LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:420:35: note: Shadow variable LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:154:18: style: Variable 'hex' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:81:43: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:120:37: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:158:29: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:209:30: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:78:17: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:117:19: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/demosaic/xtrans_demosaic.cpp:155:15: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/integration/dngsdk_glue.cpp:505:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_UNSPECIFIED_ERROR [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_c_api.cpp:57:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:65:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:73:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:103:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:131:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:144:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:153:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:160:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:167:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:174:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:181:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:188:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:197:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:206:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:215:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:223:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:231:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:240:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:247:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:254:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:261:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:273:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:285:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:298:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:305:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:312:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:319:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:328:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:336:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:344:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:352:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:360:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:372:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:380:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:388:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:396:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:404:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_c_api.cpp:412:18: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_datastream.cpp:166:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _fsize [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:236:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_EOF [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:244:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_EOF [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:250:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_EOF [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:271:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_EOF [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:278:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_EOF [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:288:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_EOF [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:325:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buf [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:335:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable streamsize [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:350:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable streampos [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:387:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable streampos [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:395:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buf [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:420:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable streampos [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:444:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable streampos [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:446:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buf [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:475:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _fsize [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:526:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:529:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:540:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:546:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:552:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:568:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:585:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:591:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable f [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/libraw_datastream.cpp:177:10: warning: Return value of function buf->open() is not used. [ignoredReturnValue] LibRaw-0.22.1/src/libraw_datastream.cpp:325:9: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_datastream.cpp:394:9: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/libraw_datastream.cpp:423:22: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/adobepano.cpp:35:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/adobepano.cpp:40:24: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/adobepano.cpp:21:12: style: The scope of the variable 'posPrivateMknBuf' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/adobepano.cpp:23:12: style: The scope of the variable 'PrivateOrder' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/adobepano.cpp:24:12: style: The scope of the variable 'PrivateEntries' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/adobepano.cpp:24:28: style: The scope of the variable 'PrivateTagID' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/adobepano.cpp:24:42: style: The scope of the variable 'PrivateTagType' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/adobepano.cpp:24:58: style: The scope of the variable 'PrivateTagCount' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/adobepano.cpp:25:12: style: The scope of the variable 'PrivateTagBytes' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/adobepano.cpp:87:26: style: The scope of the variable 'tWB' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/adobepano.cpp:109:26: style: The scope of the variable 'tWB' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/canon.cpp:68:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CamID [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/canon.cpp:188:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXIFTAG_TYPE_LONG [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/canon.cpp:636:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/canon.cpp:677:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FORC4 [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/canon.cpp:712:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WBCT_Coeffs [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/canon.cpp:807:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FocalType [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/canon.cpp:864:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] LibRaw-0.22.1/src/metadata/canon.cpp:574:16: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/canon.cpp:886:13: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/canon.cpp:507:9: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/canon.cpp:706:9: style: The scope of the variable 'norm' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/canon.cpp:155:9: style: Variable 'offset' can be declared as pointer to const [constVariablePointer] LibRaw-0.22.1/src/metadata/canon.cpp:1034:19: error: Uninitialized variable: c [legacyUninitvar] LibRaw-0.22.1/src/metadata/ciff.cpp:53:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable white [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/ciff.cpp:71:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable metadata_blocks [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/ciff.cpp:53:57: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] LibRaw-0.22.1/src/metadata/ciff.cpp:184:15: style: Variable 'cam_mul' can be declared as const array [constVariable] LibRaw-0.22.1/src/metadata/cr3_parser.cpp:33:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable crx_header [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/cr3_parser.cpp:66:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable crx_track_count [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/cr3_parser.cpp:246:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/cr3_parser.cpp:472:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/cr3_parser.cpp:924:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable crx_track_count [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/cr3_parser.cpp:564:14: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/cr3_parser.cpp:815:35: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/cr3_parser.cpp:852:40: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/cr3_parser.cpp:876:39: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/cr3_parser.cpp:789:22: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/metadata/cr3_parser.cpp:30:12: style: The scope of the variable 'sample_size' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/cr3_parser.cpp:488:11: style: Local variable 'nmAtom' shadows outer variable [shadowVariable] LibRaw-0.22.1/src/metadata/cr3_parser.cpp:454:8: note: Shadowed declaration LibRaw-0.22.1/src/metadata/cr3_parser.cpp:488:11: note: Shadow variable LibRaw-0.22.1/src/metadata/cr3_parser.cpp:723:13: style: Local variable 'HandlerType' shadows outer variable [shadowVariable] LibRaw-0.22.1/src/metadata/cr3_parser.cpp:464:8: note: Shadowed declaration LibRaw-0.22.1/src/metadata/cr3_parser.cpp:723:13: note: Shadow variable LibRaw-0.22.1/src/metadata/cr3_parser.cpp:743:13: style: Local variable 'MediaFormatID' shadows outer variable [shadowVariable] LibRaw-0.22.1/src/metadata/cr3_parser.cpp:464:24: note: Shadowed declaration LibRaw-0.22.1/src/metadata/cr3_parser.cpp:743:13: note: Shadow variable LibRaw-0.22.1/src/metadata/cr3_parser.cpp:488:18: error: Uninitialized variable: c [legacyUninitvar] LibRaw-0.22.1/src/metadata/epson.cpp:24:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/epson.cpp:73:23: style: Variable 'sdims' is assigned a value that is never used. [unreadVariable] LibRaw-0.22.1/src/metadata/exif_gps.cpp:376:9: error: There is an unknown macro here somewhere. Configuration is required. If FORC is a macro then please configure it. [unknownMacro] LibRaw-0.22.1/src/metadata/fuji.cpp:78:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RAFDataGeneration [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/fuji.cpp:189:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable model [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/fuji.cpp:881:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InternalBodySerial [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/fuji.cpp:1120:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/fuji.cpp:1175:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CamID [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/fuji.cpp:927:9: warning:inconclusive: The buffer 'yy' may not be null-terminated after the call to strncpy(). [terminateStrncpy] LibRaw-0.22.1/src/metadata/fuji.cpp:1139:29: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/fuji.cpp:958:11: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] LibRaw-0.22.1/src/metadata/fuji.cpp:966:11: note: Found duplicate branches for 'if' and 'else'. LibRaw-0.22.1/src/metadata/fuji.cpp:958:11: note: Found duplicate branches for 'if' and 'else'. LibRaw-0.22.1/src/metadata/fuji.cpp:147:12: style: The scope of the variable 'posPrivateMknBuf' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:149:12: style: The scope of the variable 'PrivateOrder' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:150:12: style: The scope of the variable 'ifd_start' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:150:23: style: The scope of the variable 'ifd_len' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:151:12: style: The scope of the variable 'PrivateEntries' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:151:28: style: The scope of the variable 'PrivateTagID' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:152:12: style: The scope of the variable 'PrivateTagBytes' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:154:12: style: The scope of the variable 'wb_section_offset' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:155:7: style: The scope of the variable 'posWB' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:156:7: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:205:7: style: The scope of the variable 'average_WBData' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:831:15: style: The scope of the variable 'nWB' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:831:20: style: The scope of the variable 'tWB' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:884:9: style: The scope of the variable 'year' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:884:23: style: The scope of the variable 'ynum_len' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:1117:11: style: The scope of the variable 'buf' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:1155:21: style: The scope of the variable 'tag' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:1155:26: style: The scope of the variable 'len' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:1156:9: style: The scope of the variable 'save' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:1319:11: style: The scope of the variable 'offsetWH_inRAFData' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:1350:13: style: The scope of the variable 'nWB' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:1350:18: style: The scope of the variable 'tWB' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/fuji.cpp:147:28: style: Variable 'posPrivateMknBuf' is assigned a value that is never used. [unreadVariable] LibRaw-0.22.1/src/metadata/fuji.cpp:241:17: style: Variable 'ifd_len' is assigned a value that is never used. [unreadVariable] LibRaw-0.22.1/src/metadata/fuji.cpp:242:24: style: Variable 'FujiShotSelect' is assigned a value that is never used. [unreadVariable] LibRaw-0.22.1/src/metadata/fuji.cpp:244:27: style: Variable 'FujiShotSelect' is assigned a value that is never used. [unreadVariable] LibRaw-0.22.1/src/metadata/hasselblad_model.cpp:46:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Lens [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/hasselblad_model.cpp:102:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/identify.cpp:2283:5: error: There is an unknown macro here somewhere. Configuration is required. If FORC is a macro then please configure it. [unknownMacro] LibRaw-0.22.1/src/metadata/identify_tools.cpp:29:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/identify_tools.cpp:50:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/identify_tools.cpp:112:9: style: Condition '!found' is always false [knownConditionTrueFalse] LibRaw-0.22.1/src/metadata/identify_tools.cpp:25:10: style: The scope of the variable 'diff' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/identify_tools.cpp:55:16: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/metadata/kodak.cpp:236:13: debug: Scope::checkVariable found variable 'cam_mul' with varid 0. [varid0] LibRaw-0.22.1/src/metadata/kodak.cpp:20:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FORC3 [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/kodak.cpp:32:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WB_Coeffs [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/kodak.cpp:44:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXIFTAG_TYPE_SRATIONAL [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/kodak.cpp:86:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_WBI_Shade [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/kodak.cpp:167:25: style: Array index 'c' is used before limits check. [arrayIndexThenCheck] LibRaw-0.22.1/src/metadata/kodak.cpp:230:43: style: Condition 'wbi!=-2' is always true [knownConditionTrueFalse] LibRaw-0.22.1/src/metadata/kodak.cpp:230:16: note: Assuming that condition 'wbi>=0' is not redundant LibRaw-0.22.1/src/metadata/kodak.cpp:230:43: note: Condition 'wbi!=-2' is always true LibRaw-0.22.1/src/metadata/kodak.cpp:47:8: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/kodak.cpp:64:37: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/kodak.cpp:341:34: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/kodak.cpp:348:30: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/kodak.cpp:351:30: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/kodak.cpp:354:30: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/kodak.cpp:357:30: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/kodak.cpp:360:30: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/kodak.cpp:43:7: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/kodak.cpp:43:13: style: The scope of the variable 'romm_camTemp' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/kodak.cpp:43:30: style: The scope of the variable 'romm_camScale' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/kodak.cpp:20:19: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/metadata/kodak.cpp:31:13: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/metadata/kodak.cpp:54:21: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/metadata/kodak.cpp:19:7: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/metadata/kodak.cpp:29:16: style: Variable 'mul' is assigned a value that is never used. [unreadVariable] LibRaw-0.22.1/src/metadata/kodak.cpp:30:7: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/metadata/kodak.cpp:43:7: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/metadata/leica.cpp:21:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CameraFormat [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/leica.cpp:104:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LensID [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/leica.cpp:121:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Lens [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/leica.cpp:141:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InternalBodySerial [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/leica.cpp:186:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/makernotes.cpp:38:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable makernotes_cb [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/makernotes.cpp:72:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable metadata_blocks [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/makernotes.cpp:355:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable metadata_blocks [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/makernotes.cpp:230:17: warning: If memory allocation fails, then there is a possible null pointer dereference: CanonCameraInfo [nullPointerOutOfMemory] LibRaw-0.22.1/src/metadata/makernotes.cpp:229:44: note: Assuming allocation function fails LibRaw-0.22.1/src/metadata/makernotes.cpp:229:29: note: Assignment 'CanonCameraInfo=(uchar*)calloc(MAX(16,len)+1,1)', assigned value is 0 LibRaw-0.22.1/src/metadata/makernotes.cpp:230:17: note: Null pointer dereference LibRaw-0.22.1/src/metadata/makernotes.cpp:235:17: warning: If memory allocation fails, then there is a possible null pointer dereference: CanonCameraInfo [nullPointerOutOfMemory] LibRaw-0.22.1/src/metadata/makernotes.cpp:234:44: note: Assuming allocation function fails LibRaw-0.22.1/src/metadata/makernotes.cpp:234:29: note: Assignment 'CanonCameraInfo=(uchar*)calloc(MAX(16,len*4)+1,1)', assigned value is 0 LibRaw-0.22.1/src/metadata/makernotes.cpp:235:17: note: Null pointer dereference LibRaw-0.22.1/src/metadata/makernotes.cpp:596:17: warning: If memory allocation fails, then there is a possible null pointer dereference: CanonCameraInfo [nullPointerOutOfMemory] LibRaw-0.22.1/src/metadata/makernotes.cpp:595:44: note: Assuming allocation function fails LibRaw-0.22.1/src/metadata/makernotes.cpp:595:29: note: Assignment 'CanonCameraInfo=(uchar*)calloc(MAX(16,len)+1,1)', assigned value is 0 LibRaw-0.22.1/src/metadata/makernotes.cpp:596:17: note: Null pointer dereference LibRaw-0.22.1/src/metadata/makernotes.cpp:601:17: warning: If memory allocation fails, then there is a possible null pointer dereference: CanonCameraInfo [nullPointerOutOfMemory] LibRaw-0.22.1/src/metadata/makernotes.cpp:600:44: note: Assuming allocation function fails LibRaw-0.22.1/src/metadata/makernotes.cpp:600:29: note: Assignment 'CanonCameraInfo=(uchar*)calloc(MAX(16,len*4)+1,1)', assigned value is 0 LibRaw-0.22.1/src/metadata/makernotes.cpp:601:17: note: Null pointer dereference LibRaw-0.22.1/src/metadata/makernotes.cpp:229:29: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/makernotes.cpp:234:29: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/makernotes.cpp:595:29: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/makernotes.cpp:600:29: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/makernotes.cpp:498:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/metadata/makernotes.cpp:503:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/metadata/makernotes.cpp:532:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/metadata/makernotes.cpp:533:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/metadata/makernotes.cpp:534:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/metadata/makernotes.cpp:535:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/metadata/makernotes.cpp:536:14: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/metadata/makernotes.cpp:456:23: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/metadata/makernotes.cpp:451:12: note: Assuming condition is false LibRaw-0.22.1/src/metadata/makernotes.cpp:456:23: note: Uninitialized variable: c LibRaw-0.22.1/src/metadata/makernotes.cpp:283:39: error: Uninitialized variable: c [legacyUninitvar] LibRaw-0.22.1/src/metadata/makernotes.cpp:104:37: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/metadata/mediumformat.cpp:28:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ph1 [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/mediumformat.cpp:404:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/mediumformat.cpp:85:50: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/mediumformat.cpp:501:10: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/mediumformat.cpp:507:27: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/mediumformat.cpp:23:26: style: The scope of the variable 'type' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/mediumformat.cpp:359:12: style: The scope of the variable 'skip' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/mediumformat.cpp:90:21: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/metadata/mediumformat.cpp:519:18: error: Uninitialized variable: c [legacyUninitvar] LibRaw-0.22.1/src/metadata/mediumformat.cpp:23:46: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/metadata/minolta.cpp:24:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/minolta.cpp:23:12: style: The scope of the variable 'len' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:29:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:49:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_CAMERAMAKER_Pentax [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:74:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:88:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:99:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:170:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:195:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:223:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_IO_CORRUPT [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:276:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:346:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:390:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:421:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:460:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable thumb_offset [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:486:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:518:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:540:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:176:19: style: Condition '(int)size<0' is always false [knownConditionTrueFalse] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:174:25: note: Assuming that condition '(size=get4())<8' is not redundant LibRaw-0.22.1/src/metadata/misc_parsers.cpp:176:19: note: Condition '(int)size<0' is always false LibRaw-0.22.1/src/metadata/misc_parsers.cpp:256:9: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:166:12: style: The scope of the variable 'size' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:218:31: style: The scope of the variable 'date' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:218:41: style: The scope of the variable 'month' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:273:20: style: The scope of the variable 'val' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:343:16: style: The scope of the variable 'off' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:418:7: style: The scope of the variable 'len' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:418:12: style: The scope of the variable 'hlen' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:535:7: style: The scope of the variable 'i' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:473:13: style: struct member 'Anonymous1::umode' is never used. [unusedStructMember] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:477:14: style: struct member 'Anonymous1::padding_down' is never used. [unusedStructMember] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:478:14: style: struct member 'Anonymous1::unknown_block' is never used. [unusedStructMember] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:479:14: style: struct member 'Anonymous1::transform' is never used. [unusedStructMember] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:480:14: style: struct member 'Anonymous1::format' is never used. [unusedStructMember] LibRaw-0.22.1/src/metadata/misc_parsers.cpp:482:13: style: struct member 'Anonymous1::bayer_format' is never used. [unusedStructMember] LibRaw-0.22.1/src/metadata/nikon.cpp:74:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LensType [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/nikon.cpp:233:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WB_Coeffs [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/nikon.cpp:263:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/nikon.cpp:137:23: style: Array index 'i' is used before limits check. [arrayIndexThenCheck] LibRaw-0.22.1/src/metadata/nikon.cpp:525:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] LibRaw-0.22.1/src/metadata/nikon.cpp:701:13: warning: If memory allocation fails, then there is a possible null pointer dereference: ShotInfo_buf [nullPointerOutOfMemory] LibRaw-0.22.1/src/metadata/nikon.cpp:694:37: note: Assuming allocation function fails LibRaw-0.22.1/src/metadata/nikon.cpp:694:22: note: Assignment 'ShotInfo_buf=(uchar*)calloc(ShotInfo_len+1,1)', assigned value is 0 LibRaw-0.22.1/src/metadata/nikon.cpp:701:13: note: Null pointer dereference LibRaw-0.22.1/src/metadata/nikon.cpp:828:15: warning: If memory allocation fails, then there is a possible null pointer dereference: LensData_buf [nullPointerOutOfMemory] LibRaw-0.22.1/src/metadata/nikon.cpp:827:39: note: Assuming allocation function fails LibRaw-0.22.1/src/metadata/nikon.cpp:827:24: note: Assignment 'LensData_buf=(uchar*)calloc(LensData_len+1,1)', assigned value is 0 LibRaw-0.22.1/src/metadata/nikon.cpp:828:15: note: Null pointer dereference LibRaw-0.22.1/src/metadata/nikon.cpp:611:34: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/nikon.cpp:671:56: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/nikon.cpp:694:22: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/nikon.cpp:827:24: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/nikon.cpp:1003:56: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/nikon.cpp:73:10: style: The scope of the variable 'i' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/nikon.cpp:999:17: style: Variable 'ver' is assigned a value that is never used. [unreadVariable] LibRaw-0.22.1/src/metadata/normalize_model.cpp:443:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_MOUNT_DigitalBack [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/normalize_model.cpp:1504:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WB_Coeffs [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/normalize_model.cpp:689:45: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/normalize_model.cpp:690:45: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/normalize_model.cpp:1091:42: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/normalize_model.cpp:1092:42: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/metadata/normalize_model.cpp:22:10: style: The scope of the variable 'j' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/normalize_model.cpp:1509:41: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/metadata/normalize_model.cpp:1503:7: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/metadata/olympus.cpp:20:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CamID [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/olympus.cpp:74:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OlyID [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/olympus.cpp:100:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OlyID [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/olympus.cpp:129:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BodySerial [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/olympus.cpp:207:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable thumb_offset [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/olympus.cpp:307:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cam_mul [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/olympus.cpp:569:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable software [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/olympus.cpp:648:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FORC3 [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/olympus.cpp:302:10: style: The scope of the variable 'CT' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/olympus.cpp:303:9: style: The scope of the variable 'sorder' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/olympus.cpp:567:7: style: The scope of the variable 'wb_ind' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/olympus.cpp:631:7: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/olympus.cpp:632:12: style: The scope of the variable 'a' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/olympus.cpp:373:42: error: Uninitialized variable: c [legacyUninitvar] LibRaw-0.22.1/src/metadata/olympus.cpp:597:26: error: Uninitialized variable: c [legacyUninitvar] LibRaw-0.22.1/src/metadata/p1.cpp:172:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CamID [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/metadata/p1.cpp:21:10: style: The scope of the variable 'i' can be reduced. [variableScope] LibRaw-0.22.1/src/metadata/pentax.cpp:481:7: error: syntax error [syntaxError] LibRaw-0.22.1/src/metadata/samsung.cpp:110:5: error: There is an unknown macro here somewhere. Configuration is required. If FORC is a macro then please configure it. [unknownMacro] LibRaw-0.22.1/src/metadata/sony.cpp:1115:5: error: There is an unknown macro here somewhere. Configuration is required. If FORC is a macro then please configure it. [unknownMacro] LibRaw-0.22.1/src/metadata/tiff.cpp:1463:9: error: There is an unknown macro here somewhere. Configuration is required. If FORC is a macro then please configure it. [unknownMacro] LibRaw-0.22.1/src/postprocessing/aspect_ratio.cpp:27:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pix [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/aspect_ratio.cpp:72:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pix0 [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/aspect_ratio.cpp:25:9: style: The scope of the variable 'r' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/aspect_ratio.cpp:25:12: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/aspect_ratio.cpp:26:12: style: The scope of the variable 'ur' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/aspect_ratio.cpp:26:16: style: The scope of the variable 'uc' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/aspect_ratio.cpp:90:15: style: Local variable 'img' shadows outer variable [shadowVariable] LibRaw-0.22.1/src/postprocessing/aspect_ratio.cpp:72:20: note: Shadowed declaration LibRaw-0.22.1/src/postprocessing/aspect_ratio.cpp:90:15: note: Shadow variable LibRaw-0.22.1/src/postprocessing/aspect_ratio.cpp:106:15: style: Local variable 'img' shadows outer variable [shadowVariable] LibRaw-0.22.1/src/postprocessing/aspect_ratio.cpp:72:20: note: Shadowed declaration LibRaw-0.22.1/src/postprocessing/aspect_ratio.cpp:106:15: note: Shadow variable LibRaw-0.22.1/src/postprocessing/dcraw_process.cpp:25:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_PROGRESS_LOAD_RAW [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/dcraw_process.cpp:19:7: style: The scope of the variable 'quality' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/dcraw_process.cpp:19:16: style: The scope of the variable 'i' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/dcraw_process.cpp:21:7: style: The scope of the variable 'iterations' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/dcraw_process.cpp:21:24: style: The scope of the variable 'dcb_enhance' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/dcraw_process.cpp:21:41: style: The scope of the variable 'noiserd' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/dcraw_process.cpp:22:9: style: The scope of the variable 'preser' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/dcraw_process.cpp:23:9: style: The scope of the variable 'expos' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/mem_image.cpp:19:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable thumb [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/mem_image.cpp:157:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable width [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/mem_image.cpp:191:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable progress_flags [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/mem_image.cpp:285:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable libraw_processed_image_t [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/mem_image.cpp:234:20: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/postprocessing/mem_image.cpp:235:12: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/postprocessing/mem_image.cpp:197:15: style: The scope of the variable 'val' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/mem_image.cpp:197:20: style: The scope of the variable 'total' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/mem_image.cpp:197:45: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/mem_image.cpp:224:10: style: The scope of the variable 'ppm' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/mem_image.cpp:225:11: style: The scope of the variable 'ppm2' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:42:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iwidth [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:253:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable med_passes [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:287:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable colors [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:329:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable highlight [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:51:15: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:50:27: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:50:12: note: Assignment 'fimg=(float*)malloc((size*3+iheight+iwidth+128)*sizeof(*fimg))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:51:15: note: Null pointer addition LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:50:12: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:339:9: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:99:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:99:19: portability: Casting from float * to unsigned short * is not portable due to different binary data representations on different platforms. [invalidPointerCast] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:36:42: style: The scope of the variable 'avg' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:36:47: style: The scope of the variable 'diff' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:37:63: style: The scope of the variable 'wlast' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:37:70: style: The scope of the variable 'blk' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:322:15: style: The scope of the variable 'sum' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:322:20: style: The scope of the variable 'wgt' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:323:16: style: The scope of the variable 'count' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:323:23: style: The scope of the variable 'spread' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:323:31: style: The scope of the variable 'change' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:323:39: style: The scope of the variable 'val' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:323:44: style: The scope of the variable 'i' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:324:24: style: The scope of the variable 'mrow' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:324:30: style: The scope of the variable 'mcol' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:324:36: style: The scope of the variable 'row' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:324:41: style: The scope of the variable 'col' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:324:53: style: The scope of the variable 'd' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:324:56: style: The scope of the variable 'y' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:324:59: style: The scope of the variable 'x' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:325:11: style: The scope of the variable 'pixel' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:48:16: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:330:31: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:290:47: error: Uninitialized variable: c [legacyUninitvar] LibRaw-0.22.1/src/postprocessing/postprocessing_aux.cpp:37:57: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/postprocessing/postprocessing_ph.cpp:21:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_NOT_IMPLEMENTED [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:64:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable height [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:84:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable histogram [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:146:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable iheight [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:66:27: warning: If memory allocation fails, then there is a possible null pointer dereference: lut [nullPointerOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:31:41: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:31:25: note: Assignment 'lut=(ushort*)malloc((65535+1)*sizeof(unsigned short))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:66:27: note: Null pointer dereference LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:67:27: warning: If memory allocation fails, then there is a possible null pointer dereference: lut [nullPointerOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:31:41: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:31:25: note: Assignment 'lut=(ushort*)malloc((65535+1)*sizeof(unsigned short))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:67:27: note: Null pointer dereference LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:68:27: warning: If memory allocation fails, then there is a possible null pointer dereference: lut [nullPointerOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:31:41: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:31:25: note: Assignment 'lut=(ushort*)malloc((65535+1)*sizeof(unsigned short))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:68:27: note: Null pointer dereference LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:69:27: warning: If memory allocation fails, then there is a possible null pointer dereference: lut [nullPointerOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:31:41: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:31:25: note: Assignment 'lut=(ushort*)malloc((65535+1)*sizeof(unsigned short))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:69:27: note: Null pointer dereference LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:31:25: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:57:13: style: The scope of the variable 'Y' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:81:17: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils.cpp:150:9: style: The scope of the variable 'val' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:29:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rec2020_rgb [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:119:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_PROGRESS_SCALE_COLORS [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:271:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable half_size [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:230:9: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:228:29: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:228:13: note: Assignment 'img=(ushort*)malloc(size*sizeof(*img))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:230:9: note: Null pointer dereference LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:281:10: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:29: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:9: note: Assignment 'img=(ushort(*)[4])calloc(height*width,sizeof(*image))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:281:10: note: Null pointer dereference LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:286:14: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:29: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:9: note: Assignment 'img=(ushort(*)[4])calloc(height*width,sizeof(*image))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:286:14: note: Null pointer dereference LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:287:14: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:29: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:9: note: Assignment 'img=(ushort(*)[4])calloc(height*width,sizeof(*image))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:287:14: note: Null pointer dereference LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:288:14: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:29: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:9: note: Assignment 'img=(ushort(*)[4])calloc(height*width,sizeof(*image))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:288:14: note: Null pointer dereference LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:289:14: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:29: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:9: note: Assignment 'img=(ushort(*)[4])calloc(height*width,sizeof(*image))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:289:14: note: Null pointer dereference LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:290:14: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:29: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:9: note: Assignment 'img=(ushort(*)[4])calloc(height*width,sizeof(*image))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:290:14: note: Null pointer dereference LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:291:14: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:29: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:9: note: Assignment 'img=(ushort(*)[4])calloc(height*width,sizeof(*image))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:291:14: note: Null pointer dereference LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:292:14: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:29: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:9: note: Assignment 'img=(ushort(*)[4])calloc(height*width,sizeof(*image))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:292:14: note: Null pointer dereference LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:293:14: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:29: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:9: note: Assignment 'img=(ushort(*)[4])calloc(height*width,sizeof(*image))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:293:14: note: Null pointer dereference LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:304:12: warning: If memory allocation fails, then there is a possible null pointer dereference: img [nullPointerOutOfMemory] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:29: note: Assuming allocation function fails LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:280:9: note: Assignment 'img=(ushort(*)[4])calloc(height*width,sizeof(*image))', assigned value is 0 LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:304:12: note: Null pointer dereference LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:68:10: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:81:12: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:84:14: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:95:12: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:97:10: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:228:13: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:24:10: style: The scope of the variable 'num' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:25:24: style: The scope of the variable 'out_rgb' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:30:22: style: The scope of the variable 'name' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:49:12: style: The scope of the variable 'pcurve' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:263:10: style: The scope of the variable 'm1' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:263:14: style: The scope of the variable 'm2' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:263:18: style: The scope of the variable 'c1' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:263:22: style: The scope of the variable 'c2' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:264:7: style: The scope of the variable 'o1_1' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:264:13: style: The scope of the variable 'o1_2' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:264:19: style: The scope of the variable 'o1_3' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:264:25: style: The scope of the variable 'o1_4' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:265:7: style: The scope of the variable 'o2_1' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:265:13: style: The scope of the variable 'o2_2' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:265:19: style: The scope of the variable 'o2_3' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:265:25: style: The scope of the variable 'o2_4' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:269:9: style: The scope of the variable 'f' can be reduced. [variableScope] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:210:11: style: Local variable 'scale_mul' shadows outer variable [shadowVariable] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:116:9: note: Shadowed declaration LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:210:11: note: Shadow variable LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:212:11: style: Local variable 'scale_mul' shadows outer variable [shadowVariable] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:116:9: note: Shadowed declaration LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:212:11: note: Shadow variable LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:116:18: warning: Redundant code: Found unused array access. [constStatement] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:159:20: warning: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:132:32: note: Assuming condition is false LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:159:20: note: Uninitialized variable: c LibRaw-0.22.1/src/preprocessing/ext_preprocess.cpp:32:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable filters [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/preprocessing/ext_preprocess.cpp:74:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_PROGRESS_DARK_FRAME [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/preprocessing/ext_preprocess.cpp:28:9: style: The scope of the variable 'cp' can be reduced. [variableScope] LibRaw-0.22.1/src/preprocessing/raw2image.cpp:21:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable color [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/preprocessing/raw2image.cpp:62:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_PROGRESS_LOAD_RAW [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/preprocessing/raw2image.cpp:226:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_height [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/preprocessing/raw2image.cpp:277:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable height [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/preprocessing/raw2image.cpp:314:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_PROGRESS_LOAD_RAW [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/preprocessing/raw2image.cpp:76:41: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/preprocessing/raw2image.cpp:171:34: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/preprocessing/raw2image.cpp:328:41: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/preprocessing/raw2image.cpp:524:36: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/preprocessing/raw2image.cpp:175:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/preprocessing/raw2image.cpp:528:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] LibRaw-0.22.1/src/preprocessing/raw2image.cpp:343:20: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/src/preprocessing/raw2image.cpp:343:23: style: The scope of the variable 'filt' can be reduced. [variableScope] LibRaw-0.22.1/src/preprocessing/subtract_black.cpp:26:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_PROGRESS_RAW2_IMAGE [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/preprocessing/subtract_black.cpp:78:19: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/tables/colordata.cpp:34:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_CAMERAMAKER_Agfa [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/tables/colordata.cpp:1929:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_color [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/tables/colordata.cpp:1903:28: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/tables/colordata.cpp:1930:22: error: Uninitialized variable: c [uninitvar] LibRaw-0.22.1/src/tables/colordata.cpp:1927:10: style: Variable 'c' is not assigned a value. [unassignedVariable] LibRaw-0.22.1/src/utils/curves.cpp:86:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable curve [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/curves.cpp:125:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gamm [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/curves.cpp:152:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable curve [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/curves.cpp:26:7: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/utils/curves.cpp:29:10: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/utils/curves.cpp:95:33: style: The scope of the variable 'r' can be reduced. [variableScope] LibRaw-0.22.1/src/utils/decoder_info.cpp:27:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_UNSPECIFIED_ERROR [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/init_close_utils.cpp:35:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable imgdata [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/init_close_utils.cpp:110:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tls [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/init_close_utils.cpp:141:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable image [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/open.cpp:23:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_OPEN_BIGFILE [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/open.cpp:225:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_IO_ERROR [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/open.cpp:272:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_IO_ERROR [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/open.cpp:470:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/phaseone_processing.cpp:25:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable process_warnings [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/phaseone_processing.cpp:34:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_image [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/phaseone_processing.cpp:45:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable user_black [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/phaseone_processing.cpp:30:33: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/utils/phaseone_processing.cpp:35:33: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/utils/read_utils.cpp:24:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/read_utils.cpp:41:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/read_utils.cpp:48:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/read_utils.cpp:54:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/read_utils.cpp:69:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/read_utils.cpp:73:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXIFTAG_TYPE_SHORT [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/read_utils.cpp:116:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/read_utils.cpp:127:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable order [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/read_utils.cpp:172:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/thumb_utils.cpp:22:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_EXCEPTION_UNSUPPORTED_FORMAT [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/thumb_utils.cpp:28:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable theight [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/thumb_utils.cpp:261:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/thumb_utils.cpp:306:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/thumb_utils.cpp:175:11: warning: If memory allocation fails, then there is a possible null pointer dereference: t_curve [nullPointerOutOfMemory] LibRaw-0.22.1/src/utils/thumb_utils.cpp:174:37: note: Assuming allocation function fails LibRaw-0.22.1/src/utils/thumb_utils.cpp:174:21: note: Assignment 't_curve=(ushort*)calloc(sizeof(imgdata.color.curve),1)', assigned value is 0 LibRaw-0.22.1/src/utils/thumb_utils.cpp:175:11: note: Null pointer dereference LibRaw-0.22.1/src/utils/thumb_utils.cpp:174:21: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/utils/thumb_utils.cpp:212:13: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/utils/thumb_utils.cpp:110:12: style: The scope of the variable 'val' can be reduced. [variableScope] LibRaw-0.22.1/src/utils/thumb_utils.cpp:178:15: style: The scope of the variable 'val' can be reduced. [variableScope] LibRaw-0.22.1/src/utils/thumb_utils.cpp:178:20: style: The scope of the variable 'total' can be reduced. [variableScope] LibRaw-0.22.1/src/utils/thumb_utils.cpp:178:45: style: The scope of the variable 'c' can be reduced. [variableScope] LibRaw-0.22.1/src/utils/utils_dcraw.cpp:41:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable filters [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_dcraw.cpp:83:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tiff_flip [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_dcraw.cpp:143:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cmatrix [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_dcraw.cpp:157:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cmatrix [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_dcraw.cpp:166:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_PROGRESS_REMOVE_ZEROES [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_dcraw.cpp:189:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable mask [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_dcraw.cpp:290:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable xyz_rgb [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_dcraw.cpp:327:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ifp [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_dcraw.cpp:256:18: style: Boolean value assigned to floating point variable. [assignBoolToFloat] LibRaw-0.22.1/src/utils/utils_dcraw.cpp:51:19: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/utils/utils_dcraw.cpp:163:22: style: The scope of the variable 'tot' can be reduced. [variableScope] LibRaw-0.22.1/src/utils/utils_dcraw.cpp:163:27: style: The scope of the variable 'n' can be reduced. [variableScope] LibRaw-0.22.1/src/utils/utils_dcraw.cpp:250:22: style: The scope of the variable 'num' can be reduced. [variableScope] LibRaw-0.22.1/src/utils/utils_libraw.cpp:112:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable fsize [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:167:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable data_error [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:232:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable load_raw [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:238:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable load_raw [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:242:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable thumb_format [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:245:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable load_raw [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:248:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable load_raw [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:284:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable input [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:298:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _exitflag [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:315:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _exitflag [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:333:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _exitflag [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:341:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable curve [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:348:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable image [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:361:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable load_raw [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:366:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable load_raw [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:422:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable use_fuji_rotate [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:453:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable adjust_maximum_thr [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:471:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable user_black [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:587:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tiff_ifd [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:602:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tagtype_dataunit_bytes [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:625:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable raw_inset_crops [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/utils/utils_libraw.cpp:692:24: style:inconclusive: Technically the member function 'checked_buffer_t::checkoffset' can be const. [functionConst] LibRaw-0.22.1/internal/libraw_checked_buffer.h:14:7: note: Technically the member function 'checked_buffer_t::checkoffset' can be const. LibRaw-0.22.1/src/utils/utils_libraw.cpp:692:24: note: Technically the member function 'checked_buffer_t::checkoffset' can be const. LibRaw-0.22.1/src/utils/utils_libraw.cpp:95:12: warning: If memory allocation fails, then there is a possible null pointer dereference: string [nullPointerOutOfMemory] LibRaw-0.22.1/src/utils/utils_libraw.cpp:94:34: note: Assuming allocation function fails LibRaw-0.22.1/src/utils/utils_libraw.cpp:94:20: note: Assignment 'string=(char*)malloc(strlen(list[i])+1)', assigned value is 0 LibRaw-0.22.1/src/utils/utils_libraw.cpp:95:12: note: Null pointer dereference LibRaw-0.22.1/src/utils/utils_libraw.cpp:650:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buffers [nullPointerOutOfMemory] LibRaw-0.22.1/src/utils/utils_libraw.cpp:646:36: note: Assuming allocation function fails LibRaw-0.22.1/src/utils/utils_libraw.cpp:646:22: note: Assignment 'buffers=(char**)calloc(sizeof(char*),buffer_count)', assigned value is 0 LibRaw-0.22.1/src/utils/utils_libraw.cpp:650:9: note: Null pointer dereference LibRaw-0.22.1/src/utils/utils_libraw.cpp:94:20: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/utils/utils_libraw.cpp:553:22: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/utils/utils_libraw.cpp:562:23: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/utils/utils_libraw.cpp:646:22: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/utils/utils_libraw.cpp:650:22: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/utils/utils_libraw.cpp:666:20: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/libraw/libraw_types.h:153:43: style:inconclusive: Function 'default_data_callback' argument 1 names different: declaration 'data' definition ''. [funcArgNamesDifferentUnnamed] LibRaw-0.22.1/src/write/apply_profile.cpp:32:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable profile_length [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/write/apply_profile.cpp:51:13: style: C-style pointer casting [cstyleCast] LibRaw-0.22.1/src/write/apply_profile.cpp:24:9: style: Unused variable: prof [unusedVariable] LibRaw-0.22.1/src/write/file_write.cpp:42:5: error: There is an unknown macro here somewhere. Configuration is required. If FORC is a macro then please configure it. [unknownMacro] LibRaw-0.22.1/src/write/tiff_writer.cpp:23:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LIBRAW_PROGRESS_LOAD_RAW [valueFlowBailoutIncompleteVar] LibRaw-0.22.1/src/write/write_ph.cpp:22:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable flip [valueFlowBailoutIncompleteVar] diff: head LibRaw-0.22.1/RawSpeed3/rawspeed3_c_api/rawspeed3_capi.cpp:32:52: style:inconclusive: Function 'rawspeed3_clearresult' argument 1 names different: declaration '' definition 'r'. [funcArgNamesDifferentUnnamed] head LibRaw-0.22.1/libraw/libraw_types.h:153:43: style:inconclusive: Function 'default_data_callback' argument 1 names different: declaration 'data' definition ''. [funcArgNamesDifferentUnnamed] 2.20.0 LibRaw-0.22.1/samples/openbayer_sample.cpp:39:24: warning: If resource allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfResources] LibRaw-0.22.1/samples/openbayer_sample.cpp:37:19: note: Assuming allocation function fails LibRaw-0.22.1/samples/openbayer_sample.cpp:37:19: note: Assignment 'in=fopen(av[1],"rb")', assigned value is 0 LibRaw-0.22.1/samples/openbayer_sample.cpp:39:24: note: Null pointer dereference 2.20.0 LibRaw-0.22.1/samples/openbayer_sample.cpp:43:9: warning: If resource allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfResources] LibRaw-0.22.1/samples/openbayer_sample.cpp:37:19: note: Assuming allocation function fails LibRaw-0.22.1/samples/openbayer_sample.cpp:37:19: note: Assignment 'in=fopen(av[1],"rb")', assigned value is 0 LibRaw-0.22.1/samples/openbayer_sample.cpp:41:7: note: Assuming condition is false LibRaw-0.22.1/samples/openbayer_sample.cpp:43:9: note: Null pointer dereference 2.20.0 LibRaw-0.22.1/samples/openbayer_sample.cpp:44:42: warning: If resource allocation fails, then there is a possible null pointer dereference: in [nullPointerOutOfResources] LibRaw-0.22.1/samples/openbayer_sample.cpp:37:19: note: Assuming allocation function fails LibRaw-0.22.1/samples/openbayer_sample.cpp:37:19: note: Assignment 'in=fopen(av[1],"rb")', assigned value is 0 LibRaw-0.22.1/samples/openbayer_sample.cpp:41:7: note: Assuming condition is false LibRaw-0.22.1/samples/openbayer_sample.cpp:44:42: note: Null pointer dereference head LibRaw-0.22.1/samples/raw-identify.cpp:311:26: style:inconclusive: Function 'print_verbose' argument 1 names different: declaration '' definition 'outfile'. [funcArgNamesDifferentUnnamed] head LibRaw-0.22.1/samples/raw-identify.cpp:690:24: style:inconclusive: Function 'print_wbfun' argument 1 names different: declaration '' definition 'outfile'. [funcArgNamesDifferentUnnamed] head LibRaw-0.22.1/samples/raw-identify.cpp:726:24: style:inconclusive: Function 'print_szfun' argument 1 names different: declaration '' definition 'outfile'. [funcArgNamesDifferentUnnamed] head LibRaw-0.22.1/samples/raw-identify.cpp:731:28: style:inconclusive: Function 'print_unpackfun' argument 1 names different: declaration '' definition 'outfile'. [funcArgNamesDifferentUnnamed] head LibRaw-0.22.1/src/decoders/fp_dng.cpp:278:76: style:inconclusive: Function 'init' argument 2 names different: declaration '' definition 'sizes'. [funcArgNamesDifferentUnnamed] head LibRaw-0.22.1/src/decoders/fp_dng.cpp:279:28: style:inconclusive: Function 'init' argument 3 names different: declaration '' definition 'unpacker_data'. [funcArgNamesDifferentUnnamed] head LibRaw-0.22.1/src/decoders/pana8.cpp:196:13: style: Variable 'gammatable' can be declared as pointer to const [constVariablePointer] head LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:253:46: style:inconclusive: Function 'parse_sof' argument 1 names different: declaration '' definition 'input'. [funcArgNamesDifferentUnnamed] head LibRaw-0.22.1/src/decompressors/losslessjpeg.cpp:279:50: style:inconclusive: Function 'parse_sos' argument 1 names different: declaration '' definition 'input'. [funcArgNamesDifferentUnnamed] 2.20.0 LibRaw-0.22.1/src/metadata/nikon.cpp:703:42: warning: If memory allocation fails, then there is a possible null pointer dereference: ShotInfo_buf [nullPointerOutOfMemory] LibRaw-0.22.1/src/metadata/nikon.cpp:694:37: note: Assuming allocation function fails LibRaw-0.22.1/src/metadata/nikon.cpp:694:22: note: Assignment 'ShotInfo_buf=(uchar*)calloc(ShotInfo_len+1,1)', assigned value is 0 LibRaw-0.22.1/src/metadata/nikon.cpp:703:42: note: Null pointer dereference head LibRaw-0.22.1/src/postprocessing/postprocessing_utils_dcrdefs.cpp:116:18: warning: Redundant code: Found unused array access. [constStatement] DONE