2025-06-25 09:29 ftp://ftp.de.debian.org/debian/pool/main/v/vboot-utils/vboot-utils_0~R106-15054.B+dfsg.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.8.0-62-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.17.0 head-info: 129055d (2025-06-24 18:36:34 +0200) count: 1816 1810 elapsed-time: 14.3 13.5 head-timing-info: old-timing-info: head results: cgpt/cgpt.c:23:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_OK [valueFlowBailoutIncompleteVar] cgpt/cgpt.c:70:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt.c:60:9: style: Variable 'command' can be declared as pointer to const [constVariablePointer] cgpt/cgpt_add.c:17:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cgpt/cgpt_add.c:54:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIMARY [valueFlowBailoutIncompleteVar] cgpt/cgpt_add.c:85:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIMARY [valueFlowBailoutIncompleteVar] cgpt/cgpt_add.c:116:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] cgpt/cgpt_add.c:144:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIMARY [valueFlowBailoutIncompleteVar] cgpt/cgpt_add.c:159:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt_add.c:193:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt_add.c:254:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIMARY [valueFlowBailoutIncompleteVar] cgpt/cgpt_add.c:285:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt_add.c:51:49: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] cgpt/cgpt_boot.c:22:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt_boot.c:70:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] cgpt/cgpt_boot.c:121:15: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] cgpt/cgpt_common.c:36:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:55:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:71:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MASK_BOTH [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:86:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:117:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:128:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:144:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:168:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_ENTRIES_ALLOC_SIZE [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:234:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MASK_PRIMARY [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:300:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BLKGETSIZE64 [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:321:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:392:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_OK [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:421:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:444:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GUID_STRLEN [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:481:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_OK [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:570:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_OK [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:701:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Guid [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:713:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Guid [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:731:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MASK_PRIMARY [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:751:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:773:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_ATTRIBUTE_MAX_REQUIRED [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:787:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_ATTRIBUTE_MAX_LEGACY_BOOT [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:801:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_ATTRIBUTE_MAX_PRIORITY [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:815:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_ATTRIBUTE_MAX_TRIES [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:829:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_ATTRIBUTE_MAX_SUCCESSFUL [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:849:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MASK_PRIMARY [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:893:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_MODIFIED_ENTRIES1 [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:936:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Guid [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:959:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MASK_PRIMARY [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:992:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Guid [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:1013:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MASK_BOTH [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:1043:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:1075:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Guid [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:1083:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GUID_STRLEN [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:1102:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt_common.c:79:24: style: Parameter 'drive' can be declared as pointer to const [constParameterPointer] cgpt/cgpt_common.c:126:29: style: Parameter 'drive' can be declared as pointer to const [constParameterPointer] cgpt/cgpt_common.c:137:24: style: Parameter 'drive' can be declared as pointer to const [constParameterPointer] cgpt/cgpt_common.c:740:14: style: Variable 'header' can be declared as pointer to const [constVariablePointer] cgpt/cgpt_common.c:747:29: style: Parameter 'gpt' can be declared as pointer to const [constParameterPointer] cgpt/cgpt_common.c:748:14: style: Variable 'header' can be declared as pointer to const [constVariablePointer] cgpt/cgpt_common.c:955:14: style: Variable 'h' can be declared as pointer to const [constVariablePointer] cgpt/cgpt_common.c:1102:46: style: Parameter 'newguid' can be declared as pointer to const [constParameterPointer] cgpt/cgpt_common.c:509:26: style: Variable 'code_point_ready' is assigned a value that is never used. [unreadVariable] cgpt/cgpt_create.c:18:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] cgpt/cgpt_create.c:28:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MASK_PRIMARY [valueFlowBailoutIncompleteVar] cgpt/cgpt_create.c:124:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt_create.c:24:61: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] cgpt/cgpt_edit.c:17:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt_edit.c:11:30: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] cgpt/cgpt_find.c:110:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] cgpt/cgpt_find.c:150:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_OK [valueFlowBailoutIncompleteVar] cgpt/cgpt_find.c:20:39: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] cgpt/cgpt_find.c:42:40: style: Parameter 'entry' can be declared as pointer to const [constParameterPointer] cgpt/cgpt_find.c:275:41: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] cgpt/cgpt_find.c:287:9: style: Variable 'pathname' can be declared as pointer to const [constVariablePointer] cgpt/cgpt_legacy.c:18:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt_legacy.c:12:34: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] cgpt/cgpt_nor.c:275:27: error: syntax error [syntaxError] cgpt/cgpt_prioritize.c:34:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cgpt/cgpt_prioritize.c:63:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cgpt/cgpt_prioritize.c:108:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt_repair.c:16:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt_repair.c:12:34: style: Parameter 'params' can be declared as pointer to const [constParameterPointer] cgpt/cgpt_show.c:85:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GUID_STRLEN [valueFlowBailoutIncompleteVar] cgpt/cgpt_show.c:104:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GUID_STRLEN [valueFlowBailoutIncompleteVar] cgpt/cgpt_show.c:183:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] cgpt/cgpt_show.c:401:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_FAILED [valueFlowBailoutIncompleteVar] cgpt/cgpt_show.c:34:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] cgpt/cgpt_show.c:63:23: note: Assuming allocation function fails cgpt/cgpt_show.c:63:23: note: Assignment 'buf=malloc(n*3-1+3)', assigned value is 0 cgpt/cgpt_show.c:64:32: note: Calling function 'RawDump', 3rd argument 'buf' value is 0 cgpt/cgpt_show.c:34:3: note: Null pointer dereference cgpt/cgpt_show.c:37:5: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] cgpt/cgpt_show.c:63:23: note: Assuming allocation function fails cgpt/cgpt_show.c:63:23: note: Assignment 'buf=malloc(n*3-1+3)', assigned value is 0 cgpt/cgpt_show.c:64:32: note: Calling function 'RawDump', 3rd argument 'buf' value is 0 cgpt/cgpt_show.c:37:5: note: Null pointer dereference cgpt/cgpt_show.c:38:5: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] cgpt/cgpt_show.c:63:23: note: Assuming allocation function fails cgpt/cgpt_show.c:63:23: note: Assignment 'buf=malloc(n*3-1+3)', assigned value is 0 cgpt/cgpt_show.c:64:32: note: Calling function 'RawDump', 3rd argument 'buf' value is 0 cgpt/cgpt_show.c:38:5: note: Null pointer dereference cgpt/cgpt_show.c:42:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] cgpt/cgpt_show.c:63:23: note: Assuming allocation function fails cgpt/cgpt_show.c:63:23: note: Assignment 'buf=malloc(n*3-1+3)', assigned value is 0 cgpt/cgpt_show.c:64:32: note: Calling function 'RawDump', 3rd argument 'buf' value is 0 cgpt/cgpt_show.c:42:3: note: Null pointer dereference cgpt/cgpt_show.c:43:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] cgpt/cgpt_show.c:63:23: note: Assuming allocation function fails cgpt/cgpt_show.c:63:23: note: Assignment 'buf=malloc(n*3-1+3)', assigned value is 0 cgpt/cgpt_show.c:64:32: note: Calling function 'RawDump', 3rd argument 'buf' value is 0 cgpt/cgpt_show.c:43:3: note: Null pointer dereference cgpt/cgpt_show.c:65:18: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] cgpt/cgpt_show.c:63:23: note: Assuming allocation function fails cgpt/cgpt_show.c:63:23: note: Assignment 'buf=malloc(n*3-1+3)', assigned value is 0 cgpt/cgpt_show.c:65:18: note: Null pointer dereference cgpt/cgpt_wrapper.c:57:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MTD_CHAR_MAJOR [valueFlowBailoutIncompleteVar] cgpt/cgpt_wrapper.c:78:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA1_DIGEST_SIZE [valueFlowBailoutIncompleteVar] cgpt/cgpt_wrapper.c:160:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] cgpt/cgpt_wrapper.c:84:8: style: Variable 'temp_dir' can be declared as const array [constVariable] cgpt/cmd_add.c:50:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] cgpt/cmd_boot.c:40:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] cgpt/cmd_create.c:36:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] cgpt/cmd_edit.c:34:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] cgpt/cmd_find.c:83:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] cgpt/cmd_legacy.c:35:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] cgpt/cmd_prioritize.c:49:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] cgpt/cmd_repair.c:34:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] cgpt/cmd_show.c:55:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] firmware/2lib/2api.c:32:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_SECDATA_WANTS_REBOOT [valueFlowBailoutIncompleteVar] firmware/2lib/2api.c:107:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_S3_RESUME [valueFlowBailoutIncompleteVar] firmware/2lib/2api.c:143:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_API_EXTEND_HASH_WORKBUF [valueFlowBailoutIncompleteVar] firmware/2lib/2api.c:168:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA1_DIGEST_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2api.c:193:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_RECOVERY_RO_INVALID_RW [valueFlowBailoutIncompleteVar] firmware/2lib/2api.c:211:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_TAG_INVALID [valueFlowBailoutIncompleteVar] firmware/2lib/2api.c:307:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_API_CHECK_HASH_PREAMBLE [valueFlowBailoutIncompleteVar] firmware/2lib/2api.c:375:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_TRY_COUNT [valueFlowBailoutIncompleteVar] firmware/2lib/2api.c:373:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] firmware/2lib/2auxfw_sync.c:23:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_GBB_FLAG_DISABLE_AUXFW_SOFTWARE_SYNC [valueFlowBailoutIncompleteVar] firmware/2lib/2auxfw_sync.c:44:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_AUXFW_NO_UPDATE [valueFlowBailoutIncompleteVar] firmware/2lib/2auxfw_sync.c:54:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_AUXFW_NO_UPDATE [valueFlowBailoutIncompleteVar] firmware/2lib/2auxfw_sync.c:20:25: style: Variable 'gbb' can be declared as pointer to const [constVariablePointer] firmware/2lib/2common.c:41:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_ALIGN_BIGGER_THAN_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2common.c:59:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_WORKBUF_ALIGN [valueFlowBailoutIncompleteVar] firmware/2lib/2common.c:124:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_INSIDE_PARENT_WRAPS [valueFlowBailoutIncompleteVar] firmware/2lib/2common.c:162:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_VDATA_SIG_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2common.c:197:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_VDATA_NOT_ENOUGH_DATA [valueFlowBailoutIncompleteVar] firmware/2lib/2common.c:108:16: portability: 'parent' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] firmware/2lib/2context.c:32:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_WORKBUF_ALIGN [valueFlowBailoutIncompleteVar] firmware/2lib/2context.c:61:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_WORKBUF_ALIGN [valueFlowBailoutIncompleteVar] firmware/2lib/2context.c:16:34: portability: '(void*)sd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] firmware/2lib/2crypto.c:170:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_INVALID_ALG_NAME [valueFlowBailoutIncompleteVar] firmware/2lib/2crypto.c:178:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_INVALID_ALG_NAME [valueFlowBailoutIncompleteVar] firmware/2lib/2crypto.c:186:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_INVALID_ALG_NAME [valueFlowBailoutIncompleteVar] firmware/2lib/2crypto.c:194:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_INVALID_ALG_NAME [valueFlowBailoutIncompleteVar] firmware/2lib/2crypto.c:203:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SIG_INVALID [valueFlowBailoutIncompleteVar] firmware/2lib/2crypto.c:211:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_INVALID [valueFlowBailoutIncompleteVar] firmware/2lib/2ec_sync.c:63:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2ec_sync.c:136:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_RECOVERY_EC_UPDATE [valueFlowBailoutIncompleteVar] firmware/2lib/2ec_sync.c:170:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_RECOVERY_EC_UNKNOWN_IMAGE [valueFlowBailoutIncompleteVar] firmware/2lib/2ec_sync.c:188:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EC_EFS [valueFlowBailoutIncompleteVar] firmware/2lib/2ec_sync.c:266:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_EC_SYNC_SUPPORTED [valueFlowBailoutIncompleteVar] firmware/2lib/2ec_sync.c:312:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_EC_SYNC_SUPPORTED [valueFlowBailoutIncompleteVar] firmware/2lib/2ec_sync.c:335:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/2lib/2ec_sync.c:350:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_EC_SYNC_COMPLETE [valueFlowBailoutIncompleteVar] firmware/2lib/2ec_sync.c:186:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] firmware/2lib/2ec_sync.c:262:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] firmware/2lib/2ec_sync.c:263:25: style: Variable 'gbb' can be declared as pointer to const [constVariablePointer] firmware/2lib/2ec_sync.c:309:25: style: Variable 'gbb' can be declared as pointer to const [constVariablePointer] firmware/2lib/2firmware.c:30:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/2lib/2firmware.c:142:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/2lib/2firmware.c:131:25: style: Variable 'gbb' can be declared as pointer to const [constVariablePointer] firmware/2lib/2gbb.c:19:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_gbb_header [valueFlowBailoutIncompleteVar] firmware/2lib/2gbb.c:87:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_GBB_INVALID [valueFlowBailoutIncompleteVar] firmware/2lib/2gbb.c:56:25: style: Variable 'gbb' can be declared as pointer to const [constVariablePointer] firmware/2lib/2gbb.c:69:25: style: Variable 'gbb' can be declared as pointer to const [constVariablePointer] firmware/2lib/2gbb.c:115:25: style: Variable 'gbb' can be declared as pointer to const [constVariablePointer] firmware/2lib/2gbb.c:46:23: portability: '(void*)*keyp' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] firmware/2lib/2hmac.c:17:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_MAX_BLOCK_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2hmac.c:24:11: style:inconclusive: Boolean expression '!key' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] firmware/2lib/2hmac.c:24:18: style:inconclusive: Boolean expression '!mac' is used in bitwise operation. Did you mean '||'? [bitwiseOnBoolean] firmware/2lib/2hmac.c:24:11: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] firmware/2lib/2hmac.c:24:18: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] firmware/2lib/2kernel.c:31:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_RECOVERY_MODE [valueFlowBailoutIncompleteVar] firmware/2lib/2kernel.c:57:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_RECOVERY_MODE [valueFlowBailoutIncompleteVar] firmware/2lib/2kernel.c:127:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_BATTERY_CUTOFF_REQUEST [valueFlowBailoutIncompleteVar] firmware/2lib/2kernel.c:152:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_RECOVERY_MODE [valueFlowBailoutIncompleteVar] firmware/2lib/2kernel.c:218:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_KERNEL_MAX_ROLLFORWARD [valueFlowBailoutIncompleteVar] firmware/2lib/2kernel.c:267:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC [valueFlowBailoutIncompleteVar] firmware/2lib/2kernel.c:31:65: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2kernel.c:143:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] firmware/2lib/2load_kernel.c:44:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_BOOT_MODE_DEVELOPER [valueFlowBailoutIncompleteVar] firmware/2lib/2load_kernel.c:113:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2load_kernel.c:186:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_FLAG_KERNEL_SIGNED [valueFlowBailoutIncompleteVar] firmware/2lib/2load_kernel.c:361:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_LOAD_PARTITION_WORKBUF [valueFlowBailoutIncompleteVar] firmware/2lib/2load_kernel.c:470:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_LK_NO_KERNEL_FOUND [valueFlowBailoutIncompleteVar] firmware/2lib/2load_kernel.c:498:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_LK_NO_KERNEL_FOUND [valueFlowBailoutIncompleteVar] firmware/2lib/2load_kernel.c:551:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_LK_NO_KERNEL_FOUND [valueFlowBailoutIncompleteVar] firmware/2lib/2load_kernel.c:585:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_MINIOS_PRIORITY [valueFlowBailoutIncompleteVar] firmware/2lib/2load_kernel.c:621:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_DISK_FLAG_EXTERNAL_GPT [valueFlowBailoutIncompleteVar] firmware/2lib/2load_kernel.c:486:9: warning: Identical condition and return expression 'rv', return value is always 0 [identicalConditionAfterEarlyExit] firmware/2lib/2load_kernel.c:484:6: note: If condition 'rv' is true, the function will return/exit firmware/2lib/2load_kernel.c:486:9: note: Returning identical expression 'rv' firmware/2lib/2load_kernel.c:300:8: style: Condition 'need_keyblock_valid' is always true [knownConditionTrueFalse] firmware/2lib/2load_kernel.c:313:8: style: Condition 'need_keyblock_valid' is always true [knownConditionTrueFalse] firmware/2lib/2load_kernel.c:622:4: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2load_kernel.c:299:19: style: Variable 'keyblock_valid' is assigned a value that is never used. [unreadVariable] firmware/2lib/2load_kernel.c:312:19: style: Variable 'keyblock_valid' is assigned a value that is never used. [unreadVariable] firmware/2lib/2misc.c:23:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_GBB_SIGNATURE_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:58:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_RES_GBB [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:87:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_NV_INIT [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:134:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_RECOVERY_REQUEST [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:183:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_GBB_WORKBUF [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:209:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_SECDATA_FIRMWARE_INIT [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:303:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_CLEAR_TPM_OWNER_REQUEST [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:332:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_FW_TRIED [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:383:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_BOOT_MODE_MANUAL_RECOVERY [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:404:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_GBB_FLAG_FORCE_DEV_SWITCH_ON [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:415:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_DIAG_REQUEST [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:422:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_RECOVERY_REQUEST [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:445:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_FLAG_DISPLAY_AVAILABLE [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:460:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_LOCALIZATION_INDEX [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:465:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_LOCALIZATION_INDEX [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:474:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_VBSD_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:510:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_KERNEL_FLAGS [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:521:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_KERNEL_FLAGS [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:528:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_KERNEL_FLAGS [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:535:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_GBB_FLAG_DEFAULT_DEV_BOOT_ALTFW [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:558:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_FWMP_DEV_DISABLE_BOOT [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:577:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_GBB_FLAG_DEV_SCREEN_SHORT_DELAY [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:585:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA1_DIGEST_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:613:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA1_DIGEST_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:727:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_BOOT_MODE_NORMAL [valueFlowBailoutIncompleteVar] firmware/2lib/2misc.c:688:6: style: The if condition is the same as the previous if condition [duplicateCondition] firmware/2lib/2misc.c:683:6: note: First condition firmware/2lib/2misc.c:688:6: note: Second condition firmware/2lib/2misc.c:698:6: style: The if condition is the same as the previous if condition [duplicateCondition] firmware/2lib/2misc.c:688:6: note: First condition firmware/2lib/2misc.c:698:6: note: Second condition firmware/2lib/2misc.c:664:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] firmware/2lib/2misc.c:668:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] firmware/2lib/2misc.c:672:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] firmware/2lib/2misc.c:676:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] firmware/2lib/2misc.c:21:49: style: Parameter 'sig' can be declared as pointer to const [constParameterPointer] firmware/2lib/2misc.c:84:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] firmware/2lib/2misc.c:201:25: style: Variable 'gbb' can be declared as pointer to const [constVariablePointer] firmware/2lib/2misc.c:470:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] firmware/2lib/2misc.c:555:25: style: Variable 'gbb' can be declared as pointer to const [constVariablePointer] firmware/2lib/2misc.c:576:25: style: Variable 'gbb' can be declared as pointer to const [constVariablePointer] firmware/2lib/2misc.c:611:25: style: Variable 'gbb' can be declared as pointer to const [constVariablePointer] firmware/2lib/2misc.c:723:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] firmware/2lib/2misc.c:39:46: portability: '(void*)sd' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] firmware/2lib/2nvstorage.c:17:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_NVDATA_V2 [valueFlowBailoutIncompleteVar] firmware/2lib/2nvstorage.c:26:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_NVDATA_V2 [valueFlowBailoutIncompleteVar] firmware/2lib/2nvstorage.c:44:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_NVDATA_V2 [valueFlowBailoutIncompleteVar] firmware/2lib/2nvstorage.c:62:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_NVDATA_V2 [valueFlowBailoutIncompleteVar] firmware/2lib/2nvstorage.c:106:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_OFFS_HEADER [valueFlowBailoutIncompleteVar] firmware/2lib/2nvstorage.c:256:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_OFFS_HEADER [valueFlowBailoutIncompleteVar] firmware/2lib/2nvstorage.c:17:54: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:26:44: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:44:54: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:46:53: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:62:53: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:106:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:110:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:114:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:117:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:123:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:129:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:139:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:151:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:154:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:157:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:164:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:167:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:170:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:173:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:176:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:179:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:182:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:185:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:188:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:191:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:194:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:214:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:218:10: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2nvstorage.c:96:41: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] firmware/2lib/2packed_key.c:27:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SIG_INVALID [valueFlowBailoutIncompleteVar] firmware/2lib/2packed_key.c:74:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNPACK_KEY_BUFFER [valueFlowBailoutIncompleteVar] firmware/2lib/2rsa.c:299:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_RSA_PADDING_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2rsa.c:345:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_EX_HWCRYPTO_UNSUPPORTED [valueFlowBailoutIncompleteVar] firmware/2lib/2rsa.c:35:61: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] firmware/2lib/2secdata_firmware.c:24:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_SECDATA_FIRMWARE_CRC [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_firmware.c:45:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_FIRMWARE_VERSION [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_firmware.c:63:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_SECDATA_FIRMWARE_INIT [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_firmware.c:80:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_SECDATA_FIRMWARE_INIT [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_firmware.c:110:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_SECDATA_FIRMWARE_INIT [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_firmware.c:75:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] firmware/2lib/2secdata_firmware.c:105:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] firmware/2lib/2secdata_fwmp.c:21:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_FWMP_MIN_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_fwmp.c:71:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_FWMP_VERSION [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_fwmp.c:89:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_NO_SECDATA_FWMP [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_fwmp.c:105:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_SECDATA_FWMP_INIT [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_fwmp.c:122:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_SECDATA_FWMP_INIT [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_fwmp.c:101:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] firmware/2lib/2secdata_fwmp.c:102:27: style: Variable 'sec' can be declared as pointer to const [constVariablePointer] firmware/2lib/2secdata_fwmp.c:118:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] firmware/2lib/2secdata_fwmp.c:119:27: style: Variable 'sec' can be declared as pointer to const [constVariablePointer] firmware/2lib/2secdata_kernel.c:53:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_KERNEL_VERSION_V02 [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_kernel.c:82:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_KERNEL_VERSION_V10 [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_kernel.c:119:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_KERNEL_MIN_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_kernel.c:137:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_KERNEL_VERSION_LATEST [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_kernel.c:156:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_KERNEL_VERSION_V02 [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_kernel.c:173:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_KERNEL_MAX_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_kernel.c:192:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_SECDATA_KERNEL_INIT [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_kernel.c:227:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_SECDATA_KERNEL_INIT [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_kernel.c:283:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_SECDATA_KERNEL_INIT [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_kernel.c:301:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_SECDATA_KERNEL_INIT [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_kernel.c:320:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_KERNEL_VERSIONS [valueFlowBailoutIncompleteVar] firmware/2lib/2secdata_kernel.c:20:32: style: Variable 'sec' can be declared as pointer to const [constVariablePointer] firmware/2lib/2secdata_kernel.c:38:33: style: Variable 'sec' can be declared as pointer to const [constVariablePointer] firmware/2lib/2secdata_kernel.c:50:32: style: Variable 'sec' can be declared as pointer to const [constVariablePointer] firmware/2lib/2secdata_kernel.c:187:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] firmware/2lib/2secdata_kernel.c:221:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] firmware/2lib/2secdata_kernel.c:280:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] firmware/2lib/2secdata_kernel.c:281:32: style: Variable 'sec' can be declared as pointer to const [constVariablePointer] firmware/2lib/2secdata_kernel.c:298:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] firmware/2lib/2sha1.c:194:11: style: Variable 'p' can be declared as pointer to const [constVariablePointer] firmware/2lib/2sha256.c:109:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA224 [valueFlowBailoutIncompleteVar] firmware/2lib/2sha256.c:252:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA256_BLOCK_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2sha256.c:289:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA256_BLOCK_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2sha256_x86.c:123:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_sha256_k [valueFlowBailoutIncompleteVar] firmware/2lib/2sha256_x86.c:170:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA256 [valueFlowBailoutIncompleteVar] firmware/2lib/2sha256_x86.c:194:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA256_BLOCK_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2sha256_x86.c:228:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA256_BLOCK_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2sha256_x86.c:20:52: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] firmware/2lib/2sha256_x86.c:27:48: style: Parameter 'to' can be declared as pointer to const [constParameterPointer] firmware/2lib/2sha512.c:164:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA384 [valueFlowBailoutIncompleteVar] firmware/2lib/2sha512.c:294:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA512_BLOCK_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2sha512.c:332:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA512_BLOCK_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2sha_utility.c:84:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_SHA_INIT_ALGORITHM [valueFlowBailoutIncompleteVar] firmware/2lib/2sha_utility.c:111:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_SHA_EXTEND_ALGORITHM [valueFlowBailoutIncompleteVar] firmware/2lib/2sha_utility.c:120:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_SHA_FINALIZE_DIGEST_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2sha_utility.c:161:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_MAX_DIGEST_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2sha_utility.c:119:35: style: Comparing expression of type 'unsigned int' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] firmware/2lib/2sha_utility.c:119:18: style: Checking if unsigned expression 'digest_size' is less than zero. [unsignedLessThanZero] firmware/2lib/2sha_utility.c:119:35: note: Calling function 'vb2_digest_size' returns 0 firmware/2lib/2sha_utility.c:119:18: note: Unsigned less than zero firmware/2lib/2sha_utility.c:89:58: style: Parameter 'dc' can be declared as pointer to const [constParameterPointer] firmware/2lib/2sha_utility.c:116:60: style: Parameter 'dc' can be declared as pointer to const [constParameterPointer] firmware/2lib/2sha_utility.c:116:73: style: Parameter 'digest' can be declared as pointer to const [constParameterPointer] firmware/2lib/2struct.c:16:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_KEYBLOCK_TOO_SMALL_FOR_HEADER [valueFlowBailoutIncompleteVar] firmware/2lib/2struct.c:80:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_KEYBLOCK_SIG_INVALID [valueFlowBailoutIncompleteVar] firmware/2lib/2struct.c:99:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_PREAMBLE_TOO_SMALL_FOR_HEADER [valueFlowBailoutIncompleteVar] firmware/2lib/2struct.c:184:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA512 [valueFlowBailoutIncompleteVar] firmware/2lib/2struct.c:217:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPECTED_VB2_KERNEL_PREAMBLE_2_0_SIZE [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:43:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_SECDATA_FIRMWARE_CHANGED [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:55:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_EX_UNIMPLEMENTED [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:65:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_EX_UNIMPLEMENTED [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:72:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_EX_UNIMPLEMENTED [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:82:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:88:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:94:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:105:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:116:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:122:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:128:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:134:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:140:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:146:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_AUXFW_NO_UPDATE [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:153:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:159:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:170:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_MSEC_PER_SEC [valueFlowBailoutIncompleteVar] firmware/2lib/2stub.c:50:53: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] firmware/2lib/2stub.c:52:11: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] firmware/2lib/2stub.c:62:55: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] firmware/2lib/2stub.c:132:53: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] firmware/2lib/2stub.c:157:54: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] firmware/2lib/2stub_hwcrypto.c:15:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_EX_HWCRYPTO_UNSUPPORTED [valueFlowBailoutIncompleteVar] firmware/2lib/2stub_hwcrypto.c:21:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_SHA_EXTEND_ALGORITHM [valueFlowBailoutIncompleteVar] firmware/2lib/2stub_hwcrypto.c:28:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_SHA_FINALIZE_ALGORITHM [valueFlowBailoutIncompleteVar] firmware/2lib/2stub_hwcrypto.c:36:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_EX_HWCRYPTO_UNSUPPORTED [valueFlowBailoutIncompleteVar] firmware/2lib/2stub_hwcrypto.c:42:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_EX_HWCRYPTO_UNSUPPORTED [valueFlowBailoutIncompleteVar] firmware/2lib/2stub_hwcrypto.c:25:53: style: Parameter 'digest' can be declared as pointer to const [constParameterPointer] firmware/2lib/2stub_hwcrypto.c:41:16: style: Parameter 'inout' can be declared as pointer to const [constParameterPointer] firmware/2lib/2stub_hwcrypto.c:41:33: style: Parameter 'workbuf32' can be declared as pointer to const [constParameterPointer] firmware/2lib/2tpm_bootmode.c:50:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_RECOVERY_MODE [valueFlowBailoutIncompleteVar] firmware/2lib/2tpm_bootmode.c:50:54: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2tpm_bootmode.c:51:45: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] firmware/2lib/2tpm_bootmode.c:48:62: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] firmware/lib/cgptlib/cgptlib.c:19:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_KERNEL_ENTRY_NOT_FOUND [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib.c:37:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_KERNEL_ENTRY_NOT_FOUND [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib.c:124:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_ERROR_INVALID_UPDATE_TYPE [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib.c:203:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_KERNEL_ENTRY_NOT_FOUND [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib.c:34:13: style: Variable 'header' can be declared as pointer to const [constVariablePointer] firmware/lib/cgptlib/cgptlib.c:217:13: style: Variable 'header' can be declared as pointer to const [constVariablePointer] firmware/lib/cgptlib/cgptlib_internal.c:27:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_ERROR_INVALID_SECTOR_SIZE [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib_internal.c:83:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_HEADER_REVISION [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib_internal.c:158:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_ENT_TYPE_CHROMEOS_KERNEL [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib_internal.c:165:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_ERROR_INVALID_ENTRIES [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib_internal.c:228:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Guid [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib_internal.c:254:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib_internal.c:338:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MASK_NONE [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib_internal.c:392:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_ATTRIBUTE_SUCCESSFUL_MASK [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib_internal.c:398:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_ATTRIBUTE_PRIORITY_MASK [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib_internal.c:404:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_ATTRIBUTE_TRIES_MASK [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib_internal.c:421:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_ATTRIBUTE_SUCCESSFUL_MASK [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib_internal.c:428:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_ATTRIBUTE_PRIORITY_MASK [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib_internal.c:436:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGPT_ATTRIBUTE_TRIES_MASK [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib_internal.c:445:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Guid [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib_internal.c:456:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_MODIFIED_HEADER1 [valueFlowBailoutIncompleteVar] firmware/lib/cgptlib/cgptlib_internal.c:15:43: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] firmware/lib/cgptlib/cgptlib_internal.c:22:30: style: Parameter 'gpt' can be declared as pointer to const [constParameterPointer] firmware/lib/cgptlib/cgptlib_internal.c:162:48: style: Parameter 'h' can be declared as pointer to const [constParameterPointer] firmware/lib/cgptlib/cgptlib_internal.c:214:33: style: Parameter 'h1' can be declared as pointer to const [constParameterPointer] firmware/lib/cgptlib/cgptlib_internal.c:214:48: style: Parameter 'h2' can be declared as pointer to const [constParameterPointer] firmware/lib/cgptlib/cgptlib_internal.c:444:12: style: Variable 'e' can be declared as pointer to const [constVariablePointer] firmware/lib/cgptlib/cgptlib_internal.c:302:12: style: Variable 'goodhdr' is assigned a value that is never used. [unreadVariable] firmware/lib/cgptlib/crc32.c:104:11: style: Variable 'byte' can be declared as pointer to const [constVariablePointer] firmware/lib/gpt_misc.c:35:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_ENTRIES_ALLOC_SIZE [valueFlowBailoutIncompleteVar] firmware/lib/gpt_misc.c:150:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_PMBR_SECTORS [valueFlowBailoutIncompleteVar] firmware/lib/gpt_misc.c:132:13: style: Variable 'header' can be declared as pointer to const [constVariablePointer] firmware/lib/gpt_misc.c:152:14: style: Variable 'h' can be declared as pointer to const [constVariablePointer] firmware/lib/gpt_misc.c:187:14: style: Variable 'h' can be declared as pointer to const [constVariablePointer] firmware/lib/tpm2_lite/marshaling.c:229:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable property [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:454:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPMA_NV_PLATFORMCREATE [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:483:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_RH_PLATFORM [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:514:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPMI_RH_NV_INDEX_OWNER_START [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:530:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_RS_PW [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:548:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_RH_PLATFORM [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:564:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ST_SESSIONS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:578:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ST_SESSIONS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:592:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ST_NO_SESSIONS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:604:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ST_SESSIONS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:619:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ST_NO_SESSIONS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:630:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ST_NO_SESSIONS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:641:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ST_SESSIONS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:652:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ST_NO_SESSIONS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:661:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ST_NO_SESSIONS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:670:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ST_NO_SESSIONS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:679:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ALG_SHA256 [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:709:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ST_SESSIONS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:720:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tpm_header [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:816:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tpm_header [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/marshaling.c:277:47: style: Parameter 'blob' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm2_lite/marshaling.c:366:14: style: Parameter 'buffer_space' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm2_lite/marshaling.c:405:13: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm2_lite/marshaling.c:470:16: style: Parameter 'command_body' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm2_lite/marshaling.c:539:33: style: Parameter 'command_body' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm2_lite/marshaling.c:559:37: style: Parameter 'command_body' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm2_lite/marshaling.c:589:40: style: Parameter 'command_body' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm2_lite/marshaling.c:599:16: style: Parameter 'command_body' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm2_lite/marshaling.c:616:13: style: Parameter 'command_body' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm2_lite/marshaling.c:627:13: style: Parameter 'command_body' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm2_lite/marshaling.c:649:37: style: Parameter 'command_body' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm2_lite/marshaling.c:658:33: style: Parameter 'command_body' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm2_lite/marshaling.c:667:35: style: Parameter 'command_body' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm2_lite/tlcl.c:45:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_BUFFER_SIZE [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:110:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:121:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:157:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SU_CLEAR [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:166:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SU_STATE [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:175:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SU_STATE [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:186:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM2_SelfTest [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:195:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM2_SelfTest [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:246:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPMA_NV_MASK_WRITE [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:272:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:286:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:292:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:306:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:319:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HR_PCR [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:337:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HR_NV_INDEX [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:355:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:368:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:395:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM2_GetCapability [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:408:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_CAP_TPM_PROPERTIES [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:427:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_PT_PERMANENT [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:433:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_PT_STARTUP_CLEAR [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:444:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:454:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HR_NV_INDEX [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:463:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_RH_PLATFORM [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:485:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:505:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:518:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HR_NV_INDEX [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:552:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HR_NV_INDEX [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:562:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:571:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HR_NV_INDEX [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:582:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable HR_NV_INDEX [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:594:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tpm2_response [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:635:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_PT_MANUFACTURER [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:684:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_E_IOERROR [valueFlowBailoutIncompleteVar] firmware/lib/tpm2_lite/tlcl.c:559:44: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm2_lite/tlcl.c:681:60: style: Parameter 'info' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm_lite/mocked_tlcl.c:12:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:17:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:22:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:27:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:32:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:37:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:42:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:47:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:54:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:68:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:74:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:80:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:85:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:90:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:95:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:100:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:105:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:110:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:115:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:120:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:130:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:135:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:140:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:145:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:151:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:157:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:167:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:172:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:178:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kPcrDigestLength [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:185:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:191:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:199:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:211:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:224:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:230:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/mocked_tlcl.c:221:59: style: Parameter 'response' can be declared as pointer to const [constParameterPointer] firmware/lib/tpm_lite/tlcl.c:79:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:117:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_E_NEEDS_SELFTEST [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:145:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_LARGE_ENOUGH_COMMAND_SIZE [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:402:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:408:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:414:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:420:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:425:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_LARGE_ENOUGH_COMMAND_SIZE [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:464:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:528:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_NV_AUTH_POLICY [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:618:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_LARGE_ENOUGH_COMMAND_SIZE [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:637:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_LARGE_ENOUGH_COMMAND_SIZE [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:661:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_LARGE_ENOUGH_COMMAND_SIZE [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:696:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:702:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:708:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:713:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_LARGE_ENOUGH_COMMAND_SIZE [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:721:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:727:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_NV_INDEX_LOCK [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:732:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_LARGE_ENOUGH_COMMAND_SIZE [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:742:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:748:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:754:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable buffer [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:768:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_LARGE_ENOUGH_COMMAND_SIZE [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:786:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_LARGE_ENOUGH_COMMAND_SIZE [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:809:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:827:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_NV_INDEX0 [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:834:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmResponseHeaderLength [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:874:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_PCR_INFO_SHORT [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:901:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_NV_AUTH_POLICY [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:960:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_LARGE_ENOUGH_COMMAND_SIZE [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:979:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_LARGE_ENOUGH_COMMAND_SIZE [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:1011:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_LARGE_ENOUGH_COMMAND_SIZE [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:1073:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib/tpm_lite/tlcl.c:629:45: warning:inconclusive: Possible null pointer dereference: data [nullPointer] firmware/lib/tpm_lite/tlcl.c:684:26: note: Calling function 'TlclWrite', 2nd argument 'NULL' value is 0 firmware/lib/tpm_lite/tlcl.c:629:45: note: Null pointer dereference firmware/lib20/api_kernel.c:26:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/lib20/api_kernel.c:37:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_API_GET_KERNEL_SIZE_PREAMBLE [valueFlowBailoutIncompleteVar] firmware/lib20/api_kernel.c:72:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_API_VERIFY_KDATA_PREAMBLE [valueFlowBailoutIncompleteVar] firmware/lib20/api_kernel.c:135:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_FLAG_KERNEL_SIGNED [valueFlowBailoutIncompleteVar] firmware/lib20/kernel.c:23:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_RECOVERY_MODE [valueFlowBailoutIncompleteVar] firmware/lib20/kernel.c:50:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_RECOVERY_MODE [valueFlowBailoutIncompleteVar] firmware/lib20/kernel.c:201:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_KERNEL_PREAMBLE2_DATA_KEY [valueFlowBailoutIncompleteVar] firmware/stub/tpm_lite_stub.c:73:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_MAX_COMMAND_SIZE [valueFlowBailoutIncompleteVar] firmware/stub/tpm_lite_stub.c:182:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/stub/tpm_lite_stub.c:192:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/stub/tpm_lite_stub.c:256:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] firmware/stub/tpm_lite_stub.c:289:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] firmware/stub/tpm_lite_stub.c:74:13: style: Checking if unsigned expression 'in_len' is less than zero. [unsignedLessThanZero] firmware/stub/tpm_lite_stub.c:170:8: style: Variable 'no_exit' can be declared as pointer to const [constVariablePointer] firmware/stub/vboot_api_stub_disk.c:22:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/stub/vboot_api_stub_disk.c:29:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] firmware/stub/vboot_api_stub_disk.c:20:31: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] firmware/stub/vboot_api_stub_stream.c:36:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNKNOWN [valueFlowBailoutIncompleteVar] firmware/stub/vboot_api_stub_stream.c:57:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNKNOWN [valueFlowBailoutIncompleteVar] firmware/stub/vboot_api_stub_stream.c:40:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] firmware/stub/vboot_api_stub_stream.c:39:12: note: Assuming allocation function fails firmware/stub/vboot_api_stub_stream.c:39:12: note: Assignment 's=malloc(sizeof(*s))', assigned value is 0 firmware/stub/vboot_api_stub_stream.c:40:2: note: Null pointer dereference firmware/stub/vboot_api_stub_stream.c:41:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] firmware/stub/vboot_api_stub_stream.c:39:12: note: Assuming allocation function fails firmware/stub/vboot_api_stub_stream.c:39:12: note: Assignment 's=malloc(sizeof(*s))', assigned value is 0 firmware/stub/vboot_api_stub_stream.c:41:2: note: Null pointer dereference firmware/stub/vboot_api_stub_stream.c:42:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] firmware/stub/vboot_api_stub_stream.c:39:12: note: Assuming allocation function fails firmware/stub/vboot_api_stub_stream.c:39:12: note: Assignment 's=malloc(sizeof(*s))', assigned value is 0 firmware/stub/vboot_api_stub_stream.c:42:2: note: Null pointer dereference futility/cmd_create.c:70:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_ALG_COUNT [valueFlowBailoutIncompleteVar] futility/cmd_create.c:95:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_create.c:182:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_create.c:311:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] futility/cmd_create.c:56:40: style: Parameter 'argv' can be declared as const array [constParameter] futility/cmd_dump_fmap.c:53:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_dump_fmap.c:317:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FMAP_NAMELEN [valueFlowBailoutIncompleteVar] futility/cmd_dump_fmap.c:434:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] futility/cmd_dump_fmap.c:242:13: style: Return value 'b->startend' is always true [knownConditionTrueFalse] futility/cmd_dump_fmap.c:241:45: note: Assuming that condition 'b->startend' is not redundant futility/cmd_dump_fmap.c:242:13: note: Return value 'b->startend' is always true futility/cmd_dump_fmap.c:267:2: warning: If memory allocation fails, then there is a possible null pointer dereference: alias [nullPointerOutOfMemory] futility/cmd_dump_fmap.c:266:33: note: Assuming allocation function fails futility/cmd_dump_fmap.c:266:10: note: Assignment 'alias=(struct dup_s*)malloc(sizeof(struct dup_s))', assigned value is 0 futility/cmd_dump_fmap.c:267:2: note: Null pointer dereference futility/cmd_dump_fmap.c:268:2: warning: If memory allocation fails, then there is a possible null pointer dereference: alias [nullPointerOutOfMemory] futility/cmd_dump_fmap.c:266:33: note: Assuming allocation function fails futility/cmd_dump_fmap.c:266:10: note: Assignment 'alias=(struct dup_s*)malloc(sizeof(struct dup_s))', assigned value is 0 futility/cmd_dump_fmap.c:268:2: note: Null pointer dereference futility/cmd_dump_fmap.c:241:55: style: Same expression on both sides of '&&'. [duplicateExpression] futility/cmd_dump_fmap.c:41:8: style: Variable 'outname' can be declared as pointer to const [constVariablePointer] futility/cmd_dump_fmap.c:48:10: style: Variable 'a' can be declared as pointer to const [constVariablePointer] futility/cmd_dump_fmap.c:202:67: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] futility/cmd_dump_fmap.c:238:17: style: Variable 'a' can be declared as pointer to const [constVariablePointer] futility/cmd_dump_fmap.c:239:17: style: Variable 'b' can be declared as pointer to const [constVariablePointer] futility/cmd_dump_fmap.c:247:17: style: Variable 'a' can be declared as pointer to const [constVariablePointer] futility/cmd_dump_fmap.c:248:17: style: Variable 'b' can be declared as pointer to const [constVariablePointer] futility/cmd_dump_fmap.c:255:17: style: Variable 'a' can be declared as pointer to const [constVariablePointer] futility/cmd_dump_fmap.c:256:17: style: Variable 'b' can be declared as pointer to const [constVariablePointer] futility/cmd_dump_fmap.c:413:40: style: Parameter 'argv' can be declared as const array [constParameter] futility/cmd_dump_fmap.c:136:39: portability: 'base_of_rom' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] futility/cmd_dump_kernel_config.c:38:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USE_PREAMBLE_LOAD_ADDR [valueFlowBailoutIncompleteVar] futility/cmd_dump_kernel_config.c:28:40: style: Parameter 'argv' can be declared as const array [constParameter] futility/cmd_gbb_utility.c:123:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_gbb_utility.c:132:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXPECTED_VB2_GBB_HEADER_SIZE [valueFlowBailoutIncompleteVar] futility/cmd_gbb_utility.c:209:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_gbb_utility.c:264:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_gbb_utility.c:302:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_gbb_utility.c:374:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] futility/cmd_gbb_utility.c:147:29: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] futility/cmd_gbb_utility.c:562:12: style: Variable 'gbb_base' is reassigned a value before the old one has been used. [redundantAssignment] futility/cmd_gbb_utility.c:543:12: note: gbb_base is assigned futility/cmd_gbb_utility.c:562:12: note: gbb_base is overwritten futility/cmd_gbb_utility.c:20:40: style: Parameter 'argv' can be declared as const array [constParameter] futility/cmd_gbb_utility.c:131:22: style: Variable 'param' can be declared as pointer to const [constVariablePointer] futility/cmd_gbb_utility.c:257:14: style: Parameter 'start' can be declared as pointer to const [constParameterPointer] futility/cmd_gbb_utility.c:357:8: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] futility/cmd_gbb_utility.c:358:8: style: Variable 'opt_create' can be declared as pointer to const [constVariablePointer] futility/cmd_gbb_utility.c:359:8: style: Variable 'opt_rootkey' can be declared as pointer to const [constVariablePointer] futility/cmd_gbb_utility.c:360:8: style: Variable 'opt_bmpfv' can be declared as pointer to const [constVariablePointer] futility/cmd_gbb_utility.c:361:8: style: Variable 'opt_recoverykey' can be declared as pointer to const [constVariablePointer] futility/cmd_gbb_utility.c:362:8: style: Variable 'opt_hwid' can be declared as pointer to const [constVariablePointer] futility/cmd_gbb_utility.c:363:8: style: Variable 'opt_flags' can be declared as pointer to const [constVariablePointer] futility/cmd_gbb_utility.c:195:4: style: Variable 'i' is assigned a value that is never used. [unreadVariable] futility/cmd_gscvd.c:160:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:210:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:238:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:301:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:368:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:440:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:495:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gscvd_ro_range [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:590:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:626:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:653:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:714:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:768:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GSC_VD_MAGIC [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:826:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:865:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA256 [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:950:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA256 [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:991:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] futility/cmd_gscvd.c:502:3: portability: %zd in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] futility/cmd_gscvd.c:590:3: portability: %zd in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] futility/cmd_gscvd.c:626:3: portability: %zd in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] futility/cmd_gscvd.c:670:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] futility/cmd_gscvd.c:482:31: style: Parameter 'ranges' can be declared as pointer to const [constParameterPointer] futility/cmd_gscvd.c:580:35: style: Parameter 'gvd' can be declared as pointer to const [constParameterPointer] futility/cmd_gscvd.c:581:26: style: Parameter 'keyblock' can be declared as pointer to const [constParameterPointer] futility/cmd_gscvd.c:645:29: style: Parameter 'kblock' can be declared as pointer to const [constParameterPointer] futility/cmd_gscvd.c:974:8: style: Variable 'work_file' can be declared as pointer to const [constVariablePointer] futility/cmd_gscvd.c:372:50: portability: '(void*)file->data' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] futility/cmd_load_fmap.c:65:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_load_fmap.c:105:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] futility/cmd_load_fmap.c:80:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] futility/cmd_load_fmap.c:41:40: style: Parameter 'argv' can be declared as const array [constParameter] futility/cmd_load_fmap.c:57:31: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] futility/cmd_load_fmap.c:57:71: style: Parameter 'area' can be declared as pointer to const [constParameterPointer] futility/cmd_load_fmap.c:97:8: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] futility/cmd_pcr.c:59:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_MAX_DIGEST_SIZE [valueFlowBailoutIncompleteVar] futility/cmd_pcr.c:38:40: style: Parameter 'argv' can be declared as const array [constParameter] futility/cmd_show.c:67:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_KEYBLOCK_FLAG_DEVELOPER_0 [valueFlowBailoutIncompleteVar] futility/cmd_show.c:171:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] futility/cmd_show.c:197:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] futility/cmd_show.c:346:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] futility/cmd_show.c:542:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] futility/cmd_show.c:270:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] futility/cmd_show.c:474:40: style: Parameter 'argv' can be declared as const array [constParameter] futility/cmd_show.c:499:28: style: Parameter 'filename' can be declared as pointer to const [constParameterPointer] futility/cmd_show.c:532:8: style: Variable 'infile' can be declared as pointer to const [constVariablePointer] futility/cmd_sign.c:54:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_sign.c:74:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_sign.c:134:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_sign.c:193:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_sign.c:283:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_sign.c:323:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_sign.c:416:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ALG_COUNT [valueFlowBailoutIncompleteVar] futility/cmd_sign.c:590:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_TYPE_USBPD1 [valueFlowBailoutIncompleteVar] futility/cmd_sign.c:656:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_TYPE_RWSIG [valueFlowBailoutIncompleteVar] futility/cmd_sign.c:780:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_sign.c:796:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] futility/cmd_sign.c:485:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] futility/cmd_sign.c:414:47: style: Parameter 'argv' can be declared as const array. However it seems that 'print_help_pubkey' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] futility/cmd_sign.c:661:24: note: You might need to cast the function pointer here futility/cmd_sign.c:414:47: note: Parameter 'argv' can be declared as const array futility/cmd_sign.c:447:53: style: Parameter 'argv' can be declared as const array. However it seems that 'print_help_raw_firmware' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] futility/cmd_sign.c:662:30: note: You might need to cast the function pointer here futility/cmd_sign.c:447:53: note: Parameter 'argv' can be declared as const array futility/cmd_sign.c:483:51: style: Parameter 'argv' can be declared as const array. However it seems that 'print_help_bios_image' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] futility/cmd_sign.c:663:28: note: You might need to cast the function pointer here futility/cmd_sign.c:483:51: note: Parameter 'argv' can be declared as const array futility/cmd_sign.c:524:51: style: Parameter 'argv' can be declared as const array. However it seems that 'print_help_raw_kernel' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] futility/cmd_sign.c:664:28: note: You might need to cast the function pointer here futility/cmd_sign.c:524:51: note: Parameter 'argv' can be declared as const array futility/cmd_sign.c:558:54: style: Parameter 'argv' can be declared as const array. However it seems that 'print_help_kern_preamble' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] futility/cmd_sign.c:665:31: note: You might need to cast the function pointer here futility/cmd_sign.c:558:54: note: Parameter 'argv' can be declared as const array futility/cmd_sign.c:563:47: style: Parameter 'argv' can be declared as const array. However it seems that 'print_help_usbpd1' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] futility/cmd_sign.c:666:24: note: You might need to cast the function pointer here futility/cmd_sign.c:563:47: note: Parameter 'argv' can be declared as const array futility/cmd_sign.c:615:46: style: Parameter 'argv' can be declared as const array. However it seems that 'print_help_rwsig' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] futility/cmd_sign.c:667:23: note: You might need to cast the function pointer here futility/cmd_sign.c:615:46: note: Parameter 'argv' can be declared as const array futility/cmd_sign.c:686:48: style: Parameter 'argv' can be declared as const array [constParameter] futility/cmd_update.c:354:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_validate_rec_mrc.c:88:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_validate_rec_mrc.c:141:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_validate_rec_mrc.c:195:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] futility/cmd_validate_rec_mrc.c:29:40: style: Parameter 'argv' can be declared as const array [constParameter] futility/cmd_validate_rec_mrc.c:151:13: style: Variable 'next_mb' can be declared as pointer to const [constVariablePointer] futility/cmd_validate_rec_mrc.c:178:8: style: Variable 'infile' can be declared as pointer to const [constVariablePointer] futility/cmd_vbutil_firmware.c:98:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_vbutil_firmware.c:189:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_FIRMWARE_WORKBUF_RECOMMENDED_SIZE [valueFlowBailoutIncompleteVar] futility/cmd_vbutil_firmware.c:355:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] futility/cmd_vbutil_firmware.c:287:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] futility/cmd_vbutil_firmware.c:55:40: style: Parameter 'argv' can be declared as const array [constParameter] futility/cmd_vbutil_firmware.c:328:8: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] futility/cmd_vbutil_firmware.c:329:8: style: Variable 'keyblock_file' can be declared as pointer to const [constVariablePointer] futility/cmd_vbutil_firmware.c:330:8: style: Variable 'signpubkey' can be declared as pointer to const [constVariablePointer] futility/cmd_vbutil_firmware.c:331:8: style: Variable 'signprivate' can be declared as pointer to const [constVariablePointer] futility/cmd_vbutil_firmware.c:333:8: style: Variable 'fv_file' can be declared as pointer to const [constVariablePointer] futility/cmd_vbutil_firmware.c:334:8: style: Variable 'kernelkey_file' can be declared as pointer to const [constVariablePointer] futility/cmd_vbutil_kernel.c:156:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] futility/cmd_vbutil_kernel.c:172:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_vbutil_kernel.c:275:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_vbutil_kernel.c:196:17: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] futility/cmd_vbutil_kernel.c:195:14: note: Assuming allocation function fails futility/cmd_vbutil_kernel.c:195:14: note: Assignment 'buf=malloc(file_size)', assigned value is 0 futility/cmd_vbutil_kernel.c:196:17: note: Null pointer dereference futility/cmd_vbutil_kernel.c:143:40: style: Parameter 'argv' can be declared as const array [constParameter] futility/cmd_vbutil_key.c:58:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ALG_COUNT [valueFlowBailoutIncompleteVar] futility/cmd_vbutil_key.c:76:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_vbutil_key.c:114:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_vbutil_key.c:167:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ALG_COUNT [valueFlowBailoutIncompleteVar] futility/cmd_vbutil_key.c:43:40: style: Parameter 'argv' can be declared as const array [constParameter] futility/cmd_vbutil_key.c:162:8: style: Variable 'infile' can be declared as pointer to const [constVariablePointer] futility/cmd_vbutil_key.c:163:8: style: Variable 'outfile' can be declared as pointer to const [constVariablePointer] futility/cmd_vbutil_keyblock.c:94:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_vbutil_keyblock.c:166:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/cmd_vbutil_keyblock.c:279:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] futility/cmd_vbutil_keyblock.c:79:40: style: Parameter 'argv' can be declared as const array [constParameter] futility/cmd_vbutil_keyblock.c:251:8: style: Variable 'filename' can be declared as pointer to const [constVariablePointer] futility/cmd_vbutil_keyblock.c:252:8: style: Variable 'datapubkey' can be declared as pointer to const [constVariablePointer] futility/cmd_vbutil_keyblock.c:253:8: style: Variable 'signpubkey' can be declared as pointer to const [constVariablePointer] futility/cmd_vbutil_keyblock.c:254:8: style: Variable 'signprivate' can be declared as pointer to const [constVariablePointer] futility/cmd_vbutil_keyblock.c:255:8: style: Variable 'signprivate_pem' can be declared as pointer to const [constVariablePointer] futility/cmd_vbutil_keyblock.c:256:8: style: Variable 'external_signer' can be declared as pointer to const [constVariablePointer] futility/dump_kernel_config_lib.c:72:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/dump_kernel_config_lib.c:127:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] futility/dump_kernel_config_lib.c:106:14: style: Condition 'to_skip<0' is always false [knownConditionTrueFalse] futility/dump_kernel_config_lib.c:105:19: note: Assignment 'to_skip=offset-now', assigned value is greater than -1 futility/dump_kernel_config_lib.c:106:14: note: Condition 'to_skip<0' is always false futility/dump_kernel_config_lib.c:33:32: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] futility/file_type.c:115:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/file_type.c:144:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/file_type.c:154:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/file_type_bios.c:36:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FMAP_NAMELEN [valueFlowBailoutIncompleteVar] futility/file_type_bios.c:90:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] futility/file_type_bios.c:191:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FMAP_NAMELEN [valueFlowBailoutIncompleteVar] futility/file_type_bios.c:253:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/file_type_bios.c:289:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] futility/file_type_bios.c:331:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/file_type_bios.c:367:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_FIRMWARE_WORKBUF_RECOMMENDED_SIZE [valueFlowBailoutIncompleteVar] futility/file_type_bios.c:491:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] futility/file_type_bios.c:553:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_TYPE_BIOS_IMAGE [valueFlowBailoutIncompleteVar] futility/file_type_bios.c:245:31: style: Parameter 'keyblock' can be declared as pointer to const [constParameterPointer] futility/file_type_bios.c:287:59: style: Parameter 'vblock' can be declared as pointer to const [constParameterPointer] futility/file_type_rwsig.c:66:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_VERIFY_DATA_WORKBUF_BYTES [valueFlowBailoutIncompleteVar] futility/file_type_rwsig.c:281:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/file_type_rwsig.c:439:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_TYPE_RWSIG [valueFlowBailoutIncompleteVar] futility/file_type_rwsig.c:332:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] futility/file_type_rwsig.c:410:4: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] futility/file_type_usbpd1.c:113:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/file_type_usbpd1.c:319:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable magic [valueFlowBailoutIncompleteVar] futility/file_type_usbpd1.c:348:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA1_DIGEST_SIZE [valueFlowBailoutIncompleteVar] futility/file_type_usbpd1.c:382:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_FIRMWARE_WORKBUF_RECOMMENDED_SIZE [valueFlowBailoutIncompleteVar] futility/file_type_usbpd1.c:421:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNKNOWN [valueFlowBailoutIncompleteVar] futility/file_type_usbpd1.c:500:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_TYPE_USBPD1 [valueFlowBailoutIncompleteVar] futility/file_type_usbpd1.c:153:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] futility/file_type_usbpd1.c:479:51: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] futility/flashrom_wp_drv.c:33:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/futility.c:74:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_UNLCK [valueFlowBailoutIncompleteVar] futility/futility.c:92:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] futility/futility.c:126:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] futility/futility.c:245:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] futility/futility.c:325:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] futility/futility.c:273:39: style: Parameter 'argv' can be declared as const array. However it seems that 'do_version' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] futility/futility.c:282:1: note: You might need to cast the function pointer here futility/futility.c:273:39: note: Parameter 'argv' can be declared as const array futility/futility.c:299:8: style: Variable 'progname' can be declared as pointer to const [constVariablePointer] futility/futility.c:304:16: style: Variable 'long_opts' can be declared as const array [constVariable] futility/misc.c:42:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/misc.c:68:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_GBB_MAJOR_VER [valueFlowBailoutIncompleteVar] futility/misc.c:80:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_gbb_header [valueFlowBailoutIncompleteVar] futility/misc.c:149:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] futility/misc.c:181:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA256 [valueFlowBailoutIncompleteVar] futility/misc.c:204:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA256 [valueFlowBailoutIncompleteVar] futility/misc.c:222:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/misc.c:267:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] futility/misc.c:288:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/misc.c:303:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/misc.c:346:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MS_SYNC [valueFlowBailoutIncompleteVar] futility/misc.c:408:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_HEADER_REVISION [valueFlowBailoutIncompleteVar] futility/misc.c:465:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/misc.c:78:17: style:inconclusive: Function 'futil_valid_gbb_header' argument 3 names different: declaration 'maxlen' definition 'maxlen_ptr'. [funcArgNamesDifferent] futility/futility.h:103:17: note: Function 'futil_valid_gbb_header' argument 3 names different: declaration 'maxlen' definition 'maxlen_ptr'. futility/misc.c:78:17: note: Function 'futil_valid_gbb_header' argument 3 names different: declaration 'maxlen' definition 'maxlen_ptr'. futility/misc.c:64:25: style: Variable 'gbb' can be declared as pointer to const [constVariablePointer] futility/misc.c:147:8: style: Variable 'hwid_str' can be declared as pointer to const [constVariablePointer] futility/misc.c:178:8: style: Variable 'hwid_str' can be declared as pointer to const [constVariablePointer] futility/updater.c:130:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:177:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:223:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:301:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:367:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:397:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:489:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FmapHeader [valueFlowBailoutIncompleteVar] futility/updater.c:645:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:662:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_keyblock [valueFlowBailoutIncompleteVar] futility/updater.c:691:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_FIRMWARE_WORKBUF_RECOMMENDED_SIZE [valueFlowBailoutIncompleteVar] futility/updater.c:793:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:866:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:900:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:970:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:1055:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:1102:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:1120:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:1179:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:1336:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:1368:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:1392:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:1445:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:1495:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater.c:199:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] futility/updater.c:200:24: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] futility/updater.c:1335:7: style: Condition 'image' is always true [knownConditionTrueFalse] futility/updater.c:876:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] futility/updater.c:876:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] futility/updater.c:881:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] futility/updater.c:881:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] futility/updater.c:282:51: style: Parameter 'cfg' can be declared as pointer to const [constParameterPointer] futility/updater.c:351:52: style: Parameter 'cfg' can be declared as pointer to const [constParameterPointer] futility/updater.c:412:27: style: Parameter 'image_to' can be declared as pointer to const [constParameterPointer] futility/updater.c:482:58: style: Parameter 'from' can be declared as pointer to const [constParameterPointer] futility/updater.c:514:59: style: Parameter 'from' can be declared as pointer to const [constParameterPointer] futility/updater.c:914:25: style: Variable 'ec_image' can be declared as pointer to const [constVariablePointer] futility/updater.c:957:26: style: Parameter 'image_from' can be declared as pointer to const [constParameterPointer] futility/updater.c:1040:26: style: Parameter 'image_from' can be declared as pointer to const [constParameterPointer] futility/updater.c:1041:26: style: Parameter 'image_to' can be declared as pointer to const [constParameterPointer] futility/updater.c:1100:26: style: Parameter 'image_to' can be declared as pointer to const [constParameterPointer] futility/updater.c:1118:26: style: Parameter 'image_to' can be declared as pointer to const [constParameterPointer] futility/updater.c:1417:20: style: Parameter 'manifest' can be declared as pointer to const [constParameterPointer] futility/updater.c:1025:14: style: Variable 'has_update' is assigned a value that is never used. [unreadVariable] futility/updater_archive.c:99:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FTS_SL [valueFlowBailoutIncompleteVar] futility/updater_archive.c:116:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_archive.c:148:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] futility/updater_archive.c:174:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_archive.c:555:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_archive.c:708:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_archive.c:186:7: style: Obsolescent function 'utimes' called. It is recommended to use 'utimensat' instead. [prohibitedutimesCalled] futility/updater_archive.c:170:12: warning: If memory allocation fails, then there is a possible null pointer dereference: dirname [nullPointerOutOfMemory] futility/updater_archive.c:169:25: note: Assuming allocation function fails futility/updater_archive.c:169:25: note: Assignment 'dirname=strdup(path)', assigned value is 0 futility/updater_archive.c:170:12: note: Null pointer dereference futility/updater_archive.c:172:14: warning: If memory allocation fails, then there is a possible null pointer dereference: dirname [nullPointerOutOfMemory] futility/updater_archive.c:169:25: note: Assuming allocation function fails futility/updater_archive.c:169:25: note: Assignment 'dirname=strdup(path)', assigned value is 0 futility/updater_archive.c:172:14: note: Null pointer dereference futility/updater_archive.c:93:47: error: Null pointer dereference [nullPointer] futility/updater_archive.c:82:10: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] futility/updater_archive.c:112:52: style: Parameter 'handle' can be declared as pointer to const [constParameterPointer] futility/updater_archive.c:182:18: style: Variable 'times' can be declared as const array [constVariable] futility/updater_archive.c:700:58: style: Parameter '_arg' can be declared as pointer to const. However it seems that 'archive_copy_callback' is a callback function, if '_arg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] futility/updater_archive.c:726:34: note: You might need to cast the function pointer here futility/updater_archive.c:700:58: note: Parameter '_arg' can be declared as pointer to const futility/updater_manifest.c:104:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:131:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:188:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:215:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:247:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:304:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:325:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:357:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:410:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:453:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:595:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:628:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:684:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:737:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:780:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:844:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_manifest.c:562:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] futility/updater_manifest.c:563:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] futility/updater_manifest.c:627:21: style: Condition 'matched_index<0' is always true [knownConditionTrueFalse] futility/updater_manifest.c:626:35: note: Calling function 'get_manifest_key' returns -1 futility/updater_manifest.c:626:35: note: Assignment 'matched_index=get_manifest_key(&manifest_key)', assigned value is -1 futility/updater_manifest.c:627:21: note: Condition 'matched_index<0' is always true futility/updater_manifest.c:415:2: error: Memory leak: model.ec_image [memleak] futility/updater_manifest.c:127:15: style: Variable 'k' can be declared as pointer to const [constVariablePointer] futility/updater_manifest.c:127:19: style: Variable 'v' can be declared as pointer to const [constVariablePointer] futility/updater_manifest.c:181:54: style: Parameter 'image' can be declared as pointer to const. However it seems that 'change_gbb_rootkey' is a callback function, if 'image' is declared with const you might also need to cast function pointer(s). [constParameterCallback] futility/updater_manifest.c:267:18: note: You might need to cast the function pointer here futility/updater_manifest.c:181:54: note: Parameter 'image' can be declared as pointer to const futility/updater_manifest.c:208:49: style: Parameter 'image' can be declared as pointer to const. However it seems that 'change_vblock' is a callback function, if 'image' is declared with const you might also need to cast function pointer(s). [constParameterCallback] futility/updater_manifest.c:275:23: note: You might need to cast the function pointer here futility/updater_manifest.c:208:49: note: Parameter 'image' can be declared as pointer to const futility/updater_manifest.c:283:57: style: Parameter 'model' can be declared as pointer to const [constParameterPointer] futility/updater_manifest.c:440:8: style: Variable 's' can be declared as pointer to const [constVariablePointer] futility/updater_manifest.c:828:61: style: Parameter 'm' can be declared as pointer to const [constParameterPointer] futility/updater_manifest.c:876:25: style: Variable 'p' can be declared as pointer to const [constVariablePointer] futility/updater_quirks.c:94:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VBSD_EC_SOFTWARE_SYNC [valueFlowBailoutIncompleteVar] futility/updater_quirks.c:129:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_quirks.c:168:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB_MAX_STRING_PROPERTY [valueFlowBailoutIncompleteVar] futility/updater_quirks.c:199:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_quirks.c:236:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_quirks.c:266:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_quirks.c:286:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_quirks.c:326:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_quirks.c:371:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_quirks.c:405:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_quirks.c:436:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_quirks.c:446:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_quirks.c:591:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] futility/updater_quirks.c:618:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_quirks.c:203:9: error: Invalid fputc() argument nr 1. The value is -1 but the valid values are '0:'. [invalidFunctionArg] futility/updater_quirks.c:217:25: style: Variable 'image_to' can be declared as pointer to const [constVariablePointer] futility/updater_quirks.c:251:25: style: Variable 'image_to' can be declared as pointer to const [constVariablePointer] futility/updater_quirks.c:365:25: style: Variable 'ec_image' can be declared as pointer to const [constVariablePointer] futility/updater_quirks.c:614:26: style: Variable 'image' can be declared as pointer to const [constVariablePointer] futility/updater_utils.c:58:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] futility/updater_utils.c:88:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_utils.c:111:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_utils.c:147:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_utils.c:176:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_utils.c:215:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_utils.c:248:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] futility/updater_utils.c:330:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FMAP_NAMELEN [valueFlowBailoutIncompleteVar] futility/updater_utils.c:354:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_utils.c:399:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB_MAX_STRING_PROPERTY [valueFlowBailoutIncompleteVar] futility/updater_utils.c:494:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_utils.c:577:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_utils.c:628:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_utils.c:694:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_utils.c:746:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] futility/updater_utils.c:766:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_utils.c:810:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_utils.c:848:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable P_tmpdir [valueFlowBailoutIncompleteVar] futility/updater_utils.c:911:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/updater_utils.c:130:57: style: Parameter 'image' can be declared as pointer to const [constParameterPointer] futility/updater_utils.c:321:33: style: Parameter 'image_to' can be declared as pointer to const [constParameterPointer] futility/vb1_helper.c:70:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] futility/vb1_helper.c:153:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/vb1_helper.c:182:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/vb1_helper.c:301:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/vb1_helper.c:329:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/vb1_helper.c:425:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/vb1_helper.c:470:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] futility/vb1_helper.c:512:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_KERNEL_WORKBUF_RECOMMENDED_SIZE [valueFlowBailoutIncompleteVar] futility/vb1_helper.c:708:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] futility/vb1_helper.c:749:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_KERNEL_WORKBUF_RECOMMENDED_SIZE [valueFlowBailoutIncompleteVar] futility/vb1_helper.c:805:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] futility/vb1_helper.c:448:9: warning: If memory allocation fails, then there is a possible null pointer dereference: outbuf [nullPointerOutOfMemory] futility/vb1_helper.c:447:23: note: Assuming allocation function fails futility/vb1_helper.c:447:23: note: Assignment 'outbuf=calloc(outsize,1)', assigned value is 0 futility/vb1_helper.c:448:9: note: Null pointer dereference futility/vb1_helper.c:686:9: warning: If memory allocation fails, then there is a possible null pointer dereference: g_kernel_blob_data [nullPointerOutOfMemory] futility/vb1_helper.c:685:29: note: Assuming allocation function fails futility/vb1_helper.c:685:29: note: Assignment 'g_kernel_blob_data=malloc(g_kernel_blob_size)', assigned value is 0 futility/vb1_helper.c:686:9: note: Null pointer dereference futility/vb1_helper.c:756:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] futility/vb1_helper.c:755:24: note: Assuming allocation function fails futility/vb1_helper.c:755:24: note: Assignment 'buf2=malloc(len)', assigned value is 0 futility/vb1_helper.c:756:9: note: Null pointer dereference futility/vb1_helper.c:449:16: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] futility/vb1_helper.c:447:23: note: Assuming allocation function fails futility/vb1_helper.c:447:23: note: Assignment 'outbuf=calloc(outsize,1)', assigned value is 0 futility/vb1_helper.c:449:16: note: Null pointer addition futility/vb1_helper.c:106:8: style: Variable 'input' can be declared as pointer to const [constVariablePointer] futility/vb1_helper.c:138:30: style: Variable 'lh' can be declared as pointer to const [constVariablePointer] futility/vb1_helper.c:168:30: style: Variable 'lh' can be declared as pointer to const [constVariablePointer] futility/vb1_helper.c:294:37: style: Parameter 'kblob_data' can be declared as pointer to const [constParameterPointer] futility/vb1_helper.c:295:16: style: Parameter 'config_data' can be declared as pointer to const [constParameterPointer] futility/vb1_helper.c:411:25: style: Parameter 'keyblock' can be declared as pointer to const [constParameterPointer] futility/vb1_helper.c:430:30: style: Variable 'preamble' can be declared as pointer to const [constVariablePointer] futility/vb1_helper.c:459:12: style: Parameter 'part1_data' can be declared as pointer to const [constParameterPointer] futility/vb1_helper.c:460:12: style: Parameter 'part2_data' can be declared as pointer to const [constParameterPointer] futility/vb1_helper.c:654:15: style: Parameter 'config_data' can be declared as pointer to const [constParameterPointer] futility/vb1_helper.c:655:15: style: Parameter 'bootloader_data' can be declared as pointer to const [constParameterPointer] futility/vb1_helper.c:747:52: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] futility/vb1_helper.c:449:16: portability: 'outbuf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] futility/vb2_helper.c:29:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] futility/vb2_helper.c:57:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA1 [valueFlowBailoutIncompleteVar] futility/vb2_helper.c:67:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA1_DIGEST_SIZE [valueFlowBailoutIncompleteVar] futility/vb2_helper.c:118:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA1 [valueFlowBailoutIncompleteVar] futility/vb2_helper.c:128:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA1_DIGEST_SIZE [valueFlowBailoutIncompleteVar] futility/vb2_helper.c:195:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FILE_TYPE_PEM [valueFlowBailoutIncompleteVar] futility/vb2_helper.c:205:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA1_DIGEST_SIZE [valueFlowBailoutIncompleteVar] host/arch/arm/lib/crossystem_arch.c:84:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] host/arch/arm/lib/crossystem_arch.c:141:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] host/arch/arm/lib/crossystem_arch.c:197:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPIOHANDLE_REQUEST_INPUT [valueFlowBailoutIncompleteVar] host/arch/arm/lib/crossystem_arch.c:232:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPIO_GET_LINEINFO_IOCTL [valueFlowBailoutIncompleteVar] host/arch/arm/lib/crossystem_arch.c:247:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPIO_GET_CHIPINFO_IOCTL [valueFlowBailoutIncompleteVar] host/arch/arm/lib/crossystem_arch.c:293:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAME_MAX [valueFlowBailoutIncompleteVar] host/arch/arm/lib/crossystem_arch.c:342:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] host/arch/arm/lib/crossystem_arch.c:386:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] host/arch/arm/lib/crossystem_arch.c:465:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB_SHARED_DATA_MAGIC [valueFlowBailoutIncompleteVar] host/arch/arm/lib/crossystem_arch.c:90:3: error: Resource leak: file [resourceLeak] host/arch/arm/lib/crossystem_arch.c:290:3: error: Memory leak: list [memleak] host/arch/arm/lib/crossystem_arch.c:432:8: style: Variable 'media' can be declared as pointer to const [constVariablePointer] host/arch/arm/lib/crossystem_arch.c:447:8: style: Variable 'media' can be declared as pointer to const [constVariablePointer] host/arch/arm/lib/crossystem_arch.c:464:22: style: Variable 'p' can be declared as pointer to const [constVariablePointer] host/arch/mips/lib/crossystem_arch.c:16:45: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] host/arch/mips/lib/crossystem_arch.c:21:46: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] host/arch/stub/lib/crossystem_arch.c:12:45: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] host/arch/stub/lib/crossystem_arch.c:18:46: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] host/arch/stub/lib/crossystem_arch.c:34:61: style: Parameter 'dest' can be declared as pointer to const [constParameterPointer] host/arch/x86/lib/crossystem_arch.c:105:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NVRAM_SETCKS [valueFlowBailoutIncompleteVar] host/arch/x86/lib/crossystem_arch.c:125:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] host/arch/x86/lib/crossystem_arch.c:150:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] host/arch/x86/lib/crossystem_arch.c:185:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_NVDATA_CHANGED [valueFlowBailoutIncompleteVar] host/arch/x86/lib/crossystem_arch.c:245:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] host/arch/x86/lib/crossystem_arch.c:334:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB_SHARED_DATA_HEADER_SIZE_V1 [valueFlowBailoutIncompleteVar] host/arch/x86/lib/crossystem_arch.c:469:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_RECOVERY_NOT_REQUESTED [valueFlowBailoutIncompleteVar] host/arch/x86/lib/crossystem_arch.c:871:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_RECOVERY_REQUEST [valueFlowBailoutIncompleteVar] host/arch/x86/lib/crossystem_arch.c:954:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_RECOVERY_REQUEST [valueFlowBailoutIncompleteVar] host/arch/x86/lib/crossystem_arch.c:813:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] host/arch/x86/lib/crossystem_arch.c:366:24: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] host/arch/x86/lib/crossystem_arch.c:280:10: style: Variable 'base' can be declared as pointer to const [constVariablePointer] host/arch/x86/lib/crossystem_arch.c:495:17: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] host/arch/x86/lib/crossystem_arch.c:522:17: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] host/arch/x86/lib/crossystem_arch.c:563:24: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] host/arch/x86/lib/crossystem_arch.c:566:17: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] host/arch/x86_64/lib/crossystem_arch.c:105:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NVRAM_SETCKS [valueFlowBailoutIncompleteVar] host/arch/x86_64/lib/crossystem_arch.c:125:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] host/arch/x86_64/lib/crossystem_arch.c:150:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] host/arch/x86_64/lib/crossystem_arch.c:185:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_NVDATA_CHANGED [valueFlowBailoutIncompleteVar] host/arch/x86_64/lib/crossystem_arch.c:245:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] host/arch/x86_64/lib/crossystem_arch.c:334:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB_SHARED_DATA_HEADER_SIZE_V1 [valueFlowBailoutIncompleteVar] host/arch/x86_64/lib/crossystem_arch.c:469:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_RECOVERY_NOT_REQUESTED [valueFlowBailoutIncompleteVar] host/arch/x86_64/lib/crossystem_arch.c:871:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_RECOVERY_REQUEST [valueFlowBailoutIncompleteVar] host/arch/x86_64/lib/crossystem_arch.c:954:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_RECOVERY_REQUEST [valueFlowBailoutIncompleteVar] host/arch/x86_64/lib/crossystem_arch.c:813:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] host/arch/x86_64/lib/crossystem_arch.c:366:24: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] host/arch/x86_64/lib/crossystem_arch.c:280:10: style: Variable 'base' can be declared as pointer to const [constVariablePointer] host/arch/x86_64/lib/crossystem_arch.c:495:17: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] host/arch/x86_64/lib/crossystem_arch.c:522:17: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] host/arch/x86_64/lib/crossystem_arch.c:563:24: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] host/arch/x86_64/lib/crossystem_arch.c:566:17: style: Variable 'ent' can be declared as pointer to const [constVariablePointer] host/lib/cbfstool.c:18:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENV_CBFSTOOL [valueFlowBailoutIncompleteVar] host/lib/cbfstool.c:36:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TARGET_BUFFER_NULL_TERMINATED [valueFlowBailoutIncompleteVar] host/lib/cbfstool.c:64:6: portability: %zi in format string (no. 1) requires 'ssize_t *' but the argument type is 'size_t * {aka unsigned long *}'. [invalidScanfArgType_int] host/lib/chromeos_config.c:26:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] host/lib/chromeos_config.c:65:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] host/lib/chromeos_config.c:93:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:89:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB_MAX_STRING_PROPERTY [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:101:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:114:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_UNLCK [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:124:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_shared_data [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:148:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VBSD_NVDATA_V2 [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:175:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VBSD_NVDATA_V2 [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:207:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_BACKUP_NVRAM_REQUEST [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:337:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VBSD_FWB_TRIED [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:399:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_KERNEL_FIELD [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:522:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:589:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_KERNEL_SETTINGS_RESET [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:721:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_TRY_NEXT [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:795:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NVDATA_SIZE_V2 [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:827:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHROM_PROGRAMMER_INTERNAL_AP [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:851:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHROM_PROGRAMMER_INTERNAL_AP [valueFlowBailoutIncompleteVar] host/lib/crossystem.c:148:7: style: Condition 'sh' is always true [knownConditionTrueFalse] host/lib/crossystem.c:175:6: style: Condition 'sh' is always true [knownConditionTrueFalse] host/lib/crossystem.c:106:3: error: Resource leak: lock_fd [resourceLeak] host/lib/crossystem.c:337:40: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] host/lib/crossystem.c:340:50: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] host/lib/crossystem.c:349:51: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] host/lib/crossystem.c:360:31: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] host/lib/crossystem.c:364:31: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] host/lib/crossystem.c:368:37: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] host/lib/extract_vmlinuz.c:20:11: style: Variable 'kblob_data' can be declared as pointer to const [constVariablePointer] host/lib/extract_vmlinuz.c:27:23: style: Variable 'keyblock' can be declared as pointer to const [constVariablePointer] host/lib/extract_vmlinuz.c:32:55: portability: 'kpart_data' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] host/lib/extract_vmlinuz.c:37:26: portability: 'kpart_data' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] host/lib/extract_vmlinuz.c:49:17: portability: 'kpart_data' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] host/lib/extract_vmlinuz.c:49:41: portability: 'kpart_data+vmlinuz_header_offset' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] host/lib/extract_vmlinuz.c:67:29: portability: 'kpart_data' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] host/lib/extract_vmlinuz.c:70:17: portability: 'vmlinuz' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] host/lib/file_keys.c:27:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA1_BLOCK_SIZE [valueFlowBailoutIncompleteVar] host/lib/file_keys.c:23:30: style: Parameter 'input_file' can be declared as pointer to const [constParameterPointer] host/lib/flashrom.c:55:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable P_tmpdir [valueFlowBailoutIncompleteVar] host/lib/flashrom.c:90:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable subprocess_null [valueFlowBailoutIncompleteVar] host/lib/flashrom.c:109:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] host/lib/flashrom.c:143:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] host/lib/flashrom.c:59:15: warning: If memory allocation fails, then there is a possible null pointer dereference: path [nullPointerOutOfMemory] host/lib/flashrom.c:55:15: note: Assuming allocation function fails host/lib/flashrom.c:55:15: note: Assignment 'path=strdup(P_tmpdir"/vb2_flashrom.XXXXXX")', assigned value is 0 host/lib/flashrom.c:59:15: note: Null pointer dereference host/lib/flashrom.c:140:51: style: Parameter 'image' can be declared as pointer to const [constParameterPointer] host/lib/flashrom_drv.c:25:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHROM_MSG_INFO [valueFlowBailoutIncompleteVar] host/lib/flashrom_drv.c:83:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] host/lib/flashrom_drv.c:152:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] host/lib/flashrom_drv.c:44:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] host/lib/flashrom_drv.c:45:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] host/lib/fmap.c:19:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FMAP_VER_MAJOR [valueFlowBailoutIncompleteVar] host/lib/fmap.c:31:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FmapHeader [valueFlowBailoutIncompleteVar] host/lib/fmap.c:58:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FmapHeader [valueFlowBailoutIncompleteVar] host/lib/fmap.c:14:14: style: Variable 'fmap_header' can be declared as pointer to const [constVariablePointer] host/lib/fmap.c:58:38: portability: '(void*)fmap' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] host/lib/host_common.c:23:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_fw_preamble [valueFlowBailoutIncompleteVar] host/lib/host_common.c:89:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_kernel_preamble [valueFlowBailoutIncompleteVar] host/lib/host_key2.c:28:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SIG_RSA1024 [valueFlowBailoutIncompleteVar] host/lib/host_key2.c:42:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] host/lib/host_key2.c:78:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ALG_COUNT [valueFlowBailoutIncompleteVar] host/lib/host_key2.c:128:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ALG_COUNT [valueFlowBailoutIncompleteVar] host/lib/host_key2.c:167:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ALG_COUNT [valueFlowBailoutIncompleteVar] host/lib/host_key2.c:190:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_COPY_KEY_SIZE [valueFlowBailoutIncompleteVar] host/lib/host_key2.c:206:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] host/lib/host_key2.c:223:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ALG_COUNT [valueFlowBailoutIncompleteVar] host/lib/host_key2.c:267:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_PACKED_KEY_ALLOC [valueFlowBailoutIncompleteVar] host/lib/host_key2.c:290:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_MAX_KEY_VERSION [valueFlowBailoutIncompleteVar] host/lib/host_key2.c:308:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNPACK_KEY_SIZE [valueFlowBailoutIncompleteVar] host/lib/host_keyblock.c:27:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_keyblock [valueFlowBailoutIncompleteVar] host/lib/host_keyblock.c:94:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_keyblock [valueFlowBailoutIncompleteVar] host/lib/host_keyblock.c:144:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_FIRMWARE_WORKBUF_RECOMMENDED_SIZE [valueFlowBailoutIncompleteVar] host/lib/host_misc.c:32:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] host/lib/host_misc.c:105:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] host/lib/host_misc.c:98:31: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] host/lib/host_signature.c:117:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_MAX_DIGEST_SIZE [valueFlowBailoutIncompleteVar] host/lib/host_signature2.c:54:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_SIG_SIZE [valueFlowBailoutIncompleteVar] host/lib/host_signature2.c:68:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA512_DIGEST_SIZE [valueFlowBailoutIncompleteVar] host/lib/host_signature2.c:86:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_MAX_DIGEST_SIZE [valueFlowBailoutIncompleteVar] host/lib/signature_digest.c:26:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] host/lib/signature_digest.c:41:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA512_DIGEST_SIZE [valueFlowBailoutIncompleteVar] host/lib/signature_digest.c:68:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] host/lib/signature_digest.c:31:9: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] host/lib/signature_digest.c:30:21: note: Assuming allocation function fails host/lib/signature_digest.c:30:21: note: Assignment 'p=malloc(digestinfo_size+digest_size)', assigned value is 0 host/lib/signature_digest.c:31:9: note: Null pointer dereference host/lib/signature_digest.c:32:11: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] host/lib/signature_digest.c:30:21: note: Assuming allocation function fails host/lib/signature_digest.c:30:21: note: Assignment 'p=malloc(digestinfo_size+digest_size)', assigned value is 0 host/lib/signature_digest.c:32:11: note: Null pointer addition host/lib/signature_digest.c:20:71: style: Parameter 'digest' can be declared as pointer to const [constParameterPointer] host/lib/subprocess.c:34:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] host/lib/subprocess.c:198:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TARGET_BUFFER_NULL_TERMINATED [valueFlowBailoutIncompleteVar] host/lib/subprocess.c:321:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] host/lib/util_misc.c:28:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA1_DIGEST_SIZE [valueFlowBailoutIncompleteVar] host/lib/util_misc.c:45:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA1_DIGEST_SIZE [valueFlowBailoutIncompleteVar] host/lib21/host_common.c:27:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_COMMON_TOTAL_SIZE [valueFlowBailoutIncompleteVar] host/lib21/host_common.c:69:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_COMMON_MEMBER_WRAPS [valueFlowBailoutIncompleteVar] host/lib21/host_common.c:125:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] host/lib21/host_common.c:138:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SIG_NONE [valueFlowBailoutIncompleteVar] host/lib21/host_common.c:181:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB21_MAGIC_SIGNATURE [valueFlowBailoutIncompleteVar] host/lib21/host_common.c:234:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_VDATA_ALGORITHM [valueFlowBailoutIncompleteVar] host/lib21/host_common.c:271:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_VDATA_SIZE [valueFlowBailoutIncompleteVar] host/lib21/host_key.c:52:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB21_MAGIC_PACKED_PRIVATE_KEY [valueFlowBailoutIncompleteVar] host/lib21/host_key.c:142:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_READ_PEM_ALLOC [valueFlowBailoutIncompleteVar] host/lib21/host_key.c:172:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_PRIVATE_KEY_SET_DESC [valueFlowBailoutIncompleteVar] host/lib21/host_key.c:184:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable magic [valueFlowBailoutIncompleteVar] host/lib21/host_key.c:282:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_PRIVATE_KEY_HASH [valueFlowBailoutIncompleteVar] host/lib21/host_key.c:293:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_id [valueFlowBailoutIncompleteVar] host/lib21/host_key.c:338:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_READ_KEYB_DATA [valueFlowBailoutIncompleteVar] host/lib21/host_key.c:382:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_PUBLIC_KEY_SET_DESC [valueFlowBailoutIncompleteVar] host/lib21/host_key.c:400:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_READ_PACKED_KEY_DATA [valueFlowBailoutIncompleteVar] host/lib21/host_key.c:415:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable magic [valueFlowBailoutIncompleteVar] host/lib21/host_key.c:490:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_PUBLIC_KEY_HASH [valueFlowBailoutIncompleteVar] host/lib21/host_key.c:512:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SIG_RSA2048_EXP3 [valueFlowBailoutIncompleteVar] host/lib21/host_key.c:560:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB21_MAGIC_PACKED_KEY [valueFlowBailoutIncompleteVar] host/lib21/host_key.c:447:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] host/lib21/host_key.c:444:14: note: Assuming allocation function fails host/lib21/host_key.c:444:14: note: Assignment 'buf=calloc(1,key.c.total_size)', assigned value is 0 host/lib21/host_key.c:447:9: note: Null pointer dereference host/lib21/host_key.c:322:60: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] host/lib21/host_misc.c:33:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_READ_FILE_OPEN [valueFlowBailoutIncompleteVar] host/lib21/host_misc.c:72:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_WRITE_FILE_OPEN [valueFlowBailoutIncompleteVar] host/lib21/host_misc.c:147:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_STR_TO_ID [valueFlowBailoutIncompleteVar] host/lib21/host_signature.c:66:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_DIGEST_INFO [valueFlowBailoutIncompleteVar] host/lib21/host_signature.c:75:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable magic [valueFlowBailoutIncompleteVar] host/lib21/host_signature.c:179:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_SIG_SIZE_FOR_KEY [valueFlowBailoutIncompleteVar] host/lib21/host_signature.c:205:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] host/lib21/host_signature.c:222:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SIGN_OBJECT_OVERFLOW [valueFlowBailoutIncompleteVar] host/lib21/host_signature.c:248:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SIGN_OBJECT_OVERFLOW [valueFlowBailoutIncompleteVar] host/lib21/host_signature.c:145:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [nullPointerOutOfMemory] host/lib21/host_signature.c:144:14: note: Assuming allocation function fails host/lib21/host_signature.c:144:14: note: Assignment 'buf=calloc(1,s.c.total_size)', assigned value is 0 host/lib21/host_signature.c:145:9: note: Null pointer dereference host/lib21/host_signature.c:212:29: style: Variable 'c' can be declared as pointer to const [constVariablePointer] host/lib21/host_signature.c:235:29: style: Variable 'c' can be declared as pointer to const [constVariablePointer] tests/cgpt_fuzzer.c:33:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNKNOWN [valueFlowBailoutIncompleteVar] tests/cgpt_fuzzer.c:76:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:62:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Guid [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:100:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_ENTRIES_ALLOC_SIZE [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:119:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_ENTRIES_ALLOC_SIZE [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:147:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_ENT_TYPE_CHROMEOS_KERNEL [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:210:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GUID_EXPECTED_SIZE [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:224:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:244:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:278:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:306:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:359:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:404:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:439:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:460:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:485:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:531:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_ENTRIES_ALLOC_SIZE [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:564:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:587:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:702:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:726:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:751:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable starting_lba [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:792:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:864:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:1134:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:1199:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Guid [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:1217:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Guid [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:1224:67: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Guid [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:1243:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_ERROR_NO_VALID_KERNEL [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:1262:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:1299:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:1326:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:1353:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:1436:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_ERROR_INVALID_UPDATE_TYPE [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:1459:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:1511:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Guid [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:1525:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_ERROR_COUNT [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:1546:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tests/cgptlib_test.c:1505:12: style: Variable 'e' can be declared as pointer to const [constVariablePointer] tests/chromeos_config_tests.c:42:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_READ_FILE_ALLOC [valueFlowBailoutIncompleteVar] tests/chromeos_config_tests.c:56:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/chromeos_config_tests.c:66:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/chromeos_config_tests.c:75:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/chromeos_config_tests.c:85:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/chromeos_config_tests.c:94:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/chromeos_config_tests.c:104:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/chromeos_config_tests.c:113:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/chromeos_config_tests.c:122:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/chromeos_config_tests.c:132:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/chromeos_config_tests.c:140:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/chromeos_config_tests.c:144:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/common/boot_mode.c:23:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_RECOVERY_MODE [valueFlowBailoutIncompleteVar] tests/common/tests.c:23:32: error: There is an unknown macro here somewhere. Configuration is required. If COL_GREEN is a macro then please configure it. [unknownMacro] tests/common/timer_utils.c:9:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] tests/common/timer_utils.c:13:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCK_REALTIME [valueFlowBailoutIncompleteVar] tests/crc32_test.c:44:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] tests/futility/binary_editor.c:22:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tests/futility/binary_editor.c:16:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/futility/test_file_types.c:46:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] tests/futility/test_file_types.c:44:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/futility/test_not_really.c:13:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_gbb_header [valueFlowBailoutIncompleteVar] tests/gpt_misc_tests.c:48:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_HEADER_REVISION [valueFlowBailoutIncompleteVar] tests/gpt_misc_tests.c:100:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_MOCK [valueFlowBailoutIncompleteVar] tests/gpt_misc_tests.c:114:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_MOCK [valueFlowBailoutIncompleteVar] tests/gpt_misc_tests.c:132:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MASK_BOTH [valueFlowBailoutIncompleteVar] tests/gpt_misc_tests.c:23:11: style: struct member 'mock_part::start' is never used. [unusedStructMember] tests/hmac_test.c:26:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_MAX_DIGEST_SIZE [valueFlowBailoutIncompleteVar] tests/hmac_test.c:61:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_MAX_DIGEST_SIZE [valueFlowBailoutIncompleteVar] tests/hmac_test.c:87:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_ALG_COUNT [valueFlowBailoutIncompleteVar] tests/hmac_test.c:51:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tests/sha_benchmark.c:23:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_MAX_DIGEST_SIZE [valueFlowBailoutIncompleteVar] tests/sha_tests.c:17:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA1_DIGEST_SIZE [valueFlowBailoutIncompleteVar] tests/sha_tests.c:42:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] tests/sha_tests.c:67:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHA512_DIGEST_SIZE [valueFlowBailoutIncompleteVar] tests/sha_tests.c:94:9: warning: If memory allocation fails, then there is a possible null pointer dereference: long_msg [nullPointerOutOfMemory] tests/sha_tests.c:93:28: note: Assuming allocation function fails tests/sha_tests.c:93:13: note: Assignment 'long_msg=(char*)malloc(1000001)', assigned value is 0 tests/sha_tests.c:94:9: note: Null pointer dereference tests/sha_tests.c:95:2: warning: If memory allocation fails, then there is a possible null pointer dereference: long_msg [nullPointerOutOfMemory] tests/sha_tests.c:93:28: note: Assuming allocation function fails tests/sha_tests.c:93:13: note: Assignment 'long_msg=(char*)malloc(1000001)', assigned value is 0 tests/sha_tests.c:95:2: note: Null pointer dereference tests/subprocess_tests.c:20:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TARGET_BUFFER [valueFlowBailoutIncompleteVar] tests/subprocess_tests.c:43:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TARGET_BUFFER_NULL_TERMINATED [valueFlowBailoutIncompleteVar] tests/subprocess_tests.c:72:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TARGET_BUFFER [valueFlowBailoutIncompleteVar] tests/subprocess_tests.c:113:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TARGET_BUFFER_NULL_TERMINATED [valueFlowBailoutIncompleteVar] tests/subprocess_tests.c:147:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TARGET_BUFFER_NULL_TERMINATED [valueFlowBailoutIncompleteVar] tests/subprocess_tests.c:201:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TARGET_BUFFER [valueFlowBailoutIncompleteVar] tests/subprocess_tests.c:247:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TARGET_BUFFER_NULL_TERMINATED [valueFlowBailoutIncompleteVar] tests/subprocess_tests.c:223:32: style: Parameter 'buf' can be declared as pointer to const. However it seems that 'output_cb' is a callback function, if 'buf' is declared with const you might also need to cast function pointer(s). [constParameterCallback] tests/subprocess_tests.c:264:10: note: You might need to cast the function pointer here tests/subprocess_tests.c:223:32: note: Parameter 'buf' can be declared as pointer to const tests/subprocess_tests.c:280:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/subprocess_tests.c:32:2: error: Uninitialized variable: output_buffer [uninitvar] tests/subprocess_tests.c:55:2: error: Uninitialized variable: output_buffer [uninitvar] tests/subprocess_tests.c:96:2: error: Uninitialized variable: output_buffer [uninitvar] tests/subprocess_tests.c:98:2: error: Uninitialized variable: error_buffer [uninitvar] tests/subprocess_tests.c:136:2: error: Uninitialized variable: output_buffer [uninitvar] tests/subprocess_tests.c:137:2: error: Uninitialized variable: error_buffer [uninitvar] tests/subprocess_tests.c:159:2: error: Uninitialized variable: output_buffer [uninitvar] tests/subprocess_tests.c:217:2: error: Uninitialized variable: output_buffer [uninitvar] tests/subprocess_tests.c:275:2: error: Uninitialized variable: output_buffer [uninitvar] tests/tlcl_tests.c:47:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/tlcl_tests.c:103:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/tlcl_tests.c:114:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/tlcl_tests.c:162:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ORD_Startup [valueFlowBailoutIncompleteVar] tests/tlcl_tests.c:240:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ORD_NV_DefineSpace [valueFlowBailoutIncompleteVar] tests/tlcl_tests.c:294:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_AUTH_DATA_LEN [valueFlowBailoutIncompleteVar] tests/tlcl_tests.c:382:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_PCR_DIGEST [valueFlowBailoutIncompleteVar] tests/tlcl_tests.c:457:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kPcrDigestLength [valueFlowBailoutIncompleteVar] tests/tlcl_tests.c:500:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] tests/tlcl_tests.c:563:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ORD_GetCapability [valueFlowBailoutIncompleteVar] tests/tlcl_tests.c:594:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ORD_GetRandom [valueFlowBailoutIncompleteVar] tests/tlcl_tests.c:622:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ORD_GetCapability [valueFlowBailoutIncompleteVar] tests/tlcl_tests.c:736:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ORD_FieldUpgrade [valueFlowBailoutIncompleteVar] tests/tlcl_tests.c:844:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_RSA_2048_LEN [valueFlowBailoutIncompleteVar] tests/tlcl_tests.c:1013:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_AUTH_DATA_LEN [valueFlowBailoutIncompleteVar] tests/tlcl_tests.c:1090:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] tests/tpm_lite/readonly.c:37:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_NV_PER_WRITE_STCLEAR [valueFlowBailoutIncompleteVar] tests/tpm_lite/readonly.c:77:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_E_BADINDEX [valueFlowBailoutIncompleteVar] tests/tpm_lite/tlcl_tests.c:28:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_E_INVALID_POSTINIT [valueFlowBailoutIncompleteVar] tests/tpm_lite/tpmtest_earlyextend.c:21:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] tests/tpm_lite/tpmtest_earlynvram.c:22:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] tests/tpm_lite/tpmtest_earlynvram2.c:20:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] tests/tpm_lite/tpmtest_enable.c:21:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] tests/tpm_lite/tpmtest_fastenable.c:27:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] tests/tpm_lite/tpmtest_globallock.c:23:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] tests/tpm_lite/tpmtest_redefine_unowned.c:23:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] tests/tpm_lite/tpmtest_spaceperm.c:25:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] tests/tpm_lite/tpmtest_testsetup.c:23:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] tests/tpm_lite/tpmtest_timing.c:50:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] tests/tpm_lite/tpmtest_writelimit.c:28:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb20_api_kernel_tests.c:62:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_RECOVERY_DECIDED [valueFlowBailoutIncompleteVar] tests/vb20_api_kernel_tests.c:176:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_MOCK [valueFlowBailoutIncompleteVar] tests/vb20_api_kernel_tests.c:219:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_VDATA_VERIFY_DIGEST [valueFlowBailoutIncompleteVar] tests/vb20_api_kernel_tests.c:232:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_MOCK [valueFlowBailoutIncompleteVar] tests/vb20_api_kernel_tests.c:258:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_API_GET_KERNEL_SIZE_PREAMBLE [valueFlowBailoutIncompleteVar] tests/vb20_api_kernel_tests.c:272:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_API_VERIFY_KDATA_PREAMBLE [valueFlowBailoutIncompleteVar] tests/vb20_api_kernel_tests.c:327:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_KERNEL_VERSIONS [valueFlowBailoutIncompleteVar] tests/vb20_api_kernel_tests.c:158:59: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb20_api_kernel_tests.c:158:71: style: Parameter 'size' can be declared as pointer to const [constParameterPointer] tests/vb20_api_kernel_tests.c:163:56: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb20_api_kernel_tests.c:172:11: style: Variable 'rptr' can be declared as pointer to const [constVariablePointer] tests/vb20_api_kernel_tests.c:194:58: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb20_api_kernel_tests.c:199:58: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb20_api_kernel_tests.c:359:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb20_kernel_tests.c:70:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA512 [valueFlowBailoutIncompleteVar] tests/vb20_kernel_tests.c:94:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb20_kernel_tests.c:143:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_MOCK [valueFlowBailoutIncompleteVar] tests/vb20_kernel_tests.c:201:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_KEYBLOCK_MAGIC [valueFlowBailoutIncompleteVar] tests/vb20_kernel_tests.c:244:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_FLAG_KERNEL_SIGNED [valueFlowBailoutIncompleteVar] tests/vb20_kernel_tests.c:414:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_KERNEL_PREAMBLE2_DATA_KEY [valueFlowBailoutIncompleteVar] tests/vb20_kernel_tests.c:139:11: style: Variable 'rptr' can be declared as pointer to const [constVariablePointer] tests/vb20_kernel_tests.c:172:54: style: Parameter 'block' can be declared as pointer to const [constParameterPointer] tests/vb20_kernel_tests.c:179:68: style: Parameter 'preamble' can be declared as pointer to const [constParameterPointer] tests/vb20_kernel_tests.c:469:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb20_kernel_tests.c:39:11: style: struct member 'Anonymous2::kbdata' is never used. [unusedStructMember] tests/vb20_kernel_tests.c:45:11: style: struct member 'Anonymous3::predata' is never used. [unusedStructMember] tests/vb20_rsa_padding_tests.c:30:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_VERIFY_DIGEST_WORKBUF_BYTES [valueFlowBailoutIncompleteVar] tests/vb20_rsa_padding_tests.c:63:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_VERIFY_DIGEST_WORKBUF_BYTES [valueFlowBailoutIncompleteVar] tests/vb20_rsa_padding_tests.c:132:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tests/vb20_rsa_padding_tests.c:19:16: style: Parameter 'inout' can be declared as pointer to const [constParameterPointer] tests/vb20_rsa_padding_tests.c:20:17: style: Parameter 'workbuf32' can be declared as pointer to const [constParameterPointer] tests/vb20_verify_fw.c:41:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNKNOWN [valueFlowBailoutIncompleteVar] tests/vb20_verify_fw.c:65:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb20_verify_fw.c:74:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_NVDATA_CHANGED [valueFlowBailoutIncompleteVar] tests/vb20_verify_fw.c:99:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_TEST_INPUT_FILE [valueFlowBailoutIncompleteVar] tests/vb20_verify_fw.c:149:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_FIRMWARE_WORKBUF_RECOMMENDED_SIZE [valueFlowBailoutIncompleteVar] tests/vb20_verify_fw.c:109:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] tests/vb20_verify_fw.c:223:2: portability: %zu in format string (no. 2) requires 'size_t' but the argument type is 'ptrdiff_t {aka signed int}'. [invalidPrintfArgType_uint] tests/vb20_verify_fw.c:119:12: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] tests/vb20_verify_fw.c:62:55: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb20_verify_fw.c:152:26: style: Variable 'sd' can be declared as pointer to const [constVariablePointer] tests/vb21_host_common2_tests.c:40:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_COMMON_MEMBER_SIZE [valueFlowBailoutIncompleteVar] tests/vb21_host_common2_tests.c:128:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB21_MAGIC_PACKED_KEY [valueFlowBailoutIncompleteVar] tests/vb21_host_common2_tests.c:172:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_VERIFY_DATA_WORKBUF_BYTES [valueFlowBailoutIncompleteVar] tests/vb21_host_common2_tests.c:329:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ALG_COUNT [valueFlowBailoutIncompleteVar] tests/vb21_host_common2_tests.c:321:22: style: Condition 'test_algorithm(key_algs[i],argv[1])' is always false [knownConditionTrueFalse] tests/vb21_host_common2_tests.c:321:22: note: Calling function 'test_algorithm' returns 0 tests/vb21_host_common2_tests.c:321:22: note: Condition 'test_algorithm(key_algs[i],argv[1])' is always false tests/vb21_host_common2_tests.c:330:22: style: Condition 'test_algorithm(alg,argv[1])' is always false [knownConditionTrueFalse] tests/vb21_host_common2_tests.c:330:22: note: Calling function 'test_algorithm' returns 0 tests/vb21_host_common2_tests.c:330:22: note: Condition 'test_algorithm(alg,argv[1])' is always false tests/vb21_host_common2_tests.c:34:9: warning: If memory allocation fails, then there is a possible null pointer dereference: key2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:32:41: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:32:9: note: Assignment 'key2=(struct vb21_packed_key*)malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:34:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:126:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:126:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:128:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:124:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:128:2: note: Null pointer dereference tests/vb21_host_common2_tests.c:132:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:132:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:133:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:124:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:133:2: note: Null pointer dereference tests/vb21_host_common2_tests.c:137:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:137:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:138:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:124:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:138:2: note: Null pointer dereference tests/vb21_host_common2_tests.c:140:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:124:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:140:2: note: Null pointer dereference tests/vb21_host_common2_tests.c:144:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:144:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:145:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:124:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:145:2: note: Null pointer dereference tests/vb21_host_common2_tests.c:146:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:124:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:146:2: note: Null pointer dereference tests/vb21_host_common2_tests.c:150:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:150:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:151:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:124:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:151:2: note: Null pointer dereference tests/vb21_host_common2_tests.c:155:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:155:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:156:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:124:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:156:2: note: Null pointer dereference tests/vb21_host_common2_tests.c:160:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:160:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:161:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:124:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:161:2: note: Null pointer dereference tests/vb21_host_common2_tests.c:161:19: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:124:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:161:19: note: Null pointer dereference tests/vb21_host_common2_tests.c:190:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:187:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:187:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:190:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:196:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:187:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:187:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:196:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:204:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:187:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:187:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:204:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:210:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:187:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:187:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:210:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:214:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:187:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:187:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:214:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:215:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:187:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:187:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:188:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:215:2: note: Null pointer dereference tests/vb21_host_common2_tests.c:219:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:187:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:187:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:219:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:223:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:187:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:187:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:223:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:224:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:187:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:187:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:188:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:224:2: note: Null pointer dereference tests/vb21_host_common2_tests.c:224:20: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:187:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:187:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:188:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:224:20: note: Null pointer dereference tests/vb21_host_common2_tests.c:231:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:187:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:187:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:231:9: note: Null pointer dereference tests/vb21_host_common2_tests.c:232:2: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:187:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:187:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:232:2: note: Null pointer dereference tests/vb21_host_common2_tests.c:232:7: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:187:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:187:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:188:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:232:7: note: Null pointer dereference tests/vb21_host_common_tests.c:25:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_id [valueFlowBailoutIncompleteVar] tests/vb21_host_common_tests.c:44:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb21_struct_common [valueFlowBailoutIncompleteVar] tests/vb21_host_common_tests.c:196:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA1_DIGEST_SIZE [valueFlowBailoutIncompleteVar] tests/vb21_host_common_tests.c:212:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_VERIFY_DATA_WORKBUF_BYTES [valueFlowBailoutIncompleteVar] tests/vb21_host_common_tests.c:239:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb21_host_key_tests.c:53:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_READ_PEM_FILE_OPEN [valueFlowBailoutIncompleteVar] tests/vb21_host_key_tests.c:183:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_READ_KEYB_DATA [valueFlowBailoutIncompleteVar] tests/vb21_host_key_tests.c:315:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tests/vb21_host_key_tests.c:311:22: style: Condition 'test_algorithm(test_algs+i,keys_dir,temp_dir)' is always false [knownConditionTrueFalse] tests/vb21_host_key_tests.c:311:22: note: Calling function 'test_algorithm' returns 0 tests/vb21_host_key_tests.c:311:22: note: Condition 'test_algorithm(test_algs+i,keys_dir,temp_dir)' is always false tests/vb21_host_key_tests.c:99:9: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_key_tests.c:98:15: note: Assuming allocation function fails tests/vb21_host_key_tests.c:98:15: note: Assignment 'buf2=malloc(bufsize)', assigned value is 0 tests/vb21_host_key_tests.c:99:9: note: Null pointer dereference tests/vb21_host_key_tests.c:105:14: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_key_tests.c:98:15: note: Assuming allocation function fails tests/vb21_host_key_tests.c:98:15: note: Assignment 'buf2=malloc(bufsize)', assigned value is 0 tests/vb21_host_key_tests.c:105:14: note: Null pointer dereference tests/vb21_host_key_tests.c:112:14: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_key_tests.c:98:15: note: Assuming allocation function fails tests/vb21_host_key_tests.c:98:15: note: Assignment 'buf2=malloc(bufsize)', assigned value is 0 tests/vb21_host_key_tests.c:112:14: note: Null pointer dereference tests/vb21_host_key_tests.c:118:14: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_key_tests.c:98:15: note: Assuming allocation function fails tests/vb21_host_key_tests.c:98:15: note: Assignment 'buf2=malloc(bufsize)', assigned value is 0 tests/vb21_host_key_tests.c:118:14: note: Null pointer dereference tests/vb21_host_key_tests.c:124:14: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_key_tests.c:98:15: note: Assuming allocation function fails tests/vb21_host_key_tests.c:98:15: note: Assignment 'buf2=malloc(bufsize)', assigned value is 0 tests/vb21_host_key_tests.c:124:14: note: Null pointer dereference tests/vb21_host_key_tests.c:130:14: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_key_tests.c:98:15: note: Assuming allocation function fails tests/vb21_host_key_tests.c:98:15: note: Assignment 'buf2=malloc(bufsize)', assigned value is 0 tests/vb21_host_key_tests.c:130:14: note: Null pointer dereference tests/vb21_host_key_tests.c:136:14: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_key_tests.c:98:15: note: Assuming allocation function fails tests/vb21_host_key_tests.c:98:15: note: Assignment 'buf2=malloc(bufsize)', assigned value is 0 tests/vb21_host_key_tests.c:136:14: note: Null pointer dereference tests/vb21_host_key_tests.c:142:14: warning: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] tests/vb21_host_key_tests.c:98:15: note: Assuming allocation function fails tests/vb21_host_key_tests.c:98:15: note: Assignment 'buf2=malloc(bufsize)', assigned value is 0 tests/vb21_host_key_tests.c:142:14: note: Null pointer dereference tests/vb21_host_misc_tests.c:37:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb21_struct_common [valueFlowBailoutIncompleteVar] tests/vb21_host_misc_tests.c:76:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tests/vb21_host_sig_tests.c:49:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_VERIFY_DATA_WORKBUF_BYTES [valueFlowBailoutIncompleteVar] tests/vb21_host_sig_tests.c:194:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tests/vb21_host_sig_tests.c:190:22: style: Condition 'test_algorithm(test_algs+i,argv[1])' is always false [knownConditionTrueFalse] tests/vb21_host_sig_tests.c:190:22: note: Calling function 'test_algorithm' returns 0 tests/vb21_host_sig_tests.c:190:22: note: Condition 'test_algorithm(test_algs+i,argv[1])' is always false tests/vb21_host_sig_tests.c:125:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] tests/vb21_host_sig_tests.c:122:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:122:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:124:4: note: c is assigned '(struct vb21_struct_common*)buf' here. tests/vb21_host_sig_tests.c:125:2: note: Null pointer dereference tests/vb21_host_sig_tests.c:142:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] tests/vb21_host_sig_tests.c:139:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:139:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:141:4: note: c is assigned '(struct vb21_struct_common*)buf' here. tests/vb21_host_sig_tests.c:142:2: note: Null pointer dereference tests/vb21_host_sig_tests.c:153:2: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] tests/vb21_host_sig_tests.c:139:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:139:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:141:6: note: Assignment 'c=(struct vb21_struct_common*)buf', assigned value is 0 tests/vb21_host_sig_tests.c:153:2: note: Null pointer dereference tests/vb21_host_sig_tests.c:123:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb21_host_sig_tests.c:122:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:122:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:123:13: note: Null pointer addition tests/vb21_host_sig_tests.c:128:38: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb21_host_sig_tests.c:122:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:122:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:128:38: note: Null pointer addition tests/vb21_host_sig_tests.c:140:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb21_host_sig_tests.c:139:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:139:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:140:13: note: Null pointer addition tests/vb21_host_sig_tests.c:146:38: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb21_host_sig_tests.c:139:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:139:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:146:38: note: Null pointer addition tests/vb21_host_sig_tests.c:149:39: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb21_host_sig_tests.c:139:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:139:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:149:39: note: Null pointer addition tests/vb2_api_tests.c:89:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:139:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_DEVELOPER_MODE [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:171:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNPACK_KEY_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:184:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_EX_HWCRYPTO_UNSUPPORTED [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:200:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNKNOWN [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:215:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNKNOWN [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:227:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNKNOWN [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:241:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNKNOWN [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:252:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNKNOWN [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:271:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_public_key [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:287:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:296:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_SECDATA_FIRMWARE_CRC [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:369:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_RECOVERY_MODE [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:565:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_CLEAR_RAM [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:602:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_PCR_DIGEST_RECOMMENDED_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:645:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_MOCK [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:665:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_TAG_FW_BODY [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:732:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_API_EXTEND_HASH_WORKBUF [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:776:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_RECOVERY_MODE [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:857:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tests/vb2_api_tests.c:126:56: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_api_tests.c:131:49: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_api_tests.c:145:53: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_api_tests.c:150:52: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_api_tests.c:155:54: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_api_tests.c:160:54: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_api_tests.c:237:58: style: Parameter 'dc' can be declared as pointer to const [constParameterPointer] tests/vb2_auxfw_sync_tests.c:42:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_EC_SYNC_SUPPORTED [valueFlowBailoutIncompleteVar] tests/vb2_auxfw_sync_tests.c:74:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_AUXFW_SLOW_UPDATE [valueFlowBailoutIncompleteVar] tests/vb2_auxfw_sync_tests.c:86:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_AUXFW_NO_DEVICE [valueFlowBailoutIncompleteVar] tests/vb2_auxfw_sync_tests.c:94:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_RECOVERY_REQUEST [valueFlowBailoutIncompleteVar] tests/vb2_auxfw_sync_tests.c:103:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC [valueFlowBailoutIncompleteVar] tests/vb2_auxfw_sync_tests.c:60:56: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_auxfw_sync_tests.c:84:54: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_common2_tests.c:34:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_common2_tests.c:94:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ALG_COUNT [valueFlowBailoutIncompleteVar] tests/vb2_common2_tests.c:132:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_VERIFY_DATA_WORKBUF_BYTES [valueFlowBailoutIncompleteVar] tests/vb2_common2_tests.c:273:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tests/vb2_common2_tests.c:330:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ALG_COUNT [valueFlowBailoutIncompleteVar] tests/vb2_common2_tests.c:83:9: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] tests/vb2_common2_tests.c:80:23: note: Assuming allocation function fails tests/vb2_common2_tests.c:80:23: note: Assignment 'buf=malloc(size)', assigned value is 0 tests/vb2_common2_tests.c:81:29: note: key is assigned '(struct vb2_packed_key*)buf' here. tests/vb2_common2_tests.c:83:9: note: Null pointer dereference tests/vb2_common2_tests.c:87:2: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] tests/vb2_common2_tests.c:80:23: note: Assuming allocation function fails tests/vb2_common2_tests.c:80:23: note: Assignment 'buf=malloc(size)', assigned value is 0 tests/vb2_common2_tests.c:81:31: note: Assignment 'key=(struct vb2_packed_key*)buf', assigned value is 0 tests/vb2_common2_tests.c:87:2: note: Null pointer dereference tests/vb2_common2_tests.c:89:2: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] tests/vb2_common2_tests.c:80:23: note: Assuming allocation function fails tests/vb2_common2_tests.c:80:23: note: Assignment 'buf=malloc(size)', assigned value is 0 tests/vb2_common2_tests.c:81:31: note: Assignment 'key=(struct vb2_packed_key*)buf', assigned value is 0 tests/vb2_common2_tests.c:89:2: note: Null pointer dereference tests/vb2_common2_tests.c:93:9: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] tests/vb2_common2_tests.c:80:23: note: Assuming allocation function fails tests/vb2_common2_tests.c:80:23: note: Assignment 'buf=malloc(size)', assigned value is 0 tests/vb2_common2_tests.c:81:31: note: Assignment 'key=(struct vb2_packed_key*)buf', assigned value is 0 tests/vb2_common2_tests.c:93:9: note: Null pointer dereference tests/vb2_common2_tests.c:94:2: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] tests/vb2_common2_tests.c:80:23: note: Assuming allocation function fails tests/vb2_common2_tests.c:80:23: note: Assignment 'buf=malloc(size)', assigned value is 0 tests/vb2_common2_tests.c:81:31: note: Assignment 'key=(struct vb2_packed_key*)buf', assigned value is 0 tests/vb2_common2_tests.c:94:2: note: Null pointer dereference tests/vb2_common2_tests.c:99:9: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] tests/vb2_common2_tests.c:80:23: note: Assuming allocation function fails tests/vb2_common2_tests.c:80:23: note: Assignment 'buf=malloc(size)', assigned value is 0 tests/vb2_common2_tests.c:81:31: note: Assignment 'key=(struct vb2_packed_key*)buf', assigned value is 0 tests/vb2_common2_tests.c:99:9: note: Null pointer dereference tests/vb2_common2_tests.c:100:2: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] tests/vb2_common2_tests.c:80:23: note: Assuming allocation function fails tests/vb2_common2_tests.c:80:23: note: Assignment 'buf=malloc(size)', assigned value is 0 tests/vb2_common2_tests.c:81:31: note: Assignment 'key=(struct vb2_packed_key*)buf', assigned value is 0 tests/vb2_common2_tests.c:100:2: note: Null pointer dereference tests/vb2_common2_tests.c:105:9: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] tests/vb2_common2_tests.c:80:23: note: Assuming allocation function fails tests/vb2_common2_tests.c:80:23: note: Assignment 'buf=malloc(size)', assigned value is 0 tests/vb2_common2_tests.c:81:31: note: Assignment 'key=(struct vb2_packed_key*)buf', assigned value is 0 tests/vb2_common2_tests.c:105:9: note: Null pointer dereference tests/vb2_common2_tests.c:106:2: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] tests/vb2_common2_tests.c:80:23: note: Assuming allocation function fails tests/vb2_common2_tests.c:80:23: note: Assignment 'buf=malloc(size)', assigned value is 0 tests/vb2_common2_tests.c:81:31: note: Assignment 'key=(struct vb2_packed_key*)buf', assigned value is 0 tests/vb2_common2_tests.c:106:2: note: Null pointer dereference tests/vb2_common2_tests.c:111:9: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] tests/vb2_common2_tests.c:80:23: note: Assuming allocation function fails tests/vb2_common2_tests.c:80:23: note: Assignment 'buf=malloc(size)', assigned value is 0 tests/vb2_common2_tests.c:81:31: note: Assignment 'key=(struct vb2_packed_key*)buf', assigned value is 0 tests/vb2_common2_tests.c:111:9: note: Null pointer dereference tests/vb2_common2_tests.c:112:22: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] tests/vb2_common2_tests.c:80:23: note: Assuming allocation function fails tests/vb2_common2_tests.c:80:23: note: Assignment 'buf=malloc(size)', assigned value is 0 tests/vb2_common2_tests.c:81:31: note: Assignment 'key=(struct vb2_packed_key*)buf', assigned value is 0 tests/vb2_common2_tests.c:112:22: note: Null pointer dereference tests/vb2_common2_tests.c:117:9: warning: If memory allocation fails, then there is a possible null pointer dereference: key [nullPointerOutOfMemory] tests/vb2_common2_tests.c:80:23: note: Assuming allocation function fails tests/vb2_common2_tests.c:80:23: note: Assignment 'buf=malloc(size)', assigned value is 0 tests/vb2_common2_tests.c:81:31: note: Assignment 'key=(struct vb2_packed_key*)buf', assigned value is 0 tests/vb2_common2_tests.c:117:9: note: Null pointer dereference tests/vb2_common2_tests.c:151:9: warning: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:151:9: note: Null pointer dereference tests/vb2_common2_tests.c:157:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:157:9: note: Null pointer dereference tests/vb2_common2_tests.c:164:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:164:9: note: Null pointer dereference tests/vb2_common2_tests.c:169:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:169:9: note: Null pointer dereference tests/vb2_common2_tests.c:173:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:173:9: note: Null pointer dereference tests/vb2_common2_tests.c:174:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:174:2: note: Null pointer dereference tests/vb2_common2_tests.c:178:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:178:9: note: Null pointer dereference tests/vb2_common2_tests.c:182:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:182:9: note: Null pointer dereference tests/vb2_common2_tests.c:191:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:191:9: note: Null pointer dereference tests/vb2_common2_tests.c:197:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:197:9: note: Null pointer dereference tests/vb2_common2_tests.c:202:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:202:9: note: Null pointer dereference tests/vb2_common2_tests.c:206:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:206:9: note: Null pointer dereference tests/vb2_common2_tests.c:207:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:207:2: note: Null pointer dereference tests/vb2_common2_tests.c:213:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:213:9: note: Null pointer dereference tests/vb2_common2_tests.c:218:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:218:9: note: Null pointer dereference tests/vb2_common2_tests.c:223:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:223:9: note: Null pointer dereference tests/vb2_common2_tests.c:229:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:229:9: note: Null pointer dereference tests/vb2_common2_tests.c:235:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:235:9: note: Null pointer dereference tests/vb2_common2_tests.c:240:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:240:9: note: Null pointer dereference tests/vb2_common2_tests.c:244:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:244:9: note: Null pointer dereference tests/vb2_common2_tests.c:245:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb2_common2_tests.c:146:39: note: Assuming allocation function fails tests/vb2_common2_tests.c:146:9: note: Assignment 'sig2=(struct vb2_signature*)malloc(sig_total_size)', assigned value is 0 tests/vb2_common2_tests.c:245:2: note: Null pointer dereference tests/vb2_common2_tests.c:112:20: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb2_common2_tests.c:80:23: note: Assuming allocation function fails tests/vb2_common2_tests.c:80:23: note: Assignment 'buf=malloc(size)', assigned value is 0 tests/vb2_common2_tests.c:112:20: note: Null pointer addition tests/vb2_common2_tests.c:30:55: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] tests/vb2_common3_tests.c:53:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_KEYBLOCK_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_common3_tests.c:142:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_KEYBLOCK_VERIFY_WORKBUF_BYTES [valueFlowBailoutIncompleteVar] tests/vb2_common3_tests.c:207:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_VERIFY_FIRMWARE_PREAMBLE_WORKBUF_BYTES [valueFlowBailoutIncompleteVar] tests/vb2_common3_tests.c:349:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_VERIFY_FIRMWARE_PREAMBLE_WORKBUF_BYTES [valueFlowBailoutIncompleteVar] tests/vb2_common3_tests.c:531:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tests/vb2_common3_tests.c:621:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ALG_COUNT [valueFlowBailoutIncompleteVar] tests/vb2_common3_tests.c:48:9: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:48:9: note: Null pointer dereference tests/vb2_common3_tests.c:52:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:52:9: note: Null pointer dereference tests/vb2_common3_tests.c:57:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:57:9: note: Null pointer dereference tests/vb2_common3_tests.c:61:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:61:9: note: Null pointer dereference tests/vb2_common3_tests.c:62:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:62:2: note: Null pointer dereference tests/vb2_common3_tests.c:67:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:67:9: note: Null pointer dereference tests/vb2_common3_tests.c:68:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:68:2: note: Null pointer dereference tests/vb2_common3_tests.c:74:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:74:9: note: Null pointer dereference tests/vb2_common3_tests.c:75:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:75:2: note: Null pointer dereference tests/vb2_common3_tests.c:81:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:81:9: note: Null pointer dereference tests/vb2_common3_tests.c:82:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:82:2: note: Null pointer dereference tests/vb2_common3_tests.c:87:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:87:9: note: Null pointer dereference tests/vb2_common3_tests.c:88:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:88:2: note: Null pointer dereference tests/vb2_common3_tests.c:94:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:94:9: note: Null pointer dereference tests/vb2_common3_tests.c:95:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:95:2: note: Null pointer dereference tests/vb2_common3_tests.c:101:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:101:9: note: Null pointer dereference tests/vb2_common3_tests.c:102:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:102:2: note: Null pointer dereference tests/vb2_common3_tests.c:102:36: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:102:36: note: Null pointer dereference tests/vb2_common3_tests.c:108:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:108:9: note: Null pointer dereference tests/vb2_common3_tests.c:109:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:109:2: note: Null pointer dereference tests/vb2_common3_tests.c:110:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:110:2: note: Null pointer dereference tests/vb2_common3_tests.c:111:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:111:2: note: Null pointer dereference tests/vb2_common3_tests.c:117:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:117:9: note: Null pointer dereference tests/vb2_common3_tests.c:118:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:118:2: note: Null pointer dereference tests/vb2_common3_tests.c:158:9: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:156:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:156:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:158:9: note: Null pointer dereference tests/vb2_common3_tests.c:163:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:156:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:156:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:163:9: note: Null pointer dereference tests/vb2_common3_tests.c:168:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:156:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:156:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:168:9: note: Null pointer dereference tests/vb2_common3_tests.c:169:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:156:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:156:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:169:2: note: Null pointer dereference tests/vb2_common3_tests.c:175:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:156:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:156:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:175:9: note: Null pointer dereference tests/vb2_common3_tests.c:232:9: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:232:9: note: Null pointer dereference tests/vb2_common3_tests.c:236:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:236:9: note: Null pointer dereference tests/vb2_common3_tests.c:241:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:241:9: note: Null pointer dereference tests/vb2_common3_tests.c:247:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:247:9: note: Null pointer dereference tests/vb2_common3_tests.c:252:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:252:9: note: Null pointer dereference tests/vb2_common3_tests.c:253:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:253:2: note: Null pointer dereference tests/vb2_common3_tests.c:259:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:259:9: note: Null pointer dereference tests/vb2_common3_tests.c:260:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:260:2: note: Null pointer dereference tests/vb2_common3_tests.c:266:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:266:9: note: Null pointer dereference tests/vb2_common3_tests.c:267:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:267:2: note: Null pointer dereference tests/vb2_common3_tests.c:272:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:272:9: note: Null pointer dereference tests/vb2_common3_tests.c:273:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:273:2: note: Null pointer dereference tests/vb2_common3_tests.c:280:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:280:9: note: Null pointer dereference tests/vb2_common3_tests.c:281:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:281:2: note: Null pointer dereference tests/vb2_common3_tests.c:287:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:287:9: note: Null pointer dereference tests/vb2_common3_tests.c:288:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:288:2: note: Null pointer dereference tests/vb2_common3_tests.c:294:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:294:9: note: Null pointer dereference tests/vb2_common3_tests.c:301:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:301:9: note: Null pointer dereference tests/vb2_common3_tests.c:302:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:302:2: note: Null pointer dereference tests/vb2_common3_tests.c:303:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:303:2: note: Null pointer dereference tests/vb2_common3_tests.c:304:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:304:2: note: Null pointer dereference tests/vb2_common3_tests.c:305:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:305:2: note: Null pointer dereference tests/vb2_common3_tests.c:306:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:306:2: note: Null pointer dereference tests/vb2_common3_tests.c:312:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:312:9: note: Null pointer dereference tests/vb2_common3_tests.c:313:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:313:2: note: Null pointer dereference tests/vb2_common3_tests.c:319:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:319:9: note: Null pointer dereference tests/vb2_common3_tests.c:320:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:230:38: note: Assuming allocation function fails tests/vb2_common3_tests.c:230:6: note: Assignment 'h=(struct vb2_fw_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:320:2: note: Null pointer dereference tests/vb2_common3_tests.c:377:9: warning: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:377:9: note: Null pointer dereference tests/vb2_common3_tests.c:381:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:381:9: note: Null pointer dereference tests/vb2_common3_tests.c:386:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:386:9: note: Null pointer dereference tests/vb2_common3_tests.c:392:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:392:9: note: Null pointer dereference tests/vb2_common3_tests.c:397:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:397:9: note: Null pointer dereference tests/vb2_common3_tests.c:398:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:398:2: note: Null pointer dereference tests/vb2_common3_tests.c:404:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:404:9: note: Null pointer dereference tests/vb2_common3_tests.c:405:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:405:2: note: Null pointer dereference tests/vb2_common3_tests.c:411:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:411:9: note: Null pointer dereference tests/vb2_common3_tests.c:412:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:412:2: note: Null pointer dereference tests/vb2_common3_tests.c:418:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:418:9: note: Null pointer dereference tests/vb2_common3_tests.c:419:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:419:2: note: Null pointer dereference tests/vb2_common3_tests.c:425:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:425:9: note: Null pointer dereference tests/vb2_common3_tests.c:426:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:426:2: note: Null pointer dereference tests/vb2_common3_tests.c:432:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:432:9: note: Null pointer dereference tests/vb2_common3_tests.c:433:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:433:2: note: Null pointer dereference tests/vb2_common3_tests.c:439:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:439:9: note: Null pointer dereference tests/vb2_common3_tests.c:440:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:440:2: note: Null pointer dereference tests/vb2_common3_tests.c:441:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:441:2: note: Null pointer dereference tests/vb2_common3_tests.c:442:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:442:2: note: Null pointer dereference tests/vb2_common3_tests.c:448:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:448:9: note: Null pointer dereference tests/vb2_common3_tests.c:449:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:449:2: note: Null pointer dereference tests/vb2_common3_tests.c:456:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:456:9: note: Null pointer dereference tests/vb2_common3_tests.c:457:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:457:2: note: Null pointer dereference tests/vb2_common3_tests.c:457:26: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:457:26: note: Null pointer dereference tests/vb2_common3_tests.c:463:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:463:9: note: Null pointer dereference tests/vb2_common3_tests.c:464:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:464:2: note: Null pointer dereference tests/vb2_common3_tests.c:464:26: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:464:26: note: Null pointer dereference tests/vb2_common3_tests.c:465:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:465:3: note: Null pointer dereference tests/vb2_common3_tests.c:471:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:471:9: note: Null pointer dereference tests/vb2_common3_tests.c:472:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:472:2: note: Null pointer dereference tests/vb2_common3_tests.c:472:26: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:472:26: note: Null pointer dereference tests/vb2_common3_tests.c:473:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:473:3: note: Null pointer dereference tests/vb2_common3_tests.c:474:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:474:2: note: Null pointer dereference tests/vb2_common3_tests.c:480:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:480:9: note: Null pointer dereference tests/vb2_common3_tests.c:481:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:481:2: note: Null pointer dereference tests/vb2_common3_tests.c:481:30: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:481:30: note: Null pointer dereference tests/vb2_common3_tests.c:487:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:487:9: note: Null pointer dereference tests/vb2_common3_tests.c:488:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:488:2: note: Null pointer dereference tests/vb2_common3_tests.c:488:30: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:488:30: note: Null pointer dereference tests/vb2_common3_tests.c:489:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:489:3: note: Null pointer dereference tests/vb2_common3_tests.c:495:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:495:9: note: Null pointer dereference tests/vb2_common3_tests.c:496:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:496:2: note: Null pointer dereference tests/vb2_common3_tests.c:496:30: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:496:30: note: Null pointer dereference tests/vb2_common3_tests.c:497:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:497:3: note: Null pointer dereference tests/vb2_common3_tests.c:498:2: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:498:2: note: Null pointer dereference tests/vb2_common_tests.c:83:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_packed_key [valueFlowBailoutIncompleteVar] tests/vb2_common_tests.c:123:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_ALIGN_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_common_tests.c:156:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_WORKBUF_ALIGN [valueFlowBailoutIncompleteVar] tests/vb2_common_tests.c:244:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_INSIDE_MEMBER_OUTSIDE [valueFlowBailoutIncompleteVar] tests/vb2_common_tests.c:326:19: style: Condition '2+2==4' is always true [knownConditionTrueFalse] tests/vb2_common_tests.c:336:2: style: Condition '2+2==5' is always false [knownConditionTrueFalse] tests/vb2_common_tests.c:340:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb2_crypto_tests.c:23:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_ALG_COUNT [valueFlowBailoutIncompleteVar] tests/vb2_crypto_tests.c:39:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SIG_ALG_COUNT [valueFlowBailoutIncompleteVar] tests/vb2_crypto_tests.c:57:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_ALG_COUNT [valueFlowBailoutIncompleteVar] tests/vb2_crypto_tests.c:79:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SIG_ALG_COUNT [valueFlowBailoutIncompleteVar] tests/vb2_crypto_tests.c:96:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb2_ec_sync_tests.c:54:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_EC_SYNC_SUPPORTED [valueFlowBailoutIncompleteVar] tests/vb2_ec_sync_tests.c:124:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB_SELECT_FIRMWARE_READONLY [valueFlowBailoutIncompleteVar] tests/vb2_ec_sync_tests.c:134:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_ec_sync_tests.c:139:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_ec_sync_tests.c:148:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB_SELECT_FIRMWARE_READONLY [valueFlowBailoutIncompleteVar] tests/vb2_ec_sync_tests.c:161:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_MOCK [valueFlowBailoutIncompleteVar] tests/vb2_ec_sync_tests.c:170:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_REQUEST_REBOOT [valueFlowBailoutIncompleteVar] tests/vb2_ec_sync_tests.c:192:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_RECOVERY_REQUEST [valueFlowBailoutIncompleteVar] tests/vb2_ec_sync_tests.c:207:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_ec_sync_tests.c:108:56: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_ec_sync_tests.c:182:53: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_ec_sync_tests.c:194:32: style: Variable 'sec' can be declared as pointer to const [constVariablePointer] tests/vb2_firmware_tests.c:82:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_firmware_tests.c:132:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_EX_READ_RESOURCE_INDEX [valueFlowBailoutIncompleteVar] tests/vb2_firmware_tests.c:167:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_public_key [valueFlowBailoutIncompleteVar] tests/vb2_firmware_tests.c:176:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_public_key [valueFlowBailoutIncompleteVar] tests/vb2_firmware_tests.c:224:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_RECOVERY_MODE [valueFlowBailoutIncompleteVar] tests/vb2_firmware_tests.c:337:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_RECOVERY_MODE [valueFlowBailoutIncompleteVar] tests/vb2_firmware_tests.c:119:56: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_firmware_tests.c:128:11: style: Variable 'rptr' can be declared as pointer to const [constVariablePointer] tests/vb2_firmware_tests.c:443:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb2_firmware_tests.c:39:11: style: struct member 'Anonymous2::kbdata' is never used. [unusedStructMember] tests/vb2_firmware_tests.c:44:11: style: struct member 'Anonymous3::predata' is never used. [unusedStructMember] tests/vb2_gbb_init_tests.c:15:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_KERNEL_WORKBUF_RECOMMENDED_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_gbb_init_tests.c:22:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb2_gbb_tests.c:33:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_GBB_MAJOR_VER [valueFlowBailoutIncompleteVar] tests/vb2_gbb_tests.c:76:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_EX_READ_RESOURCE_INDEX [valueFlowBailoutIncompleteVar] tests/vb2_gbb_tests.c:108:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_GBB_INVALID [valueFlowBailoutIncompleteVar] tests/vb2_gbb_tests.c:260:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_GBB_HWID_MAX_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_gbb_tests.c:58:56: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_gbb_tests.c:67:11: style: Variable 'rptr' can be declared as pointer to const [constVariablePointer] tests/vb2_gbb_tests.c:348:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb2_gbb_tests.c:45:25: portability: '(void*)gbb' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tests/vb2_gbb_tests.c:193:25: portability: '(void*)rootkey' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tests/vb2_host_flashrom_tests.c:45:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] tests/vb2_host_flashrom_tests.c:61:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] tests/vb2_host_flashrom_tests.c:200:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_host_flashrom_tests.c:270:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_host_flashrom_tests.c:81:3: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] tests/vb2_host_flashrom_tests.c:59:16: style: Variable 'long_opts' can be declared as const array [constVariable] tests/vb2_host_flashrom_tests.c:275:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb2_host_key_tests.c:21:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable key_size [valueFlowBailoutIncompleteVar] tests/vb2_host_key_tests.c:63:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb2_host_nvdata_flashrom_tests.c:28:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLASHROM_PROGRAMMER_INTERNAL_AP [valueFlowBailoutIncompleteVar] tests/vb2_host_nvdata_flashrom_tests.c:59:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NVDATA_SIZE_V2 [valueFlowBailoutIncompleteVar] tests/vb2_host_nvdata_flashrom_tests.c:89:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_FLASHROM [valueFlowBailoutIncompleteVar] tests/vb2_host_nvdata_flashrom_tests.c:104:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_FLASHROM [valueFlowBailoutIncompleteVar] tests/vb2_host_nvdata_flashrom_tests.c:133:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NVDATA_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_host_nvdata_flashrom_tests.c:149:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NVDATA_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_host_nvdata_flashrom_tests.c:194:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NVDATA_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_host_nvdata_flashrom_tests.c:205:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NVDATA_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_host_nvdata_flashrom_tests.c:224:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NVDATA_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_host_nvdata_flashrom_tests.c:101:51: style: Parameter 'image' can be declared as pointer to const [constParameterPointer] tests/vb2_host_nvdata_flashrom_tests.c:263:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb2_kernel_tests.c:67:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_kernel_tests.c:131:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_kernel_tests.c:139:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_kernel_tests.c:164:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_MOCK [valueFlowBailoutIncompleteVar] tests/vb2_kernel_tests.c:185:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_kernel_tests.c:228:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_BOOT_MODE_NORMAL [valueFlowBailoutIncompleteVar] tests/vb2_kernel_tests.c:349:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_BOOT_MODE_NORMAL [valueFlowBailoutIncompleteVar] tests/vb2_kernel_tests.c:436:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_kernel_tests.c:118:59: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_kernel_tests.c:118:71: style: Parameter 'size' can be declared as pointer to const [constParameterPointer] tests/vb2_kernel_tests.c:123:48: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_kernel_tests.c:129:51: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_kernel_tests.c:142:67: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_kernel_tests.c:151:56: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_kernel_tests.c:160:11: style: Variable 'rptr' can be declared as pointer to const [constVariablePointer] tests/vb2_kernel_tests.c:182:51: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_kernel_tests.c:188:49: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_kernel_tests.c:205:53: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_kernel_tests.c:490:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb2_keyblock_fuzzer.c:52:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_EX_READ_RESOURCE_INDEX [valueFlowBailoutIncompleteVar] tests/vb2_keyblock_fuzzer.c:66:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_keyblock_fuzzer.c:71:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_keyblock_fuzzer.c:25:38: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_keyblock_fuzzer.c:30:56: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_keyblock_fuzzer.c:58:20: portability: 'rbase' is of type 'const void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tests/vb2_load_kernel2_tests.c:81:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_RECOVERY_MODE [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel2_tests.c:129:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNKNOWN [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel2_tests.c:157:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNKNOWN [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel2_tests.c:258:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel2_tests.c:136:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tests/vb2_load_kernel2_tests.c:135:12: note: Assuming allocation function fails tests/vb2_load_kernel2_tests.c:135:12: note: Assignment 's=malloc(sizeof(*s))', assigned value is 0 tests/vb2_load_kernel2_tests.c:136:2: note: Null pointer dereference tests/vb2_load_kernel2_tests.c:137:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tests/vb2_load_kernel2_tests.c:135:12: note: Assuming allocation function fails tests/vb2_load_kernel2_tests.c:135:12: note: Assignment 's=malloc(sizeof(*s))', assigned value is 0 tests/vb2_load_kernel2_tests.c:137:2: note: Null pointer dereference tests/vb2_load_kernel2_tests.c:138:2: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] tests/vb2_load_kernel2_tests.c:135:12: note: Assuming allocation function fails tests/vb2_load_kernel2_tests.c:135:12: note: Assignment 's=malloc(sizeof(*s))', assigned value is 0 tests/vb2_load_kernel2_tests.c:138:2: note: Null pointer dereference tests/vb2_load_kernel2_tests.c:194:58: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] tests/vb2_load_kernel2_tests.c:231:30: style: Parameter 'sig' can be declared as pointer to const [constParameterPointer] tests/vb2_load_kernel2_tests.c:239:53: style: Parameter 'digest' can be declared as pointer to const [constParameterPointer] tests/vb2_load_kernel2_tests.c:246:38: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_load_kernel2_tests.c:175:18: portability: 'buffer' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] tests/vb2_load_kernel_tests.c:71:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_GBB_MAJOR_VER [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:137:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:145:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:153:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:160:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_MOCK [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:167:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:180:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_ERROR_NO_VALID_KERNEL [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:194:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:199:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPT_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:213:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_MOCK [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:223:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_MOCK [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:235:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_MOCK [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:247:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_MOCK [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:260:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_MOCK [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:270:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:283:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:295:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_LK_NO_KERNEL_FOUND [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:306:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_load_kernel_tests.c:127:56: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_load_kernel_tests.c:157:31: style: Parameter 'buffer' can be declared as pointer to const [constParameterPointer] tests/vb2_load_kernel_tests.c:165:67: style: Parameter 'gptdata' can be declared as pointer to const [constParameterPointer] tests/vb2_load_kernel_tests.c:170:22: style: Parameter 'gpt' can be declared as pointer to const [constParameterPointer] tests/vb2_load_kernel_tests.c:177:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] tests/vb2_load_kernel_tests.c:192:35: style: Parameter 'gpt' can be declared as pointer to const [constParameterPointer] tests/vb2_load_kernel_tests.c:197:67: style: Parameter 'gptdata' can be declared as pointer to const [constParameterPointer] tests/vb2_load_kernel_tests.c:209:58: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] tests/vb2_load_kernel_tests.c:255:30: style: Parameter 'sig' can be declared as pointer to const [constParameterPointer] tests/vb2_load_kernel_tests.c:274:38: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_misc2_tests.c:56:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_BOOT_MODE_NORMAL [valueFlowBailoutIncompleteVar] tests/vb2_misc2_tests.c:26:56: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_misc2_tests.c:31:54: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_misc_tests.c:43:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_SECDATA_FWMP_INIT [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:72:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_EX_READ_RESOURCE_INDEX [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:94:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_context [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:257:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_WORKBUF_ALIGN [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:284:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_GBB_MAJOR_VER [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:374:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_NV_INIT [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:425:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_RECOVERY_DECIDED [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:494:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_FLAG_DEV_MODE_ENABLED [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:652:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_FIRMWARE_FLAGS [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:688:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_CLEAR_TPM_OWNER_REQUEST [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:713:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_FW_RESULT [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:801:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_NV_DISPLAY_REQUEST [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:818:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_BOOT_MODE_MANUAL_RECOVERY [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:903:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_DEV_DEFAULT_BOOT_TARGET_INTERNAL [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:978:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_DEV_BOOT_ALLOWED [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:1077:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_GBB_FLAG_DEV_SCREEN_SHORT_DELAY [valueFlowBailoutIncompleteVar] tests/vb2_misc_tests.c:321:23: style: Variable 'gbbsrc.major_version' is reassigned a value before the old one has been used. [redundantAssignment] tests/vb2_misc_tests.c:318:23: note: gbbsrc.major_version is assigned tests/vb2_misc_tests.c:321:23: note: gbbsrc.major_version is overwritten tests/vb2_misc_tests.c:326:23: style: Variable 'gbbsrc.minor_version' is reassigned a value before the old one has been used. [redundantAssignment] tests/vb2_misc_tests.c:323:23: note: gbbsrc.minor_version is assigned tests/vb2_misc_tests.c:326:23: note: gbbsrc.minor_version is overwritten tests/vb2_misc_tests.c:329:23: style: Variable 'gbbsrc.minor_version' is reassigned a value before the old one has been used. [redundantAssignment] tests/vb2_misc_tests.c:326:23: note: gbbsrc.minor_version is assigned tests/vb2_misc_tests.c:329:23: note: gbbsrc.minor_version is overwritten tests/vb2_misc_tests.c:62:56: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_misc_tests.c:81:55: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_misc_tests.c:346:25: style: Variable 'current_gbb' can be declared as pointer to const [constVariablePointer] tests/vb2_misc_tests.c:1082:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb2_nvstorage_tests.c:74:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_NVDATA_CHANGED [valueFlowBailoutIncompleteVar] tests/vb2_nvstorage_tests.c:83:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_FIRMWARE_WORKBUF_RECOMMENDED_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_nvstorage_tests.c:274:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_NVDATA_V2 [valueFlowBailoutIncompleteVar] tests/vb2_nvstorage_tests.c:71:46: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_nvstorage_tests.c:269:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb2_preamble_fuzzer.c:30:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_RES_FW_VBLOCK [valueFlowBailoutIncompleteVar] tests/vb2_preamble_fuzzer.c:46:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_preamble_fuzzer.c:51:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_preamble_fuzzer.c:21:38: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_recovery_reasons_tests.c:21:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_RECOVERY_GBB_HEADER [valueFlowBailoutIncompleteVar] tests/vb2_rsa_utility_tests.c:24:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SIG_INVALID [valueFlowBailoutIncompleteVar] tests/vb2_rsa_utility_tests.c:113:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb2_secdata_firmware_tests.c:32:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_RECOVERY_DECIDED [valueFlowBailoutIncompleteVar] tests/vb2_secdata_firmware_tests.c:40:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_SECDATA_FIRMWARE_CHANGED [valueFlowBailoutIncompleteVar] tests/vb2_secdata_firmware_tests.c:55:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_secdata_firmware [valueFlowBailoutIncompleteVar] tests/vb2_secdata_firmware_tests.c:163:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb2_secdata_fwmp_tests.c:28:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_SECDATA_FWMP_INIT [valueFlowBailoutIncompleteVar] tests/vb2_secdata_fwmp_tests.c:52:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vb2_secdata_fwmp [valueFlowBailoutIncompleteVar] tests/vb2_secdata_fwmp_tests.c:187:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_NO_SECDATA_FWMP [valueFlowBailoutIncompleteVar] tests/vb2_secdata_fwmp_tests.c:216:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_NO_SECDATA_FWMP [valueFlowBailoutIncompleteVar] tests/vb2_secdata_fwmp_tests.c:42:56: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] tests/vb2_secdata_fwmp_tests.c:246:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb2_secdata_kernel_tests.c:33:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_RECOVERY_DECIDED [valueFlowBailoutIncompleteVar] tests/vb2_secdata_kernel_tests.c:42:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SD_STATUS_SECDATA_KERNEL_INIT [valueFlowBailoutIncompleteVar] tests/vb2_secdata_kernel_tests.c:50:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_CONTEXT_SECDATA_KERNEL_CHANGED [valueFlowBailoutIncompleteVar] tests/vb2_secdata_kernel_tests.c:67:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_KERNEL_MIN_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_secdata_kernel_tests.c:98:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_KERNEL_SIZE_V10 [valueFlowBailoutIncompleteVar] tests/vb2_secdata_kernel_tests.c:169:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_KERNEL_SIZE_V02 [valueFlowBailoutIncompleteVar] tests/vb2_secdata_kernel_tests.c:201:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_secdata_kernel_tests.c:315:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SECDATA_KERNEL_VERSIONS [valueFlowBailoutIncompleteVar] tests/vb2_secdata_kernel_tests.c:39:47: style: Parameter 's' can be declared as pointer to const [constParameterPointer] tests/vb2_secdata_kernel_tests.c:348:26: style: Parameter 'argv' can be declared as const array [constParameter] tests/vb2_sha256_x86_tests.c:29:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_sha256_x86_tests.c:99:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA256 [valueFlowBailoutIncompleteVar] tests/vb2_sha256_x86_tests.c:121:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable bit_SHA [valueFlowBailoutIncompleteVar] tests/vb2_sha256_x86_tests.c:128:9: warning: If memory allocation fails, then there is a possible null pointer dereference: long_msg [nullPointerOutOfMemory] tests/vb2_sha256_x86_tests.c:127:28: note: Assuming allocation function fails tests/vb2_sha256_x86_tests.c:127:13: note: Assignment 'long_msg=(char*)malloc(1000001)', assigned value is 0 tests/vb2_sha256_x86_tests.c:128:9: note: Null pointer dereference tests/vb2_sha256_x86_tests.c:129:2: warning: If memory allocation fails, then there is a possible null pointer dereference: long_msg [nullPointerOutOfMemory] tests/vb2_sha256_x86_tests.c:127:28: note: Assuming allocation function fails tests/vb2_sha256_x86_tests.c:127:13: note: Assignment 'long_msg=(char*)malloc(1000001)', assigned value is 0 tests/vb2_sha256_x86_tests.c:129:2: note: Null pointer dereference tests/vb2_sha_api_tests.c:28:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SUCCESS [valueFlowBailoutIncompleteVar] tests/vb2_sha_api_tests.c:36:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA1 [valueFlowBailoutIncompleteVar] tests/vb2_sha_api_tests.c:52:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA1_DIGEST_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_sha_api_tests.c:77:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA1 [valueFlowBailoutIncompleteVar] tests/vb2_sha_api_tests.c:108:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA1 [valueFlowBailoutIncompleteVar] tests/vb2_sha_api_tests.c:128:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA512_DIGEST_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_sha_api_tests.c:33:56: style: Parameter 'dc' can be declared as pointer to const [constParameterPointer] tests/vb2_sha_tests.c:19:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA1_DIGEST_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_sha_tests.c:49:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA256_DIGEST_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_sha_tests.c:105:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA512_DIGEST_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_sha_tests.c:135:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_SHA512_DIGEST_SIZE [valueFlowBailoutIncompleteVar] tests/vb2_sha_tests.c:197:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_HASH_SHA1 [valueFlowBailoutIncompleteVar] tests/vb2_sha_tests.c:252:9: warning: If memory allocation fails, then there is a possible null pointer dereference: long_msg [nullPointerOutOfMemory] tests/vb2_sha_tests.c:251:28: note: Assuming allocation function fails tests/vb2_sha_tests.c:251:13: note: Assignment 'long_msg=(char*)malloc(1000001)', assigned value is 0 tests/vb2_sha_tests.c:252:9: note: Null pointer dereference tests/vb2_sha_tests.c:253:2: warning: If memory allocation fails, then there is a possible null pointer dereference: long_msg [nullPointerOutOfMemory] tests/vb2_sha_tests.c:251:28: note: Assuming allocation function fails tests/vb2_sha_tests.c:251:13: note: Assignment 'long_msg=(char*)malloc(1000001)', assigned value is 0 tests/vb2_sha_tests.c:253:2: note: Null pointer dereference tests/verify_kernel.c:32:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNKNOWN [valueFlowBailoutIncompleteVar] tests/verify_kernel.c:46:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ERROR_UNKNOWN [valueFlowBailoutIncompleteVar] tests/verify_kernel.c:77:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] tests/verify_kernel.c:64:25: style: Variable 'kernkey' can be declared as pointer to const [constVariablePointer] utility/crossystem.c:146:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utility/crossystem.c:192:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB_MAX_STRING_PROPERTY [valueFlowBailoutIncompleteVar] utility/crossystem.c:214:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB_MAX_STRING_PROPERTY [valueFlowBailoutIncompleteVar] utility/crossystem.c:236:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB_MAX_STRING_PROPERTY [valueFlowBailoutIncompleteVar] utility/crossystem.c:297:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utility/crossystem.c:291:18: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] utility/crossystem.c:292:25: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] utility/crossystem.c:267:9: style: Variable 'progname' can be declared as pointer to const [constVariablePointer] utility/crossystem.c:289:11: style: Variable 'has_set' can be declared as pointer to const [constVariablePointer] utility/crossystem.c:290:11: style: Variable 'has_expect' can be declared as pointer to const [constVariablePointer] utility/crossystem.c:291:11: style: Variable 'name' can be declared as pointer to const [constVariablePointer] utility/dumpRSAPublicKey.c:33:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utility/dumpRSAPublicKey.c:160:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utility/dumpRSAPublicKey.c:152:9: style: Variable 'progname' can be declared as pointer to const [constVariablePointer] utility/load_kernel_test.c:36:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] utility/load_kernel_test.c:61:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] utility/load_kernel_test.c:106:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable opterr [valueFlowBailoutIncompleteVar] utility/load_kernel_test.c:175:9: warning: If memory allocation fails, then there is a possible null pointer dereference: gbb [nullPointerOutOfMemory] utility/load_kernel_test.c:174:38: note: Assuming allocation function fails utility/load_kernel_test.c:174:8: note: Assignment 'gbb=(struct vb2_gbb_header*)malloc(gbb_size)', assigned value is 0 utility/load_kernel_test.c:175:9: note: Null pointer dereference utility/load_kernel_test.c:176:9: warning: If memory allocation fails, then there is a possible null pointer dereference: gbb [nullPointerOutOfMemory] utility/load_kernel_test.c:174:38: note: Assuming allocation function fails utility/load_kernel_test.c:174:8: note: Assignment 'gbb=(struct vb2_gbb_header*)malloc(gbb_size)', assigned value is 0 utility/load_kernel_test.c:176:9: note: Null pointer dereference utility/load_kernel_test.c:177:2: warning: If memory allocation fails, then there is a possible null pointer dereference: gbb [nullPointerOutOfMemory] utility/load_kernel_test.c:174:38: note: Assuming allocation function fails utility/load_kernel_test.c:174:8: note: Assignment 'gbb=(struct vb2_gbb_header*)malloc(gbb_size)', assigned value is 0 utility/load_kernel_test.c:177:2: note: Null pointer dereference utility/load_kernel_test.c:178:2: warning: If memory allocation fails, then there is a possible null pointer dereference: gbb [nullPointerOutOfMemory] utility/load_kernel_test.c:174:38: note: Assuming allocation function fails utility/load_kernel_test.c:174:8: note: Assignment 'gbb=(struct vb2_gbb_header*)malloc(gbb_size)', assigned value is 0 utility/load_kernel_test.c:178:2: note: Null pointer dereference utility/load_kernel_test.c:179:2: warning: If memory allocation fails, then there is a possible null pointer dereference: gbb [nullPointerOutOfMemory] utility/load_kernel_test.c:174:38: note: Assuming allocation function fails utility/load_kernel_test.c:174:8: note: Assignment 'gbb=(struct vb2_gbb_header*)malloc(gbb_size)', assigned value is 0 utility/load_kernel_test.c:179:2: note: Null pointer dereference utility/load_kernel_test.c:76:2: style:inconclusive: Statements following 'return' will never be executed. [unreachableCode] utility/pad_digest_utility.c:19:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utility/pad_digest_utility.c:40:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_ALG_COUNT [valueFlowBailoutIncompleteVar] utility/signature_digest_utility.c:28:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:57:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable offset [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:86:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_TAG [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:94:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_TAG_RQU_COMMAND [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:100:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:146:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ORD_NV_WriteValue [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:156:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:165:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:173:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:183:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:193:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:205:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:215:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:225:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:232:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:242:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:249:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:256:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:264:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:271:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:278:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:285:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:293:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:302:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:321:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:340:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:358:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:377:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:385:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:400:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:415:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:422:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:436:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_ORD_TakeOwnership [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:497:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable kTpmRequestHeaderLength [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:571:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:676:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_WRITE_INFO [valueFlowBailoutIncompleteVar] utility/tlcl_generator.c:59:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fld [nullPointerOutOfMemory] utility/tlcl_generator.c:55:31: note: Assuming allocation function fails utility/tlcl_generator.c:55:16: note: Assignment 'fld=(struct Field*)calloc(1,sizeof(struct Field))', assigned value is 0 utility/tlcl_generator.c:59:3: note: Null pointer dereference utility/tlcl_generator.c:61:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fld [nullPointerOutOfMemory] utility/tlcl_generator.c:55:31: note: Assuming allocation function fails utility/tlcl_generator.c:55:16: note: Assignment 'fld=(struct Field*)calloc(1,sizeof(struct Field))', assigned value is 0 utility/tlcl_generator.c:61:3: note: Null pointer dereference utility/tlcl_generator.c:62:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fld [nullPointerOutOfMemory] utility/tlcl_generator.c:55:31: note: Assuming allocation function fails utility/tlcl_generator.c:55:16: note: Assignment 'fld=(struct Field*)calloc(1,sizeof(struct Field))', assigned value is 0 utility/tlcl_generator.c:62:3: note: Null pointer dereference utility/tlcl_generator.c:63:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fld [nullPointerOutOfMemory] utility/tlcl_generator.c:55:31: note: Assuming allocation function fails utility/tlcl_generator.c:55:16: note: Assignment 'fld=(struct Field*)calloc(1,sizeof(struct Field))', assigned value is 0 utility/tlcl_generator.c:63:3: note: Null pointer dereference utility/tlcl_generator.c:72:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fld [nullPointerOutOfMemory] utility/tlcl_generator.c:71:31: note: Assuming allocation function fails utility/tlcl_generator.c:71:16: note: Assignment 'fld=(struct Field*)calloc(1,sizeof(struct Field))', assigned value is 0 utility/tlcl_generator.c:72:3: note: Null pointer dereference utility/tlcl_generator.c:72:15: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] utility/tlcl_generator.c:84:35: note: Assuming allocation function fails utility/tlcl_generator.c:84:18: note: Assignment 'cmd=(struct Command*)calloc(1,sizeof(struct Command))', assigned value is 0 utility/tlcl_generator.c:86:23: note: Calling function 'AddInitializedField', 1st argument 'cmd' value is 0 utility/tlcl_generator.c:72:15: note: Null pointer dereference utility/tlcl_generator.c:73:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] utility/tlcl_generator.c:84:35: note: Assuming allocation function fails utility/tlcl_generator.c:84:18: note: Assignment 'cmd=(struct Command*)calloc(1,sizeof(struct Command))', assigned value is 0 utility/tlcl_generator.c:86:23: note: Calling function 'AddInitializedField', 1st argument 'cmd' value is 0 utility/tlcl_generator.c:73:3: note: Null pointer dereference utility/tlcl_generator.c:74:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fld [nullPointerOutOfMemory] utility/tlcl_generator.c:71:31: note: Assuming allocation function fails utility/tlcl_generator.c:71:16: note: Assignment 'fld=(struct Field*)calloc(1,sizeof(struct Field))', assigned value is 0 utility/tlcl_generator.c:74:3: note: Null pointer dereference utility/tlcl_generator.c:75:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fld [nullPointerOutOfMemory] utility/tlcl_generator.c:71:31: note: Assuming allocation function fails utility/tlcl_generator.c:71:16: note: Assignment 'fld=(struct Field*)calloc(1,sizeof(struct Field))', assigned value is 0 utility/tlcl_generator.c:75:3: note: Null pointer dereference utility/tlcl_generator.c:76:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fld [nullPointerOutOfMemory] utility/tlcl_generator.c:71:31: note: Assuming allocation function fails utility/tlcl_generator.c:71:16: note: Assignment 'fld=(struct Field*)calloc(1,sizeof(struct Field))', assigned value is 0 utility/tlcl_generator.c:76:3: note: Null pointer dereference utility/tlcl_generator.c:77:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fld [nullPointerOutOfMemory] utility/tlcl_generator.c:71:31: note: Assuming allocation function fails utility/tlcl_generator.c:71:16: note: Assignment 'fld=(struct Field*)calloc(1,sizeof(struct Field))', assigned value is 0 utility/tlcl_generator.c:77:3: note: Null pointer dereference utility/tlcl_generator.c:78:3: warning: If memory allocation fails, then there is a possible null pointer dereference: fld [nullPointerOutOfMemory] utility/tlcl_generator.c:71:31: note: Assuming allocation function fails utility/tlcl_generator.c:71:16: note: Assignment 'fld=(struct Field*)calloc(1,sizeof(struct Field))', assigned value is 0 utility/tlcl_generator.c:78:3: note: Null pointer dereference utility/tlcl_generator.c:85:3: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [nullPointerOutOfMemory] utility/tlcl_generator.c:84:35: note: Assuming allocation function fails utility/tlcl_generator.c:84:18: note: Assignment 'cmd=(struct Command*)calloc(1,sizeof(struct Command))', assigned value is 0 utility/tlcl_generator.c:85:3: note: Null pointer dereference utility/tpmc.c:117:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tpm_error_table [valueFlowBailoutIncompleteVar] utility/tpmc.c:173:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utility/tpmc.c:217:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utility/tpmc.c:230:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_MAX_COMMAND_SIZE [valueFlowBailoutIncompleteVar] utility/tpmc.c:274:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_PCR_DIGEST [valueFlowBailoutIncompleteVar] utility/tpmc.c:297:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_PCR_DIGEST [valueFlowBailoutIncompleteVar] utility/tpmc.c:320:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utility/tpmc.c:345:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utility/tpmc.c:363:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utility/tpmc.c:379:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utility/tpmc.c:471:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utility/tpmc.c:513:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIx64 [valueFlowBailoutIncompleteVar] utility/tpmc.c:559:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TPM_AUTH_DATA_LEN [valueFlowBailoutIncompleteVar] utility/tpmc.c:675:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] utility/tpmc.c:486:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] utility/tpmc.c:266:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] utility/tpmc.c:489:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] utility/tpmc.c:698:7: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] utility/tpmc.c:525:62: style: Parameter 'firmware_package' can be declared as pointer to const [constParameterPointer] utility/tpmc.c:665:9: style: Variable 'progname' can be declared as pointer to const [constVariablePointer] utility/verify_data.c:32:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VB2_VERIFY_DIGEST_WORKBUF_BYTES [valueFlowBailoutIncompleteVar] cgpt/cgpt_show.c:34:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [ctunullpointerOutOfMemory] cgpt/cgpt_show.c:63:23: note: Assuming allocation function fails cgpt/cgpt_show.c:63:23: note: Assignment 'buf=malloc(n*3-1+3)', assigned value is 0 cgpt/cgpt_show.c:64:12: note: Calling function RawDump, 3rd argument is null cgpt/cgpt_show.c:34:3: note: Dereferencing argument buf that is null firmware/lib/tpm_lite/tlcl.c:629:45: error: Null pointer dereference: data [ctunullpointer] firmware/lib/tpm_lite/tlcl.c:684:18: note: Calling function TlclWrite, 2nd argument is null firmware/lib/tpm_lite/tlcl.c:629:45: note: Dereferencing argument data that is null utility/tlcl_generator.c:72:15: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [ctunullpointerOutOfMemory] utility/tlcl_generator.c:84:35: note: Assuming allocation function fails utility/tlcl_generator.c:84:18: note: Assignment 'cmd=(struct Command*)calloc(1,sizeof(struct Command))', assigned value is 0 utility/tlcl_generator.c:86:22: note: Calling function AddInitializedField, 1st argument is null utility/tlcl_generator.c:72:15: note: Dereferencing argument cmd that is null diff: head cgpt/cgpt_show.c:34:3: warning: If memory allocation fails, then there is a possible null pointer dereference: buf [ctunullpointerOutOfMemory] cgpt/cgpt_show.c:63:23: note: Assuming allocation function fails cgpt/cgpt_show.c:63:23: note: Assignment 'buf=malloc(n*3-1+3)', assigned value is 0 cgpt/cgpt_show.c:64:12: note: Calling function RawDump, 3rd argument is null cgpt/cgpt_show.c:34:3: note: Dereferencing argument buf that is null head firmware/2lib/2hmac.c:24:18: style: Boolean result is used in bitwise operation. Clarify expression with parentheses. [clarifyCondition] 2.17.0 futility/vb1_helper.c:449:16: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] futility/vb1_helper.c:447:23: note: Assuming allocation function fails futility/vb1_helper.c:447:23: note: Assignment 'outbuf=calloc(outsize,1)', assigned value is 0 futility/vb1_helper.c:449:16: note: Null pointer addition head futility/vb1_helper.c:449:16: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] futility/vb1_helper.c:447:23: note: Assuming allocation function fails futility/vb1_helper.c:447:23: note: Assignment 'outbuf=calloc(outsize,1)', assigned value is 0 futility/vb1_helper.c:449:16: note: Null pointer addition 2.17.0 host/arch/x86/lib/crossystem_arch.c:503:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 host/arch/x86/lib/crossystem_arch.c:533:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 host/arch/x86/lib/crossystem_arch.c:594:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 host/arch/x86_64/lib/crossystem_arch.c:503:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 host/arch/x86_64/lib/crossystem_arch.c:533:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 host/arch/x86_64/lib/crossystem_arch.c:594:20: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 host/lib/signature_digest.c:32:11: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] host/lib/signature_digest.c:30:21: note: Assuming allocation function fails host/lib/signature_digest.c:30:21: note: Assignment 'p=malloc(digestinfo_size+digest_size)', assigned value is 0 host/lib/signature_digest.c:32:11: note: Null pointer addition head host/lib/signature_digest.c:32:11: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] host/lib/signature_digest.c:30:21: note: Assuming allocation function fails host/lib/signature_digest.c:30:21: note: Assignment 'p=malloc(digestinfo_size+digest_size)', assigned value is 0 host/lib/signature_digest.c:32:11: note: Null pointer addition head tests/vb21_host_common2_tests.c:161:19: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:123:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:123:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:124:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:161:19: note: Null pointer dereference head tests/vb21_host_common2_tests.c:224:20: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sig2 [nullPointerOutOfMemory] tests/vb21_host_common2_tests.c:187:15: note: Assuming allocation function fails tests/vb21_host_common2_tests.c:187:15: note: Assignment 'buf2=malloc(size)', assigned value is 0 tests/vb21_host_common2_tests.c:188:9: note: Assignment 'sig2=(struct vb21_signature*)buf2', assigned value is 0 tests/vb21_host_common2_tests.c:224:20: note: Null pointer dereference 2.17.0 tests/vb21_host_sig_tests.c:123:13: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb21_host_sig_tests.c:122:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:122:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:123:13: note: Null pointer addition head tests/vb21_host_sig_tests.c:123:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb21_host_sig_tests.c:122:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:122:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:123:13: note: Null pointer addition 2.17.0 tests/vb21_host_sig_tests.c:128:38: error:inconclusive: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb21_host_sig_tests.c:122:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:122:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:128:38: note: Null pointer addition head tests/vb21_host_sig_tests.c:128:38: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb21_host_sig_tests.c:122:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:122:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:128:38: note: Null pointer addition 2.17.0 tests/vb21_host_sig_tests.c:140:13: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb21_host_sig_tests.c:139:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:139:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:140:13: note: Null pointer addition head tests/vb21_host_sig_tests.c:140:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb21_host_sig_tests.c:139:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:139:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:140:13: note: Null pointer addition 2.17.0 tests/vb21_host_sig_tests.c:146:38: error:inconclusive: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb21_host_sig_tests.c:139:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:139:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:146:38: note: Null pointer addition head tests/vb21_host_sig_tests.c:146:38: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb21_host_sig_tests.c:139:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:139:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:146:38: note: Null pointer addition 2.17.0 tests/vb21_host_sig_tests.c:149:39: error:inconclusive: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb21_host_sig_tests.c:139:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:139:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:149:39: note: Null pointer addition head tests/vb21_host_sig_tests.c:149:39: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb21_host_sig_tests.c:139:14: note: Assuming allocation function fails tests/vb21_host_sig_tests.c:139:14: note: Assignment 'buf=calloc(1,bufsize)', assigned value is 0 tests/vb21_host_sig_tests.c:149:39: note: Null pointer addition 2.17.0 tests/vb2_common2_tests.c:112:20: error:inconclusive: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb2_common2_tests.c:80:23: note: Assuming allocation function fails tests/vb2_common2_tests.c:80:23: note: Assignment 'buf=malloc(size)', assigned value is 0 tests/vb2_common2_tests.c:112:20: note: Null pointer addition head tests/vb2_common2_tests.c:112:20: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] tests/vb2_common2_tests.c:80:23: note: Assuming allocation function fails tests/vb2_common2_tests.c:80:23: note: Assignment 'buf=malloc(size)', assigned value is 0 tests/vb2_common2_tests.c:112:20: note: Null pointer addition head tests/vb2_common3_tests.c:102:36: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:45:35: note: Assuming allocation function fails tests/vb2_common3_tests.c:45:6: note: Assignment 'h=(struct vb2_keyblock*)malloc(hsize+2048)', assigned value is 0 tests/vb2_common3_tests.c:102:36: note: Null pointer dereference head tests/vb2_common3_tests.c:457:26: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:457:26: note: Null pointer dereference head tests/vb2_common3_tests.c:464:26: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:464:26: note: Null pointer dereference head tests/vb2_common3_tests.c:472:26: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:472:26: note: Null pointer dereference head tests/vb2_common3_tests.c:481:30: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:481:30: note: Null pointer dereference head tests/vb2_common3_tests.c:488:30: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:488:30: note: Null pointer dereference head tests/vb2_common3_tests.c:496:30: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: h [nullPointerOutOfMemory] tests/vb2_common3_tests.c:375:39: note: Assuming allocation function fails tests/vb2_common3_tests.c:375:3: note: Assignment 'h=(struct vb2_kernel_preamble*)malloc(hsize+16384)', assigned value is 0 tests/vb2_common3_tests.c:496:30: note: Null pointer dereference head utility/tlcl_generator.c:72:15: warning: If memory allocation fails, then there is a possible null pointer dereference: cmd [ctunullpointerOutOfMemory] utility/tlcl_generator.c:84:35: note: Assuming allocation function fails utility/tlcl_generator.c:84:18: note: Assignment 'cmd=(struct Command*)calloc(1,sizeof(struct Command))', assigned value is 0 utility/tlcl_generator.c:86:22: note: Calling function AddInitializedField, 1st argument is null utility/tlcl_generator.c:72:15: note: Dereferencing argument cmd that is null DONE