2025-07-04 17:54 ftp://ftp.de.debian.org/debian/pool/main/m/mdbtools/mdbtools_1.0.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --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 -j6 platform: Linux-6.1.0-37-amd64-x86_64-with-glibc2.36 python: 3.11.2 client-version: 1.3.67 compiler: g++ (Debian 12.2.0-14+deb12u1) 12.2.0 cppcheck: head 2.17.0 head-info: 9b11b6b (2025-07-04 16:03:30 +0200) count: 575 584 elapsed-time: 1.1 1.1 head-timing-info: old-timing-info: head results: mdbtools-1.0.1/src/extras/mdbsupport.c:8:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/extras/mdb-dump.c:33:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/extras/mdbsupport.c:13:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/extras/mdbsupport.c:19:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/fuzz/fuzz_mdb.c:4:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_NOFLAGS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/extras/mdbsupport.c:16:25: style: Parameter 's' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/catalog.c:92:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbCatalogEntry [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/catalog.c:194:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_ANY [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/dump.c:36:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/data.c:262:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_MEMO_OVERHEAD [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/data.c:291:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_NUMERIC [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/data.c:351:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbField [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/data.c:385:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_BOOL [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/data.c:419:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/data.c:464:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_INDEX_SCAN [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/data.c:518:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_BIND_SIZE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/data.c:573:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_DEBUG_OLE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/data.c:607:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_DEBUG_OLE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/data.c:671:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_MEMO_OVERHEAD [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/data.c:770:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_MEMO_OVERHEAD [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/data.c:955:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_BRACES_4_2_2_8 [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/data.c:961:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_BRACES_4_2_2_8 [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/data.c:1064:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/catalog.c:189:19: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/file.c:93:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/file.c:127:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbHandle [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/file.c:213:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/file.c:239:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/file.c:303:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbHandle [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/file.c:358:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/file.c:395:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_PGSIZE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/backend.c:278:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_NUMERIC [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/backend.c:297:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TLS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/backend.c:332:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_SHEXP_DROPTABLE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/backend.c:433:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbBackend [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/backend.c:699:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_IDX_UNIQUE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/backend.c:776:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_TABLE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/backend.c:917:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_SHEXP_DROPTABLE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/backend.c:1125:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_TABLE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/backend.c:1165:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_OLE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/file.c:215:14: style: Condition 'file==NULL' is always true [knownConditionTrueFalse] mdbtools-1.0.1/src/libmdb/file.c:209:18: note: Assignment 'file=NULL', assigned value is 0 mdbtools-1.0.1/src/libmdb/file.c:215:14: note: Condition 'file==NULL' is always true mdbtools-1.0.1/src/libmdb/file.c:85:9: style: Variable 'mdbpath' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/file.c:245:11: style: Variable 'mode' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/file.c:416:20: style: Variable 'u8_buf' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/file.c:428:20: style: Variable 'u8_buf' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/file.c:437:20: style: Variable 'u8_buf' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/file.c:454:20: style: Variable 'u8_buf' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/file.c:471:20: style: Variable 'u8_buf' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/file.c:498:28: style: Parameter 'mdb' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/file.c:377:19: portability: 'pg_buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mdbtools-1.0.1/src/libmdb/iconv.c:360:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE_MASK [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/like.c:39:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_DEBUG_LIKE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/fakeglib.c:164:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_STR_DELIMITERS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/fakeglib.c:183:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/fakeglib.c:190:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GString [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/fakeglib.c:249:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GError [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/fakeglib.c:352:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GHashTable [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/fakeglib.c:390:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GPtrArray [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/fakeglib.c:425:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GList [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/fakeglib.c:496:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable long_name [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/fakeglib.c:521:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GOptionContext [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/fakeglib.c:533:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/map.c:70:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/map.c:97:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/map.c:124:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/map.c:70:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mdbtools-1.0.1/src/libmdb/map.c:25:17: style: Variable 'usage_bitmap' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/map.c:63:18: style: Variable 'usage_bitmap' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/map.c:101:29: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/index.c:249:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbIndex [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:420:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:516:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_TEXT [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:671:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbIndexPage [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:692:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_PAGE_LEAF [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:734:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_MAX_INDEX_DEPTH [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:969:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:1005:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_EQUAL [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:1111:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_TABLE_SCAN [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:1119:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_USE_INDEX [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/money.c:40:38: style: Parameter 'mdb' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/money.c:77:40: style: Parameter 'mdb' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/money.c:102:74: style: Parameter 'multiplier' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/money.c:104:16: style: Variable 'number' can be declared as const array [constVariable] mdbtools-1.0.1/src/libmdb/money.c:132:45: style: Parameter 'array' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/options.c:41:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/options.c:62:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/options.c:51:8: style: Variable 'opt' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/props.c:38:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_DEBUG_PROPS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/props.c:87:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbProperties [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/props.c:115:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_DEBUG_PROPS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/props.c:190:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_DEBUG_PROPS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/data.c:521:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mdbtools-1.0.1/src/libmdb/data.c:530:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mdbtools-1.0.1/src/libmdb/props.c:160:25: style: Parameter 'key' can be declared as pointer to const. However it seems that 'print_keyvalue' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mdbtools-1.0.1/src/libmdb/props.c:168:36: note: You might need to cast the function pointer here mdbtools-1.0.1/src/libmdb/props.c:160:25: note: Parameter 'key' can be declared as pointer to const mdbtools-1.0.1/src/libmdb/props.c:160:39: style: Parameter 'value' can be declared as pointer to const. However it seems that 'print_keyvalue' is a callback function, if 'value' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mdbtools-1.0.1/src/libmdb/props.c:168:36: note: You might need to cast the function pointer here mdbtools-1.0.1/src/libmdb/props.c:160:39: note: Parameter 'value' can be declared as pointer to const mdbtools-1.0.1/src/libmdb/props.c:107:13: style: Variable 'record_len' is assigned a value that is never used. [unreadVariable] mdbtools-1.0.1/src/libmdb/data.c:518:3: warning: If memory allocation fails, then there is a possible null pointer dereference: bound_values [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/data.c:515:30: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/data.c:515:30: note: Assignment 'bound_values=calloc(table->num_cols,sizeof(char*))', assigned value is 0 mdbtools-1.0.1/src/libmdb/data.c:518:3: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/data.c:519:37: warning: If memory allocation fails, then there is a possible null pointer dereference: bound_values [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/data.c:515:30: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/data.c:515:30: note: Assignment 'bound_values=calloc(table->num_cols,sizeof(char*))', assigned value is 0 mdbtools-1.0.1/src/libmdb/data.c:519:37: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/data.c:679:9: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/data.c:672:23: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/data.c:672:23: note: Assignment 'result=malloc(MDB_BIND_SIZE*64)', assigned value is 0 mdbtools-1.0.1/src/libmdb/data.c:679:9: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/data.c:116:52: style: Parameter 'col_name' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/data.c:218:32: style: Parameter 'null_mask' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/data.c:232:32: style: Parameter 'mdb' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/data.c:246:31: style: Parameter 'mdb' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/data.c:540:33: style: Parameter 'col' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/data.c:879:27: style: Parameter 't' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/data.c:940:31: style: Parameter 'mdb' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/data.c:1107:35: style: Parameter 'col' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/data.c:337:36: style: Variable 'lookupflag' is assigned a value that is never used. [unreadVariable] mdbtools-1.0.1/src/libmdb/rc4.c:31:72: style: Parameter 'key_data_ptr' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/stats.c:36:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbStatistics [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/stats.c:66:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/sargs.c:47:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_LIKE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/sargs.c:81:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_INT [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/sargs.c:143:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/sargs.c:200:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_OR [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/sargs.c:230:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_ISNULL [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/sargs.c:279:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable colnum [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/sargs.c:356:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbSarg [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/stats.c:62:27: style: Parameter 'mdb' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/sargs.c:274:39: style: Parameter 'fields' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/sargs.c:362:52: style: Parameter 'colname' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/table.c:394:27: error: There is an unknown macro here somewhere. Configuration is required. If G_GUINT32_FORMAT is a macro then please configure it. [unknownMacro] mdbtools-1.0.1/src/libmdb/version.c:23:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_VERSION_NO [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/worktable.c:30:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbColumn [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/worktable.c:57:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbCatalogEntry [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/worktable.c:77:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbColumn [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/worktable.c:28:42: style: Parameter 'col_name' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/worktable.c:51:45: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/iconv.c:99:9: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/iconv.c:95:24: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/iconv.c:95:24: note: Assignment 'w=malloc((len_in/2+1)*sizeof(wchar_t))', assigned value is 0 mdbtools-1.0.1/src/libmdb/iconv.c:99:9: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/iconv.c:101:5: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/iconv.c:95:24: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/iconv.c:95:24: note: Assignment 'w=malloc((len_in/2+1)*sizeof(wchar_t))', assigned value is 0 mdbtools-1.0.1/src/libmdb/iconv.c:101:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/iconv.c:109:28: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/iconv.c:95:24: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/iconv.c:95:24: note: Assignment 'w=malloc((len_in/2+1)*sizeof(wchar_t))', assigned value is 0 mdbtools-1.0.1/src/libmdb/iconv.c:109:28: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/iconv.c:196:61: error: Uninitialized variable: &count [uninitvar] mdbtools-1.0.1/src/libmdb/iconv.c:332:18: style: Variable 'iconv_code' is assigned a value that is never used. [unreadVariable] mdbtools-1.0.1/src/libmdb/iconv.c:333:13: style: Variable 'iconv_code' is assigned a value that is never used. [unreadVariable] mdbtools-1.0.1/src/odbc/getproperties.c:28:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ODBCINSTPROPERTY [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/connectparams.c:96:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TLS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/write.c:85:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/write.c:213:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_DEBUG_ROW [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/write.c:316:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable is_null [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/write.c:346:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable is_fixed [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/write.c:402:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable is_fixed [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/connectparams.c:131:11: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] mdbtools-1.0.1/src/odbc/connectparams.c:129:11: note: outer condition: p mdbtools-1.0.1/src/odbc/connectparams.c:131:11: note: identical inner condition: p mdbtools-1.0.1/src/libmdb/write.c:467:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable is_null [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/write.c:491:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_DEBUG_WRITE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/write.c:527:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_DEBUG_WRITE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/write.c:542:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbIndexChain [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/write.c:563:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable colnum [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/write.c:606:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/write.c:715:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/write.c:786:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_DEBUG_WRITE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/write.c:860:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/connectparams.c:136:11: style: Condition 'p' is always true [knownConditionTrueFalse] mdbtools-1.0.1/src/odbc/connectparams.c:209:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/odbc/connectparams.c:209:14: style: Variable 'q' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/odbc/connectparams.c:241:10: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/odbc/connectparams.c:241:14: style: Variable 'q' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/odbc/connectparams.c:288:29: style: Parameter 'key' can be declared as pointer to const. However it seems that 'visit' is a callback function, if 'key' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mdbtools-1.0.1/src/odbc/connectparams.c:200:41: note: You might need to cast the function pointer here mdbtools-1.0.1/src/odbc/connectparams.c:288:29: note: Parameter 'key' can be declared as pointer to const mdbtools-1.0.1/src/odbc/connectparams.c:288:43: style: Parameter 'value' can be declared as pointer to const. However it seems that 'visit' is a callback function, if 'value' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mdbtools-1.0.1/src/odbc/connectparams.c:200:41: note: You might need to cast the function pointer here mdbtools-1.0.1/src/odbc/connectparams.c:288:43: note: Parameter 'value' can be declared as pointer to const mdbtools-1.0.1/src/libmdb/index.c:723:11: style: Condition '!passed' is always true [knownConditionTrueFalse] mdbtools-1.0.1/src/libmdb/index.c:683:17: note: Assignment 'passed=0', assigned value is 0 mdbtools-1.0.1/src/libmdb/index.c:692:20: note: Assuming condition is false mdbtools-1.0.1/src/libmdb/index.c:723:11: note: Condition '!passed' is always true mdbtools-1.0.1/src/libmdb/index.c:317:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mdbtools-1.0.1/src/libmdb/index.c:212:22: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/index.c:346:16: style: Variable 'col' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/odbc/odbcw.c:85:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:388:8: style: Variable 'transtbl' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/odbc/odbcw.c:111:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:431:33: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbcw.c:141:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:942:34: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbcw.c:162:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_COLUMN_LABEL [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:942:51: style: Parameter 'idx' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbcw.c:192:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:967:13: style: Variable 'col' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/odbc/odbcw.c:208:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:997:11: style: Variable 'sarg' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/odbc/odbcw.c:232:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbcw.c:253:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_MAX_STATEMENT_LEN [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/index.c:611:10: style: Variable 'len' is assigned a value that is never used. [unreadVariable] mdbtools-1.0.1/src/libmdb/index.c:820:16: style: Variable 'idx_start' is assigned a value that is never used. [unreadVariable] mdbtools-1.0.1/src/libmdb/index.c:1097:11: style: Variable 'cost' is assigned a value that is never used. [unreadVariable] mdbtools-1.0.1/src/odbc/odbcw.c:44:9: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] mdbtools-1.0.1/src/odbc/odbcw.c:40:24: note: Assuming allocation function fails mdbtools-1.0.1/src/odbc/odbcw.c:40:24: note: Assignment 'w=malloc((_in_count+1)*sizeof(wchar_t))', assigned value is 0 mdbtools-1.0.1/src/odbc/odbcw.c:44:9: note: Null pointer dereference mdbtools-1.0.1/src/odbc/odbcw.c:46:5: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] mdbtools-1.0.1/src/odbc/odbcw.c:40:24: note: Assuming allocation function fails mdbtools-1.0.1/src/odbc/odbcw.c:40:24: note: Assignment 'w=malloc((_in_count+1)*sizeof(wchar_t))', assigned value is 0 mdbtools-1.0.1/src/odbc/odbcw.c:46:5: note: Null pointer dereference mdbtools-1.0.1/src/odbc/odbcw.c:54:36: warning: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] mdbtools-1.0.1/src/odbc/odbcw.c:40:24: note: Assuming allocation function fails mdbtools-1.0.1/src/odbc/odbcw.c:40:24: note: Assignment 'w=malloc((_in_count+1)*sizeof(wchar_t))', assigned value is 0 mdbtools-1.0.1/src/odbc/odbcw.c:54:36: note: Null pointer dereference mdbtools-1.0.1/src/odbc/odbcw.c:90:5: style: Variable 'l' is assigned a value that is never used. [unreadVariable] mdbtools-1.0.1/src/odbc/unittest.c:44:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_MAX_MESSAGE_LENGTH [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/unittest.c:62:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/unittest.c:41:52: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/fakeglib.c:341:20: style: Condition '!found' is always true [knownConditionTrueFalse] mdbtools-1.0.1/src/libmdb/fakeglib.c:339:13: note: Assuming that condition 'found' is not redundant mdbtools-1.0.1/src/libmdb/fakeglib.c:341:20: note: Condition '!found' is always true mdbtools-1.0.1/src/libmdb/fakeglib.c:407:20: style: Condition '!found' is always true [knownConditionTrueFalse] mdbtools-1.0.1/src/libmdb/fakeglib.c:405:13: note: Assuming that condition 'found' is not redundant mdbtools-1.0.1/src/libmdb/fakeglib.c:407:20: note: Condition '!found' is always true mdbtools-1.0.1/src/libmdb/fakeglib.c:533:31: error: Allocation with g_option_context_get_help, fprintf doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/libmdb/fakeglib.c:42:12: warning: If memory allocation fails, then there is a possible null pointer dereference: dst [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:41:23: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:41:23: note: Assignment 'dst=malloc(len)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:42:12: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:65:9: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:61:17: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:61:17: note: Assignment 'ret=calloc(components,sizeof(char*))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:65:9: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:68:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:61:17: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:61:17: note: Assignment 'ret=calloc(components,sizeof(char*))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:68:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:96:24: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:94:17: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:94:17: note: Assignment 'ret=malloc(len+1)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:96:24: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:104:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:94:17: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:94:17: note: Assignment 'ret=malloc(len+1)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:99:17: note: Assuming condition is false mdbtools-1.0.1/src/libmdb/fakeglib.c:104:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:191:5: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:190:26: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:190:26: note: Assignment 'str=calloc(1,sizeof(GString))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:191:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:192:5: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:190:26: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:190:26: note: Assignment 'str=calloc(1,sizeof(GString))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:192:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:192:23: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:190:26: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:190:26: note: Assignment 'str=calloc(1,sizeof(GString))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:192:23: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:193:5: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:190:26: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:190:26: note: Assignment 'str=calloc(1,sizeof(GString))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:193:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:193:26: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:190:26: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:190:26: note: Assignment 'str=calloc(1,sizeof(GString))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:193:26: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:261:34: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: utf16 [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:254:28: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:254:28: note: Assignment 'utf16=malloc(sizeof(wchar_t)*(wlen+1))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:261:34: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:263:9: warning: If memory allocation fails, then there is a possible null pointer dereference: dst++ [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:256:25: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:256:25: note: Assignment 'utf8=malloc(3*len+1)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:257:18: note: Assignment 'dst=utf8', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:259:16: note: Assuming condition is false mdbtools-1.0.1/src/libmdb/fakeglib.c:263:9: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:292:5: warning: If memory allocation fails, then there is a possible null pointer dereference: lower [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:276:26: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:276:26: note: Assignment 'lower=malloc(len+1)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:292:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:329:5: warning: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:328:26: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:328:26: note: Assignment 'node=calloc(1,sizeof(struct MyNode))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:329:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:330:5: warning: If memory allocation fails, then there is a possible null pointer dereference: node [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:328:26: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:328:26: note: Assignment 'node=calloc(1,sizeof(struct MyNode))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:330:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:353:5: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:352:31: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:352:31: note: Assignment 'table=calloc(1,sizeof(GHashTable))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:353:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:354:5: warning: If memory allocation fails, then there is a possible null pointer dereference: table [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:352:31: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:352:31: note: Assignment 'table=calloc(1,sizeof(GHashTable))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:354:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:391:5: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:390:30: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:390:30: note: Assignment 'array=malloc(sizeof(GPtrArray))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:391:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:392:5: warning: If memory allocation fails, then there is a possible null pointer dereference: array [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:390:30: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:390:30: note: Assignment 'array=malloc(sizeof(GPtrArray))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:392:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:426:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new_list [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:425:29: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:425:29: note: Assignment 'new_list=calloc(1,sizeof(GList))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:426:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:427:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new_list [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:425:29: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:425:29: note: Assignment 'new_list=calloc(1,sizeof(GList))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:427:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:489:19: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:486:24: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:486:24: note: Assignment 'help=malloc(4096)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:488:13: note: p is assigned 'help' here. mdbtools-1.0.1/src/libmdb/fakeglib.c:489:19: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:522:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:521:33: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:521:33: note: Assignment 'ctx=calloc(1,sizeof(GOptionContext))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:522:5: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:549:9: warning: If memory allocation fails, then there is a possible null pointer dereference: short_opts [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:544:30: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:544:30: note: Assignment 'short_opts=calloc(1,len+1)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:549:9: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:552:9: warning: If memory allocation fails, then there is a possible null pointer dereference: long_opts [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:543:38: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:543:38: note: Assignment 'long_opts=calloc(count+1,sizeof(struct option))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:552:9: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:553:9: warning: If memory allocation fails, then there is a possible null pointer dereference: long_opts [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:543:38: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:543:38: note: Assignment 'long_opts=calloc(count+1,sizeof(struct option))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:553:9: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:558:43: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: short_opts [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:544:30: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:544:30: note: Assignment 'short_opts=calloc(1,len+1)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:558:43: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:558:55: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: long_opts [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:543:38: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:543:38: note: Assignment 'long_opts=calloc(count+1,sizeof(struct option))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:558:55: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:588:18: warning: If memory allocation fails, then there is a possible null pointer dereference: *error [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:587:32: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:587:32: note: Assignment '*error=malloc(sizeof(GError))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:588:18: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/fakeglib.c:96:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:94:17: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:94:17: note: Assignment 'ret=malloc(len+1)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:96:36: note: Null pointer addition mdbtools-1.0.1/src/libmdb/fakeglib.c:263:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:256:25: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:256:25: note: Assignment 'utf8=malloc(3*len+1)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:257:18: note: Assignment 'dst=utf8', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:259:16: note: Assuming condition is false mdbtools-1.0.1/src/libmdb/fakeglib.c:263:9: note: Null pointer addition mdbtools-1.0.1/src/libmdb/fakeglib.c:487:22: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:486:24: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:486:24: note: Assignment 'help=malloc(4096)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:487:22: note: Null pointer addition mdbtools-1.0.1/src/libmdb/fakeglib.c:505:56: portability: Passing NULL after the last typed argument to a variadic function leads to undefined behaviour. [varFuncNullUB] mdbtools-1.0.1/src/libmdb/fakeglib.c:85:11: style: Variable 'arg' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/fakeglib.c:401:56: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/fakeglib.c:440:41: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/fakeglib.c:487:11: style: Variable 'end' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/mdb-array.c:38:89: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-count.c:36:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_NONE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-array.c:30:12: style: Variable 'col' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/mdb-array.c:33:6: style: Variable 'delimiter' can be declared as const array [constVariable] mdbtools-1.0.1/src/util/mdb-count.c:46:3: error: Memory leak: opt_context [memleak] mdbtools-1.0.1/src/util/mdb-count.c:58:3: error: Memory leak: opt_context [memleak] mdbtools-1.0.1/src/util/mdb-count.c:64:3: error: Memory leak: opt_context [memleak] mdbtools-1.0.1/src/util/mdb-count.c:70:9: error: Memory leak: table_name [memleak] mdbtools-1.0.1/src/util/mdb-count.c:70:9: error: Memory leak: opt_context [memleak] mdbtools-1.0.1/src/util/mdb-count.c:73:9: error: Memory leak: table_name [memleak] mdbtools-1.0.1/src/util/mdb-count.c:73:9: error: Memory leak: opt_context [memleak] mdbtools-1.0.1/src/util/mdb-count.c:45:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-count.c:50:10: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-count.c:57:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-count.c:27:18: style: Variable 'table' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/mdb-count.c:29:11: style: Variable 'locale' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/mdb-count.c:30:11: style: Variable 'table_name' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/sql/mdbsql.c:59:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:64:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbSQL [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:188:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_NOFLAGS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:203:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbSargNode [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:256:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_NOT [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:273:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_OR [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:291:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_AND [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:430:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_EQUAL [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:457:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_TEXT [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:484:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbSQLColumn [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:509:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:514:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbSQLTable [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:570:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:583:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:597:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_PGSIZE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:650:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_PGSIZE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:732:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_INT [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:766:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_TABLE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:922:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:112:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_NOBRACES_4_2_2_2_6 [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:163:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ERROR [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:185:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:200:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:212:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:226:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_FETCH_NEXT [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:271:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:278:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NO_DATA [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:290:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:298:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:307:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:320:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:335:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:348:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:358:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:371:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:385:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:394:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:413:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:434:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LC_CTYPE_MASK [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:450:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:470:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:478:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ERROR [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:540:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:547:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:573:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ERROR [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:602:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ERROR [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:674:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:763:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_DROP [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:779:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NO_DATA_FOUND [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:827:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ERROR [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:867:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NO_DATA_FOUND [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:903:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ERROR [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:931:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ERROR [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:949:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_DROP [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:970:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ERROR [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:994:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1004:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1015:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1030:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1041:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1050:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1059:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1074:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1093:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_PGSIZE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1190:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1216:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_ERROR [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1659:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_API_SQLALLOCCONNECT [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1766:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQLUINTEGER [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1820:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1832:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_PGSIZE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1911:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1920:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1929:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1938:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1954:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1969:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:1989:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_PGSIZE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:2053:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_SUCCESS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:2099:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_NTS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:2129:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SQL_BIT [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/odbc/odbc.c:2196:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-header.c:45:90: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-header.c:27:11: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] mdbtools-1.0.1/src/util/mdb-header.c:62:20: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-header.c:62:20: note: Assignment 'typesfile=fopen("types.h","w")', assigned value is 0 mdbtools-1.0.1/src/util/mdb-header.c:66:15: note: Calling function 'copy_header', 1st argument 'typesfile' value is 0 mdbtools-1.0.1/src/util/mdb-header.c:27:11: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-header.c:28:11: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] mdbtools-1.0.1/src/util/mdb-header.c:62:20: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-header.c:62:20: note: Assignment 'typesfile=fopen("types.h","w")', assigned value is 0 mdbtools-1.0.1/src/util/mdb-header.c:66:15: note: Calling function 'copy_header', 1st argument 'typesfile' value is 0 mdbtools-1.0.1/src/util/mdb-header.c:28:11: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-header.c:29:11: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] mdbtools-1.0.1/src/util/mdb-header.c:62:20: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-header.c:62:20: note: Assignment 'typesfile=fopen("types.h","w")', assigned value is 0 mdbtools-1.0.1/src/util/mdb-header.c:66:15: note: Calling function 'copy_header', 1st argument 'typesfile' value is 0 mdbtools-1.0.1/src/util/mdb-header.c:29:11: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-header.c:68:11: warning: If resource allocation fails, then there is a possible null pointer dereference: headerfile [nullPointerOutOfResources] mdbtools-1.0.1/src/util/mdb-header.c:63:21: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-header.c:63:21: note: Assignment 'headerfile=fopen("dumptypes.h","w")', assigned value is 0 mdbtools-1.0.1/src/util/mdb-header.c:68:11: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-header.c:70:11: warning: If resource allocation fails, then there is a possible null pointer dereference: cfile [nullPointerOutOfResources] mdbtools-1.0.1/src/util/mdb-header.c:64:16: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-header.c:64:16: note: Assignment 'cfile=fopen("dumptypes.c","w")', assigned value is 0 mdbtools-1.0.1/src/util/mdb-header.c:70:11: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-header.c:71:11: warning: If resource allocation fails, then there is a possible null pointer dereference: cfile [nullPointerOutOfResources] mdbtools-1.0.1/src/util/mdb-header.c:64:16: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-header.c:64:16: note: Assignment 'cfile=fopen("dumptypes.c","w")', assigned value is 0 mdbtools-1.0.1/src/util/mdb-header.c:71:11: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-header.c:40:12: style: Variable 'col' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/mdb-export.c:38:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-export.c:362:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_OLE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/write.c:258:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mdbtools-1.0.1/src/libmdb/write.c:259:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mdbtools-1.0.1/src/libmdb/write.c:260:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mdbtools-1.0.1/src/libmdb/write.c:297:4: warning: %i in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mdbtools-1.0.1/src/libmdb/write.c:272:59: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] mdbtools-1.0.1/src/libmdb/write.c:118:12: style: Variable 'idx' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/write.c:200:13: style: Variable 'col' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/write.c:205:17: style: Variable 'nullmask' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/write.c:308:69: style: Parameter 'fields' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/write.c:335:28: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/write.c:391:28: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/write.c:466:15: style: Variable 'c' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/write.c:495:34: style: Parameter 'entry' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/write.c:497:13: style: Variable 'mdb' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/write.c:508:22: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/write.c:538:19: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/write.c:551:88: style: Parameter 'fields' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/write.c:599:19: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/write.c:601:22: style: Variable 'fmt' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/write.c:640:54: style: Parameter 'row_buffer' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/write.c:774:52: style: Parameter 'new_row' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/util/mdb-import.c:30:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable is_null [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-import.c:74:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-import.c:121:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-import.c:165:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_INT [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-import.c:132:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mdbtools-1.0.1/src/util/mdb-import.c:143:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mdbtools-1.0.1/src/util/mdb-import.c:179:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-import.c:184:10: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-import.c:194:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/sql/mdbsql.c:738:10: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] mdbtools-1.0.1/src/sql/mdbsql.c:437:61: style: Parameter 'constant' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/sql/mdbsql.c:490:42: style: Parameter 'limit' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/sql/mdbsql.c:502:31: style: Parameter 'sql' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/sql/mdbsql.c:507:46: style: Parameter 'func_name' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/sql/mdbsql.c:507:63: style: Parameter 'arg1' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/sql/mdbsql.c:524:16: style: Variable 'c' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/sql/mdbsql.c:525:15: style: Variable 't' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/sql/mdbsql.c:577:31: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/sql/mdbsql.c:707:61: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/util/mdb-parsecsv.c:56:92: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/sql/mdbsql.c:756:11: style: Variable 'found' is assigned a value that is never used. [unreadVariable] mdbtools-1.0.1/src/util/mdb-json.c:81:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-json.c:92:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_TEXT [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-json.c:111:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/backend.c:605:25: style: Condition 'idx->index_type!=1' is always false [knownConditionTrueFalse] mdbtools-1.0.1/src/libmdb/backend.c:596:23: note: Assuming that condition 'idx->index_type==1' is not redundant mdbtools-1.0.1/src/libmdb/backend.c:605:25: note: Condition 'idx->index_type!=1' is always false mdbtools-1.0.1/src/libmdb/backend.c:990:14: warning: If memory allocation fails, then there is a possible null pointer dereference: output_default [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/backend.c:988:37: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/backend.c:988:37: note: Assignment 'output_default=malloc(def_len-1)', assigned value is 0 mdbtools-1.0.1/src/libmdb/backend.c:990:14: note: Null pointer dereference mdbtools-1.0.1/src/libmdb/backend.c:991:7: warning: If memory allocation fails, then there is a possible null pointer dereference: output_default [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/backend.c:988:37: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/backend.c:988:37: note: Assignment 'output_default=malloc(def_len-1)', assigned value is 0 mdbtools-1.0.1/src/libmdb/backend.c:991:7: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-prop.c:41:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_NONE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-prop.c:146:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/libmdb/backend.c:550:46: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/backend.c:910:17: style: Variable 'props' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/backend.c:981:12: style: Variable 'defval' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/libmdb/backend.c:1095:55: style: Parameter 'tabname' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/libmdb/backend.c:1158:27: style: Parameter 'escape_char' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/util/mdb-prop.c:51:3: error: Memory leak: opt_context [memleak] mdbtools-1.0.1/src/util/mdb-prop.c:63:3: error: Memory leak: opt_context [memleak] mdbtools-1.0.1/src/util/mdb-prop.c:73:3: error: Memory leak: opt_context [memleak] mdbtools-1.0.1/src/util/mdb-prop.c:78:3: error: Memory leak: table_name [memleak] mdbtools-1.0.1/src/util/mdb-prop.c:78:3: error: Memory leak: propColName [memleak] mdbtools-1.0.1/src/util/mdb-prop.c:78:3: error: Memory leak: opt_context [memleak] mdbtools-1.0.1/src/util/mdb-prop.c:86:3: error: Memory leak: opt_context [memleak] mdbtools-1.0.1/src/util/mdb-prop.c:103:3: error: Memory leak: opt_context [memleak] mdbtools-1.0.1/src/util/mdb-prop.c:50:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-prop.c:55:10: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-prop.c:62:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-prop.c:30:8: style: Variable 'locale' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/mdb-parsecsv.c:36:11: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assignment 'cfile=fopen(c_filename,"w")', assigned value is 0 mdbtools-1.0.1/src/util/mdb-parsecsv.c:84:16: note: Calling function 'copy_header', 1st argument 'cfile' value is 0 mdbtools-1.0.1/src/util/mdb-parsecsv.c:36:11: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-parsecsv.c:37:11: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assignment 'cfile=fopen(c_filename,"w")', assigned value is 0 mdbtools-1.0.1/src/util/mdb-parsecsv.c:84:16: note: Calling function 'copy_header', 1st argument 'cfile' value is 0 mdbtools-1.0.1/src/util/mdb-parsecsv.c:37:11: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-parsecsv.c:38:11: warning: If resource allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfResources] mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assignment 'cfile=fopen(c_filename,"w")', assigned value is 0 mdbtools-1.0.1/src/util/mdb-parsecsv.c:84:16: note: Calling function 'copy_header', 1st argument 'cfile' value is 0 mdbtools-1.0.1/src/util/mdb-parsecsv.c:38:11: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-parsecsv.c:85:12: warning: If resource allocation fails, then there is a possible null pointer dereference: cfile [nullPointerOutOfResources] mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assignment 'cfile=fopen(c_filename,"w")', assigned value is 0 mdbtools-1.0.1/src/util/mdb-parsecsv.c:85:12: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-parsecsv.c:86:12: warning: If resource allocation fails, then there is a possible null pointer dereference: cfile [nullPointerOutOfResources] mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assignment 'cfile=fopen(c_filename,"w")', assigned value is 0 mdbtools-1.0.1/src/util/mdb-parsecsv.c:86:12: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-parsecsv.c:87:12: warning: If resource allocation fails, then there is a possible null pointer dereference: cfile [nullPointerOutOfResources] mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assignment 'cfile=fopen(c_filename,"w")', assigned value is 0 mdbtools-1.0.1/src/util/mdb-parsecsv.c:87:12: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-parsecsv.c:88:12: warning: If resource allocation fails, then there is a possible null pointer dereference: cfile [nullPointerOutOfResources] mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assignment 'cfile=fopen(c_filename,"w")', assigned value is 0 mdbtools-1.0.1/src/util/mdb-parsecsv.c:88:12: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-parsecsv.c:89:12: warning: If resource allocation fails, then there is a possible null pointer dereference: cfile [nullPointerOutOfResources] mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assignment 'cfile=fopen(c_filename,"w")', assigned value is 0 mdbtools-1.0.1/src/util/mdb-parsecsv.c:89:12: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-parsecsv.c:91:12: warning: If resource allocation fails, then there is a possible null pointer dereference: cfile [nullPointerOutOfResources] mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-parsecsv.c:82:17: note: Assignment 'cfile=fopen(c_filename,"w")', assigned value is 0 mdbtools-1.0.1/src/util/mdb-parsecsv.c:91:12: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-queries.c:78:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_NONE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-queries.c:261:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_QUERY [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-schema.c:30:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_SHEXP_DEFAULT [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-sql.c:70:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-sql.c:162:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_TABLE_SCAN [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-sql.c:339:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_STRING [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-schema.c:70:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-schema.c:75:10: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-schema.c:85:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-schema.c:62:8: style: Variable 'old_locale' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/mdb-json.c:192:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mdbtools-1.0.1/src/util/mdb-json.c:138:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-json.c:143:10: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-json.c:150:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-json.c:118:8: style: Variable 'locale' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/base64.h:13:15: style: Variable 'n' is assigned a value that is never used. [unreadVariable] mdbtools-1.0.1/src/util/mdb-json.c:95:12: style: Variable 'bin_len' is assigned a value that is never used. [unreadVariable] mdbtools-1.0.1/src/util/mdb-tables.c:86:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_TABLE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-ver.c:29:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_OPTION_ARG_NONE [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-ver.c:41:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-ver.c:47:10: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-ver.c:55:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-export.c:206:4: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mdbtools-1.0.1/src/util/mdb-export.c:92:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-export.c:97:10: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-export.c:104:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-export.c:59:8: style: Variable 'locale' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/mdb-export.c:358:174: style: Parameter 'backend_name' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/util/prcat.c:28:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/prdata.c:28:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-tables.c:110:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-tables.c:118:10: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-tables.c:126:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-tables.c:88:8: style: Variable 'locale' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/prdump.c:29:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/prfreemap.c:32:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/prindex.c:34:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/prindex.c:93:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_TEXT [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/prindex.c:133:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MdbIndexChain [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/prfreemap.c:25:5: style: Unused variable: j [unusedVariable] mdbtools-1.0.1/src/util/prindex.c:81:13: style: Variable 'col' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/prole.c:33:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/prole.c:75:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_EQUAL [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/prole.c:71:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mdbtools-1.0.1/src/util/prole.c:72:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mdbtools-1.0.1/src/util/prole.c:73:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mdbtools-1.0.1/src/util/prole.c:66:17: style: Variable 'sargop' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/prole.c:66:26: style: Variable 'sargval' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/prtable.c:31:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/sargtest.c:27:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mdbtools-1.0.1/src/util/sargtest.c:32:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_NOFLAGS [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/sargtest.c:57:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_EQUAL [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/mdb-queries.c:90:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-queries.c:95:10: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-queries.c:111:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-queries.c:45:55: style: Variable 'temp' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/mdb-queries.c:71:8: style: Variable 'locale' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/mdb-queries.c:252:61: style: Parameter 'delimiter' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/util/mdb-queries.c:254:19: style: Variable 'entry' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/mdb-queries.c:281:47: style: Parameter 'query' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/util/updrow.c:38:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/updrow.c:90:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MDB_EQUAL [valueFlowBailoutIncompleteVar] mdbtools-1.0.1/src/util/sargtest.c:52:12: style: Variable 'col' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/sargtest.c:85:23: warning: Uninitialized variable: bound_values [uninitvar] mdbtools-1.0.1/src/util/sargtest.c:64:12: note: Assuming condition is false mdbtools-1.0.1/src/util/sargtest.c:85:23: note: Uninitialized variable: bound_values mdbtools-1.0.1/src/odbc/odbc.c:1338:32: style: Comparing expression of type 'signed int' against value 4294967295. Condition is always false. [compareValueOutOfTypeRangeError] mdbtools-1.0.1/src/util/updrow.c:53:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mdbtools-1.0.1/src/util/updrow.c:54:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mdbtools-1.0.1/src/util/updrow.c:78:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mdbtools-1.0.1/src/util/updrow.c:87:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mdbtools-1.0.1/src/util/updrow.c:88:13: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mdbtools-1.0.1/src/util/updrow.c:29:7: style: Variable 'colval' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/updrow.c:72:8: style: Variable 'sargcol' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/updrow.c:72:18: style: Variable 'sargop' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/updrow.c:72:27: style: Variable 'sargval' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/odbc/odbc.c:132:9: warning: If memory allocation fails, then there is a possible null pointer dereference: _out [nullPointerOutOfMemory] mdbtools-1.0.1/src/odbc/odbc.c:1535:18: note: Assuming allocation function fails mdbtools-1.0.1/src/odbc/odbc.c:1535:18: note: Assignment 'wstr=calloc(len+1,charsize=sizeof(SQLWCHAR))', assigned value is 0 mdbtools-1.0.1/src/odbc/odbc.c:1536:77: note: Calling function '_mdb_odbc_ascii2unicode', 4th argument 'wstr' value is 0 mdbtools-1.0.1/src/odbc/odbc.c:132:9: note: Null pointer dereference mdbtools-1.0.1/src/odbc/odbc.c:132:29: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: w [nullPointerOutOfMemory] mdbtools-1.0.1/src/odbc/odbc.c:120:24: note: Assuming allocation function fails mdbtools-1.0.1/src/odbc/odbc.c:120:24: note: Assignment 'w=malloc(_out_count*sizeof(wchar_t))', assigned value is 0 mdbtools-1.0.1/src/odbc/odbc.c:132:29: note: Null pointer dereference mdbtools-1.0.1/src/odbc/odbc.c:1554:14: style: Local variable 'partsRemain' shadows outer variable [shadowVariable] mdbtools-1.0.1/src/odbc/odbc.c:1503:14: note: Shadowed declaration mdbtools-1.0.1/src/odbc/odbc.c:1554:14: note: Shadow variable mdbtools-1.0.1/src/odbc/odbc.c:178:24: style: Parameter 'szConnStrIn' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:180:24: style: Parameter 'szConnStrOut' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:182:24: style: Parameter 'pcbConnStrOut' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:190:24: style: Parameter 'szCatalogName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:192:24: style: Parameter 'szSchemaName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:194:24: style: Parameter 'szTableName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:196:24: style: Parameter 'szColumnName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:206:24: style: Parameter 'pfSqlType' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:207:24: style: Parameter 'pcbParamDef' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:208:24: style: Parameter 'pibScale' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:209:24: style: Parameter 'pfNullable' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:257:24: style: Parameter 'szPkCatalogName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:259:24: style: Parameter 'szPkSchemaName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:261:24: style: Parameter 'szPkTableName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:263:24: style: Parameter 'szFkCatalogName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:265:24: style: Parameter 'szFkSchemaName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:267:24: style: Parameter 'szFkTableName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:283:24: style: Parameter 'szSqlStrIn' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:285:24: style: Parameter 'szSqlStr' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:287:24: style: Parameter 'pcbSqlStr' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:295:24: style: Parameter 'pcpar' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:304:24: style: Parameter 'pirow' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:312:24: style: Parameter 'szCatalogName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:314:24: style: Parameter 'szSchemaName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:316:24: style: Parameter 'szTableName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:325:24: style: Parameter 'szCatalogName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:327:24: style: Parameter 'szSchemaName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:329:24: style: Parameter 'szProcName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:331:24: style: Parameter 'szColumnName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:340:24: style: Parameter 'szCatalogName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:342:24: style: Parameter 'szSchemaName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:344:24: style: Parameter 'szProcName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:363:24: style: Parameter 'szCatalogName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:365:24: style: Parameter 'szSchemaName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:367:24: style: Parameter 'szTableName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:377:24: style: Parameter 'szDriverDesc' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:379:24: style: Parameter 'pcbDriverDesc' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:380:24: style: Parameter 'szDriverAttributes' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:382:24: style: Parameter 'pcbDrvrAttr' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:407:24: style: Parameter 'pcbValue' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:594:16: style: Variable 'sqlcol' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/odbc/odbc.c:660:16: style: Variable 'sqlcol' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/odbc/odbc.c:784:11: style: Variable 'state' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/odbc/odbc.c:991:18: style: Parameter 'StringLength' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:999:24: style: Parameter 'szCursor' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:1001:24: style: Parameter 'pcbCursor' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:1037:16: style: Variable 'stmt' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/odbc/odbc.c:1046:24: style: Parameter 'szCursor' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:1071:24: style: Parameter 'pcbValue' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:1204:16: style: Variable 'sqlcol' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/odbc/odbc.c:1908:24: style: Parameter 'prgbValue' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:1944:24: style: Parameter 'szCatalogName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:1946:24: style: Parameter 'szSchemaName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:1948:24: style: Parameter 'szTableName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:1959:24: style: Parameter 'szCatalogName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:1961:24: style: Parameter 'szSchemaName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:1963:24: style: Parameter 'szTableName' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:2045:24: style: Parameter 'szDSN' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:2047:24: style: Parameter 'pcbDSN' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:2048:24: style: Parameter 'szDescription' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:2050:24: style: Parameter 'pcbDescription' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:2094:53: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:2125:53: style: Parameter 'col' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:2162:59: style: Parameter 'col' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/odbc/odbc.c:2089:67: warning: Uninitialized variable: tmp [uninitvar] mdbtools-1.0.1/src/odbc/odbc.c:2065:12: note: Assuming condition is false mdbtools-1.0.1/src/odbc/odbc.c:2089:67: note: Uninitialized variable: tmp mdbtools-1.0.1/src/odbc/odbc.c:1244:29: style: Variable '((SQLCHAR*)rgbValue)[1]' is assigned a value that is never used. [unreadVariable] mdbtools-1.0.1/src/odbc/odbc.c:1249:30: style: Variable '((SQLWCHAR*)rgbValue)[1]' is assigned a value that is never used. [unreadVariable] mdbtools-1.0.1/src/odbc/odbc.c:1559:54: style: Variable '((SQLWCHAR*)rgbValue)[charactersToReadThisPart]' is assigned a value that is never used. [unreadVariable] mdbtools-1.0.1/src/odbc/odbc.c:1562:53: style: Variable '((SQLCHAR*)rgbValue)[charactersToReadThisPart]' is assigned a value that is never used. [unreadVariable] mdbtools-1.0.1/src/util/mdb-sql.c:98:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mdbtools-1.0.1/src/util/mdb-sql.c:104:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mdbtools-1.0.1/src/util/mdb-sql.c:119:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mdbtools-1.0.1/src/util/mdb-sql.c:133:12: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mdbtools-1.0.1/src/util/mdb-sql.c:358:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-sql.c:363:10: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-sql.c:372:9: error: Allocation with g_option_context_get_help, fputs doesn't release it. [leakNoVarFunctionCall] mdbtools-1.0.1/src/util/mdb-sql.c:481:5: error: Common realloc mistake: 'mybuf' nulled but not freed upon failure [memleakOnRealloc] mdbtools-1.0.1/src/util/mdb-sql.c:412:2: warning: If memory allocation fails, then there is a possible null pointer dereference: mybuf [nullPointerOutOfMemory] mdbtools-1.0.1/src/util/mdb-sql.c:411:16: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-sql.c:411:16: note: Assignment 'mybuf=malloc(bufsz)', assigned value is 0 mdbtools-1.0.1/src/util/mdb-sql.c:412:2: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-sql.c:423:15: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] mdbtools-1.0.1/src/util/mdb-sql.c:422:12: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-sql.c:422:12: note: Assignment 's=calloc(bufsz,1)', assigned value is 0 mdbtools-1.0.1/src/util/mdb-sql.c:423:15: note: Null pointer dereference mdbtools-1.0.1/src/util/mdb-sql.c:233:10: style: Variable 'sqlcol' is reassigned a value before the old one has been used. [redundantAssignment] mdbtools-1.0.1/src/util/mdb-sql.c:229:11: note: sqlcol is assigned mdbtools-1.0.1/src/util/mdb-sql.c:233:10: note: sqlcol is overwritten mdbtools-1.0.1/src/util/mdb-sql.c:65:22: style: Parameter 'prompt' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/util/mdb-sql.c:97:8: style: Variable 'level1' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/mdb-sql.c:97:17: style: Variable 'level2' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/mdb-sql.c:178:35: style: Parameter 'v' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/util/mdb-sql.c:211:44: style: Parameter 'delimiter' can be declared as pointer to const [constParameterPointer] mdbtools-1.0.1/src/util/mdb-sql.c:214:16: style: Variable 'sqlcol' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/mdb-sql.c:463:10: style: Variable 'fname' can be declared as pointer to const [constVariablePointer] mdbtools-1.0.1/src/util/mdb-sql.c:233:10: style: Variable 'sqlcol' is assigned a value that is never used. [unreadVariable] diff: 2.17.0 mdbtools-1.0.1/src/libmdb/backend.c:195:36: warning: If memory allocation fails, then there is a possible null pointer dereference: value [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/backend.c:260:32: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/backend.c:260:32: note: Assignment 'combined=g_strconcat(schema,"_",name,NULL)', assigned value is 0 mdbtools-1.0.1/src/libmdb/backend.c:261:33: note: Calling function 'quote_generic', 1st argument 'combined' value is 0 mdbtools-1.0.1/src/libmdb/backend.c:195:36: note: Null pointer dereference 2.17.0 mdbtools-1.0.1/src/libmdb/backend.c:198:13: warning: If memory allocation fails, then there is a possible null pointer dereference: (unsigned char*)value++ [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/backend.c:260:32: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/backend.c:260:32: note: Assignment 'combined=g_strconcat(schema,"_",name,NULL)', assigned value is 0 mdbtools-1.0.1/src/libmdb/backend.c:261:33: note: Calling function 'quote_generic', 1st argument 'combined' value is 0 mdbtools-1.0.1/src/libmdb/backend.c:198:13: note: Null pointer dereference 2.17.0 mdbtools-1.0.1/src/libmdb/backend.c:198:34: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mdbtools-1.0.1/src/libmdb/backend.c:260:32: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/backend.c:260:32: note: Assignment 'combined=g_strconcat(schema,"_",name,NULL)', assigned value is 0 mdbtools-1.0.1/src/libmdb/backend.c:261:33: note: Calling function 'quote_generic', 1st argument 'combined' value is 0 mdbtools-1.0.1/src/libmdb/backend.c:198:34: note: Null pointer addition head mdbtools-1.0.1/src/libmdb/fakeglib.c:192:23: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:190:26: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:190:26: note: Assignment 'str=calloc(1,sizeof(GString))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:192:23: note: Null pointer dereference head mdbtools-1.0.1/src/libmdb/fakeglib.c:193:26: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:190:26: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:190:26: note: Assignment 'str=calloc(1,sizeof(GString))', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:193:26: note: Null pointer dereference 2.17.0 mdbtools-1.0.1/src/libmdb/fakeglib.c:263:9: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:256:25: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:256:25: note: Assignment 'utf8=malloc(3*len+1)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:257:18: note: Assignment 'dst=utf8', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:259:16: note: Assuming condition is false mdbtools-1.0.1/src/libmdb/fakeglib.c:263:9: note: Null pointer addition head mdbtools-1.0.1/src/libmdb/fakeglib.c:263:9: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:256:25: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:256:25: note: Assignment 'utf8=malloc(3*len+1)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:257:18: note: Assignment 'dst=utf8', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:259:16: note: Assuming condition is false mdbtools-1.0.1/src/libmdb/fakeglib.c:263:9: note: Null pointer addition 2.17.0 mdbtools-1.0.1/src/libmdb/fakeglib.c:487:22: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:486:24: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:486:24: note: Assignment 'help=malloc(4096)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:487:22: note: Null pointer addition head mdbtools-1.0.1/src/libmdb/fakeglib.c:487:22: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:486:24: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:486:24: note: Assignment 'help=malloc(4096)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:487:22: note: Null pointer addition 2.17.0 mdbtools-1.0.1/src/libmdb/fakeglib.c:506:48: warning: If memory allocation fails, then there is a possible null pointer dereference: long_name [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:503:42: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:503:42: note: Assignment 'long_name=g_strconcat(context->entries[i].long_name,"=",context->entries[i].arg_description,NULL)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:506:48: note: Null pointer dereference 2.17.0 mdbtools-1.0.1/src/libmdb/fakeglib.c:96:36: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:94:17: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:94:17: note: Assignment 'ret=malloc(len+1)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:96:36: note: Null pointer addition head mdbtools-1.0.1/src/libmdb/fakeglib.c:96:36: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mdbtools-1.0.1/src/libmdb/fakeglib.c:94:17: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/fakeglib.c:94:17: note: Assignment 'ret=malloc(len+1)', assigned value is 0 mdbtools-1.0.1/src/libmdb/fakeglib.c:96:36: note: Null pointer addition 2.17.0 mdbtools-1.0.1/src/libmdb/file.c:103:9: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: dir [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/file.c:102:18: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/file.c:102:18: note: Assignment 'dir=g_strsplit(mdbpath,":",0)', assigned value is 0 mdbtools-1.0.1/src/libmdb/file.c:103:9: note: Null pointer dereference 2.17.0 mdbtools-1.0.1/src/libmdb/file.c:104:15: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: dir [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/file.c:102:18: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/file.c:102:18: note: Assignment 'dir=g_strsplit(mdbpath,":",0)', assigned value is 0 mdbtools-1.0.1/src/libmdb/file.c:104:15: note: Null pointer dereference 2.17.0 mdbtools-1.0.1/src/libmdb/file.c:106:13: warning: If memory allocation fails, then there is a possible null pointer dereference: tmpfname [nullPointerOutOfMemory] mdbtools-1.0.1/src/libmdb/file.c:105:25: note: Assuming allocation function fails mdbtools-1.0.1/src/libmdb/file.c:105:25: note: Assignment 'tmpfname=g_strconcat(dir[i++],"/",file_name,NULL)', assigned value is 0 mdbtools-1.0.1/src/libmdb/file.c:106:13: note: Null pointer dereference 2.17.0 mdbtools-1.0.1/src/odbc/connectparams.c:128:16: warning: If memory allocation fails, then there is a possible null pointer dereference: s [nullPointerOutOfMemory] mdbtools-1.0.1/src/odbc/connectparams.c:123:26: note: Assuming allocation function fails mdbtools-1.0.1/src/odbc/connectparams.c:123:9: note: Assignment 'cs=(char*)g_strdup(connectString)', assigned value is 0 mdbtools-1.0.1/src/odbc/connectparams.c:124:6: note: s is assigned 'cs' here. mdbtools-1.0.1/src/odbc/connectparams.c:128:16: note: Null pointer dereference 2.17.0 mdbtools-1.0.1/src/odbc/connectparams.c:233:55: warning: If memory allocation fails, then there is a possible null pointer dereference: components [nullPointerOutOfMemory] mdbtools-1.0.1/src/odbc/connectparams.c:232:34: note: Assuming allocation function fails mdbtools-1.0.1/src/odbc/connectparams.c:232:34: note: Assignment 'components=g_strsplit(q,";",2)', assigned value is 0 mdbtools-1.0.1/src/odbc/connectparams.c:233:55: note: Null pointer dereference 2.17.0 mdbtools-1.0.1/src/odbc/connectparams.c:265:55: warning: If memory allocation fails, then there is a possible null pointer dereference: components [nullPointerOutOfMemory] mdbtools-1.0.1/src/odbc/connectparams.c:264:34: note: Assuming allocation function fails mdbtools-1.0.1/src/odbc/connectparams.c:264:34: note: Assignment 'components=g_strsplit(q,";",2)', assigned value is 0 mdbtools-1.0.1/src/odbc/connectparams.c:265:55: note: Null pointer dereference 2.17.0 mdbtools-1.0.1/src/util/mdb-import.c:118:17: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: sarray [nullPointerOutOfMemory] mdbtools-1.0.1/src/util/mdb-import.c:117:22: note: Assuming allocation function fails mdbtools-1.0.1/src/util/mdb-import.c:117:22: note: Assignment 'sarray=g_strsplit(line,"\n",0)', assigned value is 0 mdbtools-1.0.1/src/util/mdb-import.c:118:17: note: Null pointer dereference DONE