2022-06-28 17:32 ftp://ftp.de.debian.org/debian/pool/main/h/httrack/httrack_3.49.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j2 platform: Linux-5.4.0-110-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0 cppcheck: head 2.8 head-info: 2223cd2 (2022-06-28 14:02:02 +0200) count: 313 314 elapsed-time: 117.4 158.2 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: httrack-3.49.2/libtest/callbacks-example-changecontent.c:41:8: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/libtest/callbacks-example-displayheader.c:42:8: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/libtest/callbacks-example-contentfilter.c:66:32: error: Memory is allocated but not initialized: userdef [uninitdata] httrack-3.49.2/libtest/callbacks-example-filename.c:64:8: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/libtest/callbacks-example-filename2.c:68:27: error: Memory is allocated but not initialized: userdef [uninitdata] httrack-3.49.2/libtest/callbacks-example-filenameiisbug.c:39:8: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/libtest/callbacks-example-listlinks.c:59:8: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/libtest/callbacks-example-simple.c:82:8: style: Variable 'arg' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/libtest/example-main.c:55:3: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] httrack-3.49.2/libtest/example-main.c:111:3: warning: scanf() without field width limits can crash with huge input data. [invalidscanf] httrack-3.49.2/libtest/example-main.c:107:7: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/coucal/coucal.c:533:32: style: The statement 'if (hashtable->pool.capacity!=capacity) hashtable->pool.capacity=capacity' is logically equivalent to 'hashtable->pool.capacity=capacity'. [duplicateConditionalAssign] httrack-3.49.2/src/coucal/coucal.c:534:30: note: Assignment 'hashtable->pool.capacity=capacity' httrack-3.49.2/src/coucal/coucal.c:533:32: note: Condition 'hashtable->pool.capacity!=capacity' is redundant httrack-3.49.2/src/coucal/coucal.c:333:10: warning: Either the condition 'hashtable!=NULL' is redundant or there is possible null pointer dereference: hashtable. [nullPointerRedundantCheck] httrack-3.49.2/src/coucal/coucal.c:297:17: note: Assuming that condition 'hashtable!=NULL' is not redundant httrack-3.49.2/src/coucal/coucal.c:294:44: note: Calling function 'coucal_get_name', 1st argument 'hashtable' value is 0 httrack-3.49.2/src/coucal/coucal.c:333:10: note: Null pointer dereference httrack-3.49.2/src/coucal/coucal.c:379:46: style:inconclusive: Function 'coucal_hash_data' argument 1 names different: declaration 'data' definition 'data_'. [funcArgNamesDifferent] httrack-3.49.2/src/coucal/coucal.h:511:60: note: Function 'coucal_hash_data' argument 1 names different: declaration 'data' definition 'data_'. httrack-3.49.2/src/coucal/coucal.c:379:46: note: Function 'coucal_hash_data' argument 1 names different: declaration 'data' definition 'data_'. httrack-3.49.2/src/coucal/coucal.c:476:63: style:inconclusive: Function 'coucal_hash_string' argument 1 names different: declaration 'value' definition 'name'. [funcArgNamesDifferent] httrack-3.49.2/src/coucal/coucal.h:506:62: note: Function 'coucal_hash_string' argument 1 names different: declaration 'value' definition 'name'. httrack-3.49.2/src/coucal/coucal.c:476:63: note: Function 'coucal_hash_string' argument 1 names different: declaration 'value' definition 'name'. httrack-3.49.2/src/coucal/coucal.c:752:71: style:inconclusive: Function 'coucal_read_pvoid' argument 3 names different: declaration 'value' definition 'pvalue'. [funcArgNamesDifferent] httrack-3.49.2/src/coucal/coucal.h:404:44: note: Function 'coucal_read_pvoid' argument 3 names different: declaration 'value' definition 'pvalue'. httrack-3.49.2/src/coucal/coucal.c:752:71: note: Function 'coucal_read_pvoid' argument 3 names different: declaration 'value' definition 'pvalue'. httrack-3.49.2/src/coucal/coucal.c:769:71: style:inconclusive: Function 'coucal_write_pvoid' argument 3 names different: declaration 'value' definition 'pvalue'. [funcArgNamesDifferent] httrack-3.49.2/src/coucal/coucal.h:417:44: note: Function 'coucal_write_pvoid' argument 3 names different: declaration 'value' definition 'pvalue'. httrack-3.49.2/src/coucal/coucal.c:769:71: note: Function 'coucal_write_pvoid' argument 3 names different: declaration 'value' definition 'pvalue'. httrack-3.49.2/src/coucal/coucal.c:776:70: style:inconclusive: Function 'coucal_add_pvoid' argument 3 names different: declaration 'value' definition 'pvalue'. [funcArgNamesDifferent] httrack-3.49.2/src/coucal/coucal.h:423:43: note: Function 'coucal_add_pvoid' argument 3 names different: declaration 'value' definition 'pvalue'. httrack-3.49.2/src/coucal/coucal.c:776:70: note: Function 'coucal_add_pvoid' argument 3 names different: declaration 'value' definition 'pvalue'. httrack-3.49.2/src/coucal/coucal.c:783:68: style:inconclusive: Function 'coucal_write' argument 3 names different: declaration 'value' definition 'intvalue'. [funcArgNamesDifferent] httrack-3.49.2/src/coucal/coucal.h:430:41: note: Function 'coucal_write' argument 3 names different: declaration 'value' definition 'intvalue'. httrack-3.49.2/src/coucal/coucal.c:783:68: note: Function 'coucal_write' argument 3 names different: declaration 'value' definition 'intvalue'. httrack-3.49.2/src/coucal/coucal.c:1162:67: style:inconclusive: Function 'coucal_add' argument 3 names different: declaration 'value' definition 'intvalue'. [funcArgNamesDifferent] httrack-3.49.2/src/coucal/coucal.h:436:40: note: Function 'coucal_add' argument 3 names different: declaration 'value' definition 'intvalue'. httrack-3.49.2/src/coucal/coucal.c:1162:67: note: Function 'coucal_add' argument 3 names different: declaration 'value' definition 'intvalue'. httrack-3.49.2/src/coucal/coucal.c:1218:38: style:inconclusive: Function 'coucal_read_value' argument 3 names different: declaration 'value' definition 'pvalue'. [funcArgNamesDifferent] httrack-3.49.2/src/coucal/coucal.h:390:51: note: Function 'coucal_read_value' argument 3 names different: declaration 'value' definition 'pvalue'. httrack-3.49.2/src/coucal/coucal.c:1218:38: note: Function 'coucal_read_value' argument 3 names different: declaration 'value' definition 'pvalue'. httrack-3.49.2/src/coucal/coucal.c:1337:72: style:inconclusive: Function 'coucal_readptr' argument 3 names different: declaration 'intvalue' definition 'value'. [funcArgNamesDifferent] httrack-3.49.2/src/coucal/coucal.h:371:45: note: Function 'coucal_readptr' argument 3 names different: declaration 'intvalue' definition 'value'. httrack-3.49.2/src/coucal/coucal.c:1337:72: note: Function 'coucal_readptr' argument 3 names different: declaration 'intvalue' definition 'value'. httrack-3.49.2/src/coucal/coucal.c:1363:26: style:inconclusive: Function 'coucal_new' argument 1 names different: declaration 'size' definition 'initial_size'. [funcArgNamesDifferent] httrack-3.49.2/src/coucal/coucal.h:261:40: note: Function 'coucal_new' argument 1 names different: declaration 'size' definition 'initial_size'. httrack-3.49.2/src/coucal/coucal.c:1363:26: note: Function 'coucal_new' argument 1 names different: declaration 'size' definition 'initial_size'. httrack-3.49.2/src/coucal/coucal.c:1490:28: style:inconclusive: Function 'coucal_delete' argument 1 names different: declaration 'hashtable' definition 'phashtable'. [funcArgNamesDifferent] httrack-3.49.2/src/coucal/coucal.h:272:43: note: Function 'coucal_delete' argument 1 names different: declaration 'hashtable' definition 'phashtable'. httrack-3.49.2/src/coucal/coucal.c:1490:28: note: Function 'coucal_delete' argument 1 names different: declaration 'hashtable' definition 'phashtable'. httrack-3.49.2/src/coucal/coucal.c:913:18: style: Local variable 'pos' shadows outer variable [shadowVariable] httrack-3.49.2/src/coucal/coucal.c:887:10: note: Shadowed declaration httrack-3.49.2/src/coucal/coucal.c:913:18: note: Shadow variable httrack-3.49.2/src/coucal/coucal.c:981:28: style: Local variable 'item' shadows outer argument [shadowArgument] httrack-3.49.2/src/coucal/coucal.c:884:59: note: Shadowed declaration httrack-3.49.2/src/coucal/coucal.c:981:28: note: Shadow variable httrack-3.49.2/src/coucal/coucal.c:992:30: style: Local variable 'item' shadows outer argument [shadowArgument] httrack-3.49.2/src/coucal/coucal.c:884:59: note: Shadowed declaration httrack-3.49.2/src/coucal/coucal.c:992:30: note: Shadow variable httrack-3.49.2/src/coucal/coucal.c:993:24: style: Local variable 'pos1' shadows outer variable [shadowVariable] httrack-3.49.2/src/coucal/coucal.c:982:22: note: Shadowed declaration httrack-3.49.2/src/coucal/coucal.c:993:24: note: Shadow variable httrack-3.49.2/src/coucal/coucal.c:994:24: style: Local variable 'pos2' shadows outer variable [shadowVariable] httrack-3.49.2/src/coucal/coucal.c:983:22: note: Shadowed declaration httrack-3.49.2/src/coucal/coucal.c:994:24: note: Shadow variable httrack-3.49.2/src/coucal/coucal.c:1005:30: style: Local variable 'item' shadows outer argument [shadowArgument] httrack-3.49.2/src/coucal/coucal.c:884:59: note: Shadowed declaration httrack-3.49.2/src/coucal/coucal.c:1005:30: note: Shadow variable httrack-3.49.2/src/coucal/coucal.c:1006:24: style: Local variable 'pos1' shadows outer variable [shadowVariable] httrack-3.49.2/src/coucal/coucal.c:982:22: note: Shadowed declaration httrack-3.49.2/src/coucal/coucal.c:1006:24: note: Shadow variable httrack-3.49.2/src/coucal/coucal.c:1007:24: style: Local variable 'pos2' shadows outer variable [shadowVariable] httrack-3.49.2/src/coucal/coucal.c:983:22: note: Shadowed declaration httrack-3.49.2/src/coucal/coucal.c:1007:24: note: Shadow variable httrack-3.49.2/src/coucal/coucal.c:1129:16: style: Local variable 'i' shadows outer variable [shadowVariable] httrack-3.49.2/src/coucal/coucal.c:1053:14: note: Shadowed declaration httrack-3.49.2/src/coucal/coucal.c:1129:16: note: Shadow variable httrack-3.49.2/src/coucal/coucal.c:1138:21: style: Local variable 'ret' shadows outer variable [shadowVariable] httrack-3.49.2/src/coucal/coucal.c:1037:13: note: Shadowed declaration httrack-3.49.2/src/coucal/coucal.c:1138:21: note: Shadow variable httrack-3.49.2/src/coucal/tests.c:127:15: error: Common realloc mistake: 'strings' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/coucal/tests.c:198:14: error: Uninitialized variable: result [legacyUninitvar] httrack-3.49.2/src/htsback.c:995:10: error: Syntax Error: AST broken, 'opt' doesn't have a parent. [internalAstError] httrack-3.49.2/src/htsalias.c:290:9: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] httrack-3.49.2/src/htsalias.c:293:9: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] httrack-3.49.2/src/htsalias.c:297:9: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] httrack-3.49.2/src/htsalias.c:304:11: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] httrack-3.49.2/src/htsalias.c:307:11: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] httrack-3.49.2/src/htsalias.c:309:11: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] httrack-3.49.2/src/htsalias.c:578:5: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] httrack-3.49.2/src/htsalias.c:577:5: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htssafe.h:119:8: style: Variable 'check_array' is not assigned a value. [unassignedVariable] httrack-3.49.2/src/htssafe.h:120:8: style: Variable 'check_pointer' is not assigned a value. [unassignedVariable] httrack-3.49.2/src/htscache.c:150:20: error: Syntax Error: AST broken, 'opt' doesn't have a parent. [internalAstError] httrack-3.49.2/src/htsbauth.c:278:22: error: Null pointer dereference [nullPointer] httrack-3.49.2/src/htsbauth.c:319:22: error: Null pointer dereference [nullPointer] httrack-3.49.2/src/htsbauth.c:137:21: style: Unsigned expression 'i' can't be negative so it is unnecessary to test it. [unsignedPositive] httrack-3.49.2/src/htsbauth.c:206:48: style:inconclusive: Function 'cookie_load' argument 2 names different: declaration 'path' definition 'fpath'. [funcArgNamesDifferent] httrack-3.49.2/src/htsbauth.h:68:48: note: Function 'cookie_load' argument 2 names different: declaration 'path' definition 'fpath'. httrack-3.49.2/src/htsbauth.c:206:48: note: Function 'cookie_load' argument 2 names different: declaration 'path' definition 'fpath'. httrack-3.49.2/src/htsbauth.c:461:26: style:inconclusive: Function 'bauth_prefix' argument 1 names different: declaration 'buffer' definition 'prefix'. [funcArgNamesDifferent] httrack-3.49.2/src/htsbauth.h:79:26: note: Function 'bauth_prefix' argument 1 names different: declaration 'buffer' definition 'prefix'. httrack-3.49.2/src/htsbauth.c:461:26: note: Function 'bauth_prefix' argument 1 names different: declaration 'buffer' definition 'prefix'. httrack-3.49.2/src/htsbauth.c:365:7: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] httrack-3.49.2/src/htsbauth.c:293:15: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htsbauth.c:294:15: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htsbauth.c:295:15: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htsbauth.c:296:15: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htsbauth.c:464:3: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htscatchurl.c:177:13: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] httrack-3.49.2/src/htscatchurl.c:182:17: style: Variable 'r' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htscharset.c:1139:15: style: Comparing expression of type 'unsigned char' against value -1. Condition is always true. [compareValueOutOfTypeRangeError] httrack-3.49.2/src/htscharset.c:1139:15: style: Comparing expression of type 'const unsigned char' against value -1. Condition is always true. [compareValueOutOfTypeRangeError] httrack-3.49.2/src/htscharset.c:1239:5: style: Comparing expression of type 'unsigned char' against value -1. Condition is always true. [compareValueOutOfTypeRangeError] httrack-3.49.2/src/htscharset.c:1239:5: style: Comparing expression of type 'const unsigned char' against value -1. Condition is always true. [compareValueOutOfTypeRangeError] httrack-3.49.2/src/htscharset.c:479:13: error: Common realloc mistake: 'outbuf' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:497:9: error: Common realloc mistake: 'outbuf' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:955:11: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:956:11: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:957:11: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:958:11: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:1021:15: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:1041:13: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:1051:7: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:1111:11: error: Common realloc mistake: 'output_dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:1127:15: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:1139:15: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:1157:11: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:1163:7: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:1194:5: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:1199:3: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:1239:5: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:1242:3: error: Common realloc mistake: 'dest' nulled but not freed upon failure [memleakOnRealloc] httrack-3.49.2/src/htscharset.c:619:63: style:inconclusive: Function 'hts_copyStringUTF8' argument 3 names different: declaration 'nBytes' definition 'size'. [funcArgNamesDifferent] httrack-3.49.2/src/htscharset.h:109:41: note: Function 'hts_copyStringUTF8' argument 3 names different: declaration 'nBytes' definition 'size'. httrack-3.49.2/src/htscharset.c:619:63: note: Function 'hts_copyStringUTF8' argument 3 names different: declaration 'nBytes' definition 'size'. httrack-3.49.2/src/htscharset.c:968:33: style: Local variable 'c' shadows outer variable [shadowVariable] httrack-3.49.2/src/htscharset.c:939:25: note: Shadowed declaration httrack-3.49.2/src/htscharset.c:968:33: note: Shadow variable httrack-3.49.2/src/htscharset.c:1040:24: style: Local variable 'c' shadows outer variable [shadowVariable] httrack-3.49.2/src/htscharset.c:939:25: note: Shadowed declaration httrack-3.49.2/src/htscharset.c:1040:24: note: Shadow variable httrack-3.49.2/src/htscharset.c:1156:22: style: Local variable 'c' shadows outer variable [shadowVariable] httrack-3.49.2/src/htscharset.c:1085:25: note: Shadowed declaration httrack-3.49.2/src/htscharset.c:1156:22: note: Shadow variable httrack-3.49.2/src/htscore.c:548:17: error: Syntax Error: AST broken, 'opt' doesn't have a parent. [internalAstError] httrack-3.49.2/src/htscoremain.c:488:15: error: Syntax Error: AST broken, 'opt' doesn't have a parent. [internalAstError] httrack-3.49.2/src/htshelp.c:66:9: style: Condition '!quit' is always true [knownConditionTrueFalse] httrack-3.49.2/src/htshelp.c:59:14: note: Assignment 'quit=0', assigned value is 0 httrack-3.49.2/src/htshelp.c:66:9: note: Condition '!quit' is always true httrack-3.49.2/src/htshelp.c:84:15: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] httrack-3.49.2/src/htshelp.c:173:5: error: Memory leak: buffers [memleak] httrack-3.49.2/src/htshelp.c:219:5: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htshelp.c:69:16: style: Variable 'more' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htshelp.c:113:11: style: Variable 'l' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htshelp.c:114:9: style: Variable 'quit' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:1094:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] httrack-3.49.2/src/htsftp.c:75:15: warning: Identical condition 'pStruct==NULL', second condition is always false [identicalConditionAfterEarlyExit] httrack-3.49.2/src/htsftp.c:72:15: note: If condition 'pStruct==NULL' is true, the function will return/exit httrack-3.49.2/src/htsftp.c:75:15: note: Testing identical condition 'pStruct==NULL' httrack-3.49.2/src/htsftp.c:565:13: style: The if condition is the same as the previous if condition [duplicateCondition] httrack-3.49.2/src/htsftp.c:509:13: note: First condition httrack-3.49.2/src/htsftp.c:565:13: note: Second condition httrack-3.49.2/src/htsftp.c:488:19: warning: %d in format string (no. 1) requires 'int *' but the argument type is 'unsigned int *'. [invalidScanfArgType_int] httrack-3.49.2/src/htsftp.c:132:40: style:inconclusive: Function 'run_launch_ftp' argument 1 names different: declaration 'params' definition 'pStruct'. [funcArgNamesDifferent] httrack-3.49.2/src/htsftp.h:70:40: note: Function 'run_launch_ftp' argument 1 names different: declaration 'params' definition 'pStruct'. httrack-3.49.2/src/htsftp.c:132:40: note: Function 'run_launch_ftp' argument 1 names different: declaration 'params' definition 'pStruct'. httrack-3.49.2/src/htsftp.c:953:35: style:inconclusive: Function 'get_ftp_line' argument 2 names different: declaration 'line' definition 'ptrline'. [funcArgNamesDifferent] httrack-3.49.2/src/htsftp.h:72:35: note: Function 'get_ftp_line' argument 2 names different: declaration 'line' definition 'ptrline'. httrack-3.49.2/src/htsftp.c:953:35: note: Function 'get_ftp_line' argument 2 names different: declaration 'line' definition 'ptrline'. httrack-3.49.2/src/htsftp.c:416:17: style: Local variable 'a' shadows outer variable [shadowVariable] httrack-3.49.2/src/htsftp.c:248:11: note: Shadowed declaration httrack-3.49.2/src/htsftp.c:416:17: note: Shadow variable httrack-3.49.2/src/htsftp.c:476:19: style: Local variable 'a' shadows outer variable [shadowVariable] httrack-3.49.2/src/htsftp.c:248:11: note: Shadowed declaration httrack-3.49.2/src/htsftp.c:476:19: note: Shadow variable httrack-3.49.2/src/htsftp.c:566:19: style: Local variable 'server' shadows outer variable [shadowVariable] httrack-3.49.2/src/htsftp.c:247:13: note: Shadowed declaration httrack-3.49.2/src/htsftp.c:566:19: note: Shadow variable httrack-3.49.2/src/htsftp.c:568:23: style: Local variable 'error' shadows outer variable [shadowVariable] httrack-3.49.2/src/htsftp.c:250:17: note: Shadowed declaration httrack-3.49.2/src/htsftp.c:568:23: note: Shadow variable httrack-3.49.2/src/htsftp.c:850:23: style: Local variable 'a' shadows outer variable [shadowVariable] httrack-3.49.2/src/htsftp.c:841:34: note: Shadowed declaration httrack-3.49.2/src/htsftp.c:850:23: note: Shadow variable httrack-3.49.2/src/htsftp.c:272:7: style: Variable 'soc_ctl' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:272:7: style: Variable 'soc_servdat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:272:7: style: Variable 'soc_dat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:274:5: style: Variable 'soc_ctl' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:274:5: style: Variable 'soc_servdat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:274:5: style: Variable 'soc_dat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:285:7: style: Variable 'soc_ctl' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:285:7: style: Variable 'soc_servdat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:285:7: style: Variable 'soc_dat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:298:7: style: Variable 'soc_ctl' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:298:7: style: Variable 'soc_servdat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:298:7: style: Variable 'soc_dat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:304:5: style: Variable 'soc_ctl' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:304:5: style: Variable 'soc_servdat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:304:5: style: Variable 'soc_dat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:313:7: style: Variable 'soc_ctl' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:313:7: style: Variable 'soc_servdat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:313:7: style: Variable 'soc_dat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:320:9: style: Variable 'soc_ctl' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:320:9: style: Variable 'soc_servdat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:320:9: style: Variable 'soc_dat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:328:13: style: Variable 'soc_ctl' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:328:13: style: Variable 'soc_servdat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:328:13: style: Variable 'soc_dat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:333:13: style: Variable 'soc_ctl' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:333:13: style: Variable 'soc_servdat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:333:13: style: Variable 'soc_dat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:414:9: style: Variable 'soc_ctl' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:414:9: style: Variable 'soc_servdat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:414:9: style: Variable 'soc_dat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:474:11: style: Variable 'soc_ctl' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:474:11: style: Variable 'soc_servdat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:474:11: style: Variable 'soc_dat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:530:15: style: Variable 'soc_ctl' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:530:15: style: Variable 'soc_servdat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:530:15: style: Variable 'soc_dat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:548:19: style: Variable 'soc_ctl' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:548:19: style: Variable 'soc_servdat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:548:19: style: Variable 'soc_dat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:599:17: style: Variable 'soc_ctl' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:599:17: style: Variable 'soc_servdat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:599:17: style: Variable 'soc_dat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:800:5: style: Variable 'soc_ctl' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:800:5: style: Variable 'soc_servdat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsftp.c:800:5: style: Variable 'soc_dat' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsindex.c:389:21: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] httrack-3.49.2/src/htsindex.c:195:5: error: Resource leak: tmpfp [resourceLeak] httrack-3.49.2/src/htsindex.c:361:26: error: Null pointer dereference [nullPointer] httrack-3.49.2/src/htsindex.c:363:26: error: Null pointer dereference [nullPointer] httrack-3.49.2/src/htsindex.c:390:25: style: Local variable 'a' shadows outer variable [shadowVariable] httrack-3.49.2/src/htsindex.c:341:19: note: Shadowed declaration httrack-3.49.2/src/htsindex.c:390:25: note: Shadow variable httrack-3.49.2/src/htsindex.c:295:15: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] httrack-3.49.2/src/htsjava.c:69:31: style: Condition '*((char*)&endian)==1' is always true [knownConditionTrueFalse] httrack-3.49.2/src/htsjava.c:67:16: note: Assignment 'endian=1', assigned value is 1 httrack-3.49.2/src/htsjava.c:69:31: note: Condition '*((char*)&endian)==1' is always true httrack-3.49.2/src/htsjava.c:200:13: style: Condition 'fpout' is always true [knownConditionTrueFalse] httrack-3.49.2/src/htsjava.c:261:69: style: Comparing expression of type 'unsigned int' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] httrack-3.49.2/src/htsjava.c:438:5: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] httrack-3.49.2/src/htsjava.c:326:44: warning: Either the condition 'fpout' is redundant or there is possible null pointer dereference: fp. [nullPointerRedundantCheck] httrack-3.49.2/src/htsjava.c:234:17: note: Assuming that condition 'fpout' is not redundant httrack-3.49.2/src/htsjava.c:226:35: note: Calling function 'readtable', 2nd argument 'fpout' value is 0 httrack-3.49.2/src/htsjava.c:326:44: note: Null pointer dereference httrack-3.49.2/src/htsjava.c:175:26: error: Null pointer dereference [nullPointer] httrack-3.49.2/src/htsjava.c:506:11: style: Variable '*p1' is reassigned a value before the old one has been used. [redundantAssignment] httrack-3.49.2/src/htsjava.c:504:11: note: *p1 is assigned httrack-3.49.2/src/htsjava.c:506:11: note: *p1 is overwritten httrack-3.49.2/src/htsjava.c:261:66: style: Unsigned expression 'tab[i].index1' can't be negative so it is unnecessary to test it. [unsignedPositive] httrack-3.49.2/src/md5.h:17:0: error: #error undefined: SIZEOF_LONG [preprocessorErrorDirective] httrack-3.49.2/src/htslib.c:702:12: error: Syntax Error: AST broken, 'opt' doesn't have a parent. [internalAstError] httrack-3.49.2/src/htsmodules.c:99:27: style: Condition 'str->wrapper_name==NULL' is always false [knownConditionTrueFalse] httrack-3.49.2/src/htsmodules.c:95:23: note: Assignment 'str->wrapper_name="wrapper-lib"', assigned value is "wrapper-lib" httrack-3.49.2/src/htsmodules.c:99:27: note: Condition 'str->wrapper_name==NULL' is always false httrack-3.49.2/src/htsmodules.c:128:36: style:inconclusive: Function 'clearCallbacks' argument 1 names different: declaration 'chain' definition 'chain_'. [funcArgNamesDifferent] httrack-3.49.2/src/htslib.h:314:43: note: Function 'clearCallbacks' argument 1 names different: declaration 'chain' definition 'chain_'. httrack-3.49.2/src/htsmodules.c:128:36: note: Function 'clearCallbacks' argument 1 names different: declaration 'chain' definition 'chain_'. httrack-3.49.2/src/htsmodules.c:190:48: style:inconclusive: Function 'getFunctionPtr' argument 2 names different: declaration 'fncname' definition 'fncname_'. [funcArgNamesDifferent] httrack-3.49.2/src/htslib.h:311:55: note: Function 'getFunctionPtr' argument 2 names different: declaration 'fncname' definition 'fncname_'. httrack-3.49.2/src/htsmodules.c:190:48: note: Function 'getFunctionPtr' argument 2 names different: declaration 'fncname' definition 'fncname_'. httrack-3.49.2/src/htsparse.c:554:35: error: Syntax Error: AST broken, 'opt' doesn't have a parent. [internalAstError] httrack-3.49.2/src/htsthread.c:63:7: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] httrack-3.49.2/src/htsthread.c:152:21: style: Variable 'retcode' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htstools.c:547:22: error: Syntax Error: AST broken, 'opt' doesn't have a parent. [internalAstError] httrack-3.49.2/src/htswizard.c:913:14: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] httrack-3.49.2/src/htswizard.c:909:12: note: outer condition: size>=0 httrack-3.49.2/src/htswizard.c:913:14: note: identical inner condition: size>=0 httrack-3.49.2/src/htswizard.c:159:21: style: Condition 'forbidden_url!=0' is always true [knownConditionTrueFalse] httrack-3.49.2/src/htswizard.c:137:24: note: Assignment 'forbidden_url=-1', assigned value is -1 httrack-3.49.2/src/htswizard.c:153:7: note: Assuming condition is false httrack-3.49.2/src/htswizard.c:159:21: note: Condition 'forbidden_url!=0' is always true httrack-3.49.2/src/htswizard.c:499:17: style: Condition 'question' is always false [knownConditionTrueFalse] httrack-3.49.2/src/htswizard.c:498:24: note: Assignment 'question=0', assigned value is 0 httrack-3.49.2/src/htswizard.c:499:17: note: Condition 'question' is always false httrack-3.49.2/src/htswizard.c:678:9: portability: fflush() called on input stream 'stdin' may result in undefined behaviour on non-linux systems. [fflushOnInputStream] httrack-3.49.2/src/htswizard.c:947:14: style: Redundant initialization for 'sz'. The initialized value is overwritten before it is read. [redundantInitialization] httrack-3.49.2/src/htswizard.c:914:16: note: sz is initialized httrack-3.49.2/src/htswizard.c:947:14: note: sz is overwritten httrack-3.49.2/src/htswizard.c:106:25: style:inconclusive: Function 'hts_acceptlink' argument 7 names different: declaration 'set_prio_to_0' definition 'set_prio_to'. [funcArgNamesDifferent] httrack-3.49.2/src/htswizard.h:55:25: note: Function 'hts_acceptlink' argument 7 names different: declaration 'set_prio_to_0' definition 'set_prio_to'. httrack-3.49.2/src/htswizard.c:106:25: note: Function 'hts_acceptlink' argument 7 names different: declaration 'set_prio_to_0' definition 'set_prio_to'. httrack-3.49.2/src/htswizard.c:462:5: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htswizard.c:714:9: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htswizard.c:730:13: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htswizard.c:747:9: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htswizard.c:789:13: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htswizard.c:798:11: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htswizard.c:806:9: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htswizard.c:819:13: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htswizard.c:918:7: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htswizard.c:701:11: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] httrack-3.49.2/src/htswizard.c:869:22: style: Variable 'mdepth' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htszlib.c:60:30: error: Null pointer dereference [nullPointer] httrack-3.49.2/src/htszlib.c:67:35: error: Null pointer dereference [nullPointer] httrack-3.49.2/src/httrack.c:672:5: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] httrack-3.49.2/src/httrack.c:941:20: style: Condition 'global_opt!=NULL' is always true [knownConditionTrueFalse] httrack-3.49.2/src/httrack.c:624:3: portability: fflush() called on input stream 'stdin' may result in undefined behaviour on non-linux systems. [fflushOnInputStream] httrack-3.49.2/src/httrack.c:634:3: portability: fflush() called on input stream 'stdin' may result in undefined behaviour on non-linux systems. [fflushOnInputStream] httrack-3.49.2/src/httrack.c:654:5: portability: fflush() called on input stream 'stdin' may result in undefined behaviour on non-linux systems. [fflushOnInputStream] httrack-3.49.2/src/httrack.c:537:19: warning:inconclusive: Found calculation inside sizeof(). [sizeofCalculation] httrack-3.49.2/src/minizip/ioapi.c:80:47: style: Variable 'p_filefunc64_32->zfile_func64.zerror_file' is reassigned a value before the old one has been used. [redundantAssignment] httrack-3.49.2/src/minizip/ioapi.c:73:47: note: p_filefunc64_32->zfile_func64.zerror_file is assigned httrack-3.49.2/src/minizip/ioapi.c:80:47: note: p_filefunc64_32->zfile_func64.zerror_file is overwritten httrack-3.49.2/src/minizip/iowin32.c:97:17: style: Variable 'mode_fopen' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/minizip/iowin32.c:126:17: style: Variable 'mode_fopen' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/minizip/iowin32.c:150:17: style: Variable 'mode_fopen' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/minizip/iowin32.c:170:17: style: Variable 'mode_fopen' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/minizip/iowin32.c:358:26: style: Variable 'dwMoveMethod' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/minizip/iowin32.c:361:26: style: Variable 'dwMoveMethod' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/minizip/iowin32.c:364:26: style: Variable 'dwMoveMethod' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/minizip/mztools.c:172:24: style: Condition 'fnsize>0' is always true [knownConditionTrueFalse] httrack-3.49.2/src/minizip/mztools.c:73:20: note: Assuming that condition 'fnsize>0' is not redundant httrack-3.49.2/src/minizip/mztools.c:172:24: note: Condition 'fnsize>0' is always true httrack-3.49.2/src/minizip/mztools.c:195:25: style: Condition 'comsize>0' is always false [knownConditionTrueFalse] httrack-3.49.2/src/minizip/mztools.c:148:33: note: Assignment 'comment=""', assigned value is "" httrack-3.49.2/src/minizip/mztools.c:149:40: note: Assignment 'comsize=strlen(comment)', assigned value is 0 httrack-3.49.2/src/minizip/mztools.c:195:25: note: Condition 'comsize>0' is always false httrack-3.49.2/src/minizip/mztools.c:241:21: style: Condition 'comsize>0' is always false [knownConditionTrueFalse] httrack-3.49.2/src/minizip/mztools.c:223:29: note: Assignment 'comment=""', assigned value is "" httrack-3.49.2/src/minizip/mztools.c:224:36: note: Assignment 'comsize=strlen(comment)', assigned value is 0 httrack-3.49.2/src/minizip/mztools.c:241:21: note: Condition 'comsize>0' is always false httrack-3.49.2/src/minizip/mztools.c:288:3: error: Resource leak: fpOutCD [resourceLeak] httrack-3.49.2/src/minizip/mztools.c:147:16: style: Local variable 'header' shadows outer variable [shadowVariable] httrack-3.49.2/src/minizip/mztools.c:42:10: note: Shadowed declaration httrack-3.49.2/src/minizip/mztools.c:147:16: note: Shadow variable httrack-3.49.2/src/minizip/mztools.c:222:12: style: Local variable 'header' shadows outer variable [shadowVariable] httrack-3.49.2/src/minizip/mztools.c:42:10: note: Shadowed declaration httrack-3.49.2/src/minizip/mztools.c:222:12: note: Shadow variable httrack-3.49.2/src/minizip/unzip.c:603:25: style: Condition 'unz_copyright[0]!=' '' is always false [knownConditionTrueFalse] httrack-3.49.2/src/minizip/unzip.c:1041:63: style: Local variable 'uL' shadows outer variable [shadowVariable] httrack-3.49.2/src/minizip/unzip.c:896:11: note: Shadowed declaration httrack-3.49.2/src/minizip/unzip.c:1041:63: note: Shadow variable httrack-3.49.2/src/minizip/unzip.c:585:56: style: Parameter 'pzlib_filefunc64_32_def' can be declared as pointer to const [constParameter] httrack-3.49.2/src/minizip/unzip.c:779:59: style: Parameter 'pzlib_filefunc_def' can be declared as pointer to const [constParameter] httrack-3.49.2/src/minizip/unzip.c:611:25: error: Uninitialized variable: *pzlib_filefunc64_32_def.zopen32_file [uninitvar] httrack-3.49.2/src/minizip/unzip.c:787:38: note: Calling function 'unzOpenInternal', 2nd argument '&zlib_filefunc64_32_def_fill' value is httrack-3.49.2/src/minizip/unzip.c:611:25: note: Uninitialized variable: *pzlib_filefunc64_32_def.zopen32_file httrack-3.49.2/src/minizip/unzip.c:1094:22: style: Variable 'lSeek' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/minizip/unzip.c:1102:14: style: Variable 'lSeek' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/minizip/unzip.c:1105:14: style: Variable 'lSeek' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/minizip/unzip.c:1538:12: style: Variable 'err' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/minizip/zip.c:1212:26: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] httrack-3.49.2/src/minizip/zip.c:1209:41: note: outer condition: zi->ci.method==Z_DEFLATED httrack-3.49.2/src/minizip/zip.c:1212:26: note: identical inner condition: zi->ci.method==Z_DEFLATED httrack-3.49.2/src/minizip/zip.c:670:23: style: Condition 'central_pos==0' is always true [knownConditionTrueFalse] httrack-3.49.2/src/minizip/zip.c:666:18: note: Assuming that condition 'central_pos>0' is not redundant httrack-3.49.2/src/minizip/zip.c:670:23: note: Condition 'central_pos==0' is always true httrack-3.49.2/src/minizip/zip.c:1038:11: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] httrack-3.49.2/src/minizip/zip.c:1037:11: note: err is assigned httrack-3.49.2/src/minizip/zip.c:1038:11: note: err is overwritten httrack-3.49.2/src/minizip/zip.c:1040:11: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] httrack-3.49.2/src/minizip/zip.c:1038:11: note: err is assigned httrack-3.49.2/src/minizip/zip.c:1040:11: note: err is overwritten httrack-3.49.2/src/minizip/zip.c:1041:11: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] httrack-3.49.2/src/minizip/zip.c:1040:11: note: err is assigned httrack-3.49.2/src/minizip/zip.c:1041:11: note: err is overwritten httrack-3.49.2/src/minizip/zip.c:1543:36: style: Variable 'err' is reassigned a value before the old one has been used. [redundantAssignment] httrack-3.49.2/src/minizip/zip.c:1538:53: note: err is assigned httrack-3.49.2/src/minizip/zip.c:1543:36: note: err is overwritten httrack-3.49.2/src/minizip/zip.c:849:118: style: Parameter 'pzlib_filefunc64_32_def' can be declared as pointer to const [constParameter] httrack-3.49.2/src/minizip/zip.c:932:118: style: Parameter 'pzlib_filefunc_def' can be declared as pointer to const [constParameter] httrack-3.49.2/src/minizip/zip.c:860:29: error: Uninitialized variable: *pzlib_filefunc64_32_def.zopen32_file [uninitvar] httrack-3.49.2/src/minizip/zip.c:940:58: note: Calling function 'zipOpen3', 4th argument '&zlib_filefunc64_32_def_fill' value is httrack-3.49.2/src/minizip/zip.c:860:29: note: Uninitialized variable: *pzlib_filefunc64_32_def.zopen32_file httrack-3.49.2/src/minizip/zip.c:1477:23: style: Variable 'bBreak' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/minizip/zip.c:1683:11: style: Variable 'p' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/proxy/proxytrack.h:386:3: style: Obsolescent function 'ftime' called. It is recommended to use 'time', 'gettimeofday' or 'clock_gettime' instead. [prohibitedftimeCalled] httrack-3.49.2/src/proxy/proxytrack.h:392:10: style: Obsolescent function 'utime' called. It is recommended to use 'utimensat' instead. [prohibitedutimeCalled] httrack-3.49.2/src/proxy/proxytrack.c:235:26: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] httrack-3.49.2/src/proxy/proxytrack.c:532:17: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] httrack-3.49.2/src/proxy/proxytrack.c:970:12: style: Condition '!(*surl='\0')' is always true [knownConditionTrueFalse] httrack-3.49.2/src/proxy/proxytrack.c:971:53: style: Condition '!(*proto='\0')' is always true [knownConditionTrueFalse] httrack-3.49.2/src/proxy/proxytrack.c:1386:7: style: Condition 'buffer' is always true [knownConditionTrueFalse] httrack-3.49.2/src/proxy/proxytrack.c:1390:7: style: Condition 'line1' is always true [knownConditionTrueFalse] httrack-3.49.2/src/proxy/proxytrack.c:1609:25: style: Comparing expression of type 'unsigned char' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] httrack-3.49.2/src/proxy/proxytrack.c:329:3: error: Resource leak: soc [resourceLeak] httrack-3.49.2/src/proxy/proxytrack.c:1076:19: style: Variable 'keepAlive' is reassigned a value before the old one has been used. [redundantAssignment] httrack-3.49.2/src/proxy/proxytrack.c:986:21: note: keepAlive is assigned httrack-3.49.2/src/proxy/proxytrack.c:1076:19: note: keepAlive is overwritten httrack-3.49.2/src/proxy/proxytrack.c:1609:22: style: Unsigned expression 'Opcode' can't be negative so it is unnecessary to test it. [unsignedPositive] httrack-3.49.2/src/proxy/proxytrack.c:770:26: style: Local variable 'file' shadows outer variable [shadowVariable] httrack-3.49.2/src/proxy/proxytrack.c:686:15: note: Shadowed declaration httrack-3.49.2/src/proxy/proxytrack.c:770:26: note: Shadow variable httrack-3.49.2/src/proxy/proxytrack.c:318:15: style: Variable 'soc' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/proxy/proxytrack.c:326:13: style: Variable 'soc' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/proxy/store.c:1153:17: style: Condition 'ok' is always false [knownConditionTrueFalse] httrack-3.49.2/src/proxy/store.c:1149:22: note: Assignment 'ok=0', assigned value is 0 httrack-3.49.2/src/proxy/store.c:1153:17: note: Condition 'ok' is always false httrack-3.49.2/src/proxy/store.c:638:38: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] httrack-3.49.2/src/proxy/store.c:1572:13: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] httrack-3.49.2/src/proxy/store.c:1252:14: style: Variable 'headers[0]' is reassigned a value before the old one has been used. [redundantAssignment] httrack-3.49.2/src/proxy/store.c:1248:14: note: headers[0] is assigned httrack-3.49.2/src/proxy/store.c:1252:14: note: headers[0] is overwritten httrack-3.49.2/src/proxy/store.c:361:28: style:inconclusive: Function 'PT_AddIndex' argument 1 names different: declaration 'index' definition 'indexes'. [funcArgNamesDifferent] httrack-3.49.2/src/proxy/store.h:90:28: note: Function 'PT_AddIndex' argument 1 names different: declaration 'index' definition 'indexes'. httrack-3.49.2/src/proxy/store.c:361:28: note: Function 'PT_AddIndex' argument 1 names different: declaration 'index' definition 'indexes'. httrack-3.49.2/src/proxy/store.c:671:43: style:inconclusive: Function 'PT_LookupCache__New_u' argument 1 names different: declaration 'index' definition 'index_'. [funcArgNamesDifferent] httrack-3.49.2/src/proxy/store.c:63:43: note: Function 'PT_LookupCache__New_u' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:671:43: note: Function 'PT_LookupCache__New_u' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:881:32: style:inconclusive: Function 'PT_LoadCache__New' argument 1 names different: declaration 'index' definition 'index_'. [funcArgNamesDifferent] httrack-3.49.2/src/proxy/store.c:133:39: note: Function 'PT_LoadCache__New' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:881:32: note: Function 'PT_LoadCache__New' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:1000:48: style:inconclusive: Function 'PT_ReadCache__New_u' argument 1 names different: declaration 'index' definition 'index_'. [funcArgNamesDifferent] httrack-3.49.2/src/proxy/store.c:64:48: note: Function 'PT_ReadCache__New_u' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:1000:48: note: Function 'PT_ReadCache__New_u' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:1422:39: style:inconclusive: Function 'PT_LoadCache__Old' argument 1 names different: declaration 'index' definition 'index_'. [funcArgNamesDifferent] httrack-3.49.2/src/proxy/store.c:138:45: note: Function 'PT_LoadCache__Old' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:1422:39: note: Function 'PT_LoadCache__Old' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:1595:48: style:inconclusive: Function 'PT_ReadCache__Old_u' argument 1 names different: declaration 'index' definition 'index_'. [funcArgNamesDifferent] httrack-3.49.2/src/proxy/store.c:68:48: note: Function 'PT_ReadCache__Old_u' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:1595:48: note: Function 'PT_ReadCache__Old_u' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:1843:43: style:inconclusive: Function 'PT_LookupCache__Old_u' argument 1 names different: declaration 'index' definition 'index_'. [funcArgNamesDifferent] httrack-3.49.2/src/proxy/store.c:67:43: note: Function 'PT_LookupCache__Old_u' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:1843:43: note: Function 'PT_LookupCache__Old_u' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:1995:32: style:inconclusive: Function 'PT_LoadCache__Arc' argument 1 names different: declaration 'index' definition 'index_'. [funcArgNamesDifferent] httrack-3.49.2/src/proxy/store.c:142:45: note: Function 'PT_LoadCache__Arc' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:1995:32: note: Function 'PT_LoadCache__Arc' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:2108:48: style:inconclusive: Function 'PT_ReadCache__Arc_u' argument 1 names different: declaration 'index' definition 'index_'. [funcArgNamesDifferent] httrack-3.49.2/src/proxy/store.c:72:48: note: Function 'PT_ReadCache__Arc_u' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:2108:48: note: Function 'PT_ReadCache__Arc_u' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:2261:43: style:inconclusive: Function 'PT_LookupCache__Arc_u' argument 1 names different: declaration 'index' definition 'index_'. [funcArgNamesDifferent] httrack-3.49.2/src/proxy/store.c:71:43: note: Function 'PT_LookupCache__Arc_u' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:2261:43: note: Function 'PT_LookupCache__Arc_u' argument 1 names different: declaration 'index' definition 'index_'. httrack-3.49.2/src/proxy/store.c:915:14: style: Local variable 'filename' shadows outer argument [shadowArgument] httrack-3.49.2/src/proxy/store.c:881:52: note: Shadowed declaration httrack-3.49.2/src/proxy/store.c:915:14: note: Shadow variable httrack-3.49.2/src/proxy/store.c:1511:15: style: Local variable 'pos' shadows outer variable [shadowVariable] httrack-3.49.2/src/proxy/store.c:1424:11: note: Shadowed declaration httrack-3.49.2/src/proxy/store.c:1511:15: note: Shadow variable httrack-3.49.2/src/proxy/store.c:2177:19: style: Local variable 'pos' shadows outer variable [shadowVariable] httrack-3.49.2/src/proxy/store.c:2133:21: note: Shadowed declaration httrack-3.49.2/src/proxy/store.c:2177:19: note: Shadow variable httrack-3.49.2/src/proxy/store.c:258:25: style: Parameter 'buff' can be declared as pointer to const [constParameter] httrack-3.49.2/src/proxy/store.c:2145:29: warning: Size of pointer 'pos' used instead of size of its data. [pointerSize] httrack-3.49.2/src/proxy/store.c:1282:3: warning: String literal compared with variable 'NULL'. Did you intend to use strcmp() instead? [literalWithCharPtrCompare] httrack-3.49.2/src/proxy/store.c:225:10: style: struct member '_PT_CacheItem::lastUsed' is never used. [unusedStructMember] httrack-3.49.2/src/proxy/store.c:226:10: style: struct member '_PT_CacheItem::size' is never used. [unusedStructMember] httrack-3.49.2/src/proxy/store.c:227:9: style: struct member '_PT_CacheItem::data' is never used. [unusedStructMember] httrack-3.49.2/src/proxy/store.c:232:10: style: struct member '_PT_Cache::maxSize' is never used. [unusedStructMember] httrack-3.49.2/src/proxy/store.c:233:10: style: struct member '_PT_Cache::totalSize' is never used. [unusedStructMember] httrack-3.49.2/src/proxy/store.c:234:7: style: struct member '_PT_Cache::count' is never used. [unusedStructMember] httrack-3.49.2/src/proxy/store.c:921:30: style: Variable 'readSizeHeader' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/proxy/store.c:1326:13: style: Variable 'zErr' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/proxy/store.c:1342:14: style: Variable 'zFileOut' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/punycode.c:153:21: style: Condition '++delta==0' is always false [knownConditionTrueFalse] httrack-3.49.2/src/htsserver.c:179:26: style: Obsolescent function 'gethostbyname' called. It is recommended to use 'getaddrinfo' instead. [prohibitedgethostbynameCalled] httrack-3.49.2/src/htsserver.c:1516:7: style: The if condition is the same as the previous if condition [duplicateCondition] httrack-3.49.2/src/htsserver.c:1501:7: note: First condition httrack-3.49.2/src/htsserver.c:1516:7: note: Second condition httrack-3.49.2/src/htsserver.c:802:65: style: Condition '!(*pos='\0')' is always true [knownConditionTrueFalse] httrack-3.49.2/src/htsserver.c:1197:35: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] httrack-3.49.2/src/htsserver.c:331:5: error: Memory leak: buffer [memleak] httrack-3.49.2/src/htsserver.c:1518:22: error: Null pointer dereference [nullPointer] httrack-3.49.2/src/htsserver.c:1597:18: error: Null pointer dereference [nullPointer] httrack-3.49.2/src/htsserver.h:281:7: style: Redundant pointer operation on 'tempo' - it's already a pointer. [redundantPointerOp] httrack-3.49.2/src/htsserver.h:287:7: style: Redundant pointer operation on 'tempo' - it's already a pointer. [redundantPointerOp] httrack-3.49.2/src/htsserver.h:290:7: style: Redundant pointer operation on 'tempo' - it's already a pointer. [redundantPointerOp] httrack-3.49.2/src/htsserver.h:292:7: style: Redundant pointer operation on 'tempo' - it's already a pointer. [redundantPointerOp] httrack-3.49.2/src/htsserver.h:303:7: style: Redundant pointer operation on 'tempo' - it's already a pointer. [redundantPointerOp] httrack-3.49.2/src/htsserver.h:310:9: style: Redundant pointer operation on 'tempo' - it's already a pointer. [redundantPointerOp] httrack-3.49.2/src/htsserver.h:314:7: style: Redundant pointer operation on 'tempo' - it's already a pointer. [redundantPointerOp] httrack-3.49.2/src/htsserver.c:1493:53: style:inconclusive: Function 'htslang_load' argument 2 names different: declaration 'apppath' definition 'path'. [funcArgNamesDifferent] httrack-3.49.2/src/htsserver.c:132:64: note: Function 'htslang_load' argument 2 names different: declaration 'apppath' definition 'path'. httrack-3.49.2/src/htsserver.c:1493:53: note: Function 'htslang_load' argument 2 names different: declaration 'apppath' definition 'path'. httrack-3.49.2/src/htsserver.c:1777:61: style:inconclusive: Function 'LANG_LIST' argument 3 names different: declaration 'size' definition 'buffer_size'. [funcArgNamesDifferent] httrack-3.49.2/src/htsserver.c:141:72: note: Function 'LANG_LIST' argument 3 names different: declaration 'size' definition 'buffer_size'. httrack-3.49.2/src/htsserver.c:1777:61: note: Function 'LANG_LIST' argument 3 names different: declaration 'size' definition 'buffer_size'. httrack-3.49.2/src/htsserver.c:800:15: style: Local variable 'url' shadows outer argument [shadowArgument] httrack-3.49.2/src/htsserver.c:313:34: note: Shadowed declaration httrack-3.49.2/src/htsserver.c:800:15: note: Shadow variable httrack-3.49.2/src/htsserver.c:925:25: style: Local variable 'pos' shadows outer variable [shadowVariable] httrack-3.49.2/src/htsserver.c:799:15: note: Shadowed declaration httrack-3.49.2/src/htsserver.c:925:25: note: Shadow variable httrack-3.49.2/src/htsserver.c:1153:33: style: Local variable 'n' shadows outer variable [shadowVariable] httrack-3.49.2/src/htsserver.c:926:26: note: Shadowed declaration httrack-3.49.2/src/htsserver.c:1153:33: note: Shadow variable httrack-3.49.2/src/htsserver.c:1194:35: style: Local variable 'n' shadows outer variable [shadowVariable] httrack-3.49.2/src/htsserver.c:926:26: note: Shadowed declaration httrack-3.49.2/src/htsserver.c:1194:35: note: Shadow variable httrack-3.49.2/src/htsserver.c:381:5: warning: Found function call inside sizeof(). [sizeofFunctionCall] httrack-3.49.2/src/htsserver.c:646:15: style: Variable 'p' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsserver.c:667:25: style: Variable 'p' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsserver.c:671:25: style: Variable 'p' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsserver.c:1427:3: style: Variable 'headers.capacity_' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsserver.c:1427:3: style: Variable 'headers.length_' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsserver.c:1428:3: style: Variable 'output.capacity_' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsserver.c:1428:3: style: Variable 'output.length_' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsserver.c:1429:3: style: Variable 'tmpbuff.capacity_' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsserver.c:1429:3: style: Variable 'tmpbuff.length_' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsserver.c:1430:3: style: Variable 'tmpbuff2.capacity_' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsserver.c:1430:3: style: Variable 'tmpbuff2.length_' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsserver.c:1431:3: style: Variable 'fspath.capacity_' is assigned a value that is never used. [unreadVariable] httrack-3.49.2/src/htsserver.c:1431:3: style: Variable 'fspath.length_' is assigned a value that is never used. [unreadVariable] diff: head httrack-3.49.2/src/minizip/mztools.c:172:24: style: Condition 'fnsize>0' is always true [knownConditionTrueFalse] httrack-3.49.2/src/minizip/mztools.c:73:20: note: Assuming that condition 'fnsize>0' is not redundant httrack-3.49.2/src/minizip/mztools.c:172:24: note: Condition 'fnsize>0' is always true head httrack-3.49.2/src/minizip/unzip.c:585:56: style: Parameter 'pzlib_filefunc64_32_def' can be declared as pointer to const [constParameter] 2.8 httrack-3.49.2/src/minizip/unzip.c:585:56: style: Parameter 'pzlib_filefunc64_32_def' can be declared with const [constParameter] head httrack-3.49.2/src/minizip/unzip.c:779:59: style: Parameter 'pzlib_filefunc_def' can be declared as pointer to const [constParameter] 2.8 httrack-3.49.2/src/minizip/unzip.c:779:59: style: Parameter 'pzlib_filefunc_def' can be declared with const [constParameter] head httrack-3.49.2/src/minizip/zip.c:849:118: style: Parameter 'pzlib_filefunc64_32_def' can be declared as pointer to const [constParameter] 2.8 httrack-3.49.2/src/minizip/zip.c:849:118: style: Parameter 'pzlib_filefunc64_32_def' can be declared with const [constParameter] head httrack-3.49.2/src/minizip/zip.c:932:118: style: Parameter 'pzlib_filefunc_def' can be declared as pointer to const [constParameter] 2.8 httrack-3.49.2/src/minizip/zip.c:932:118: style: Parameter 'pzlib_filefunc_def' can be declared with const [constParameter] 2.8 httrack-3.49.2/src/proxy/store.c:1116:38: error: Overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmetic] httrack-3.49.2/src/proxy/store.c:1115:41: note: Assignment 'end=start?strchr(start,'/'):NULL', assigned value is 0 httrack-3.49.2/src/proxy/store.c:1116:38: note: Null pointer subtraction 2.8 httrack-3.49.2/src/proxy/store.c:1731:36: error: Overflow in pointer arithmetic, NULL pointer is subtracted. [nullPointerArithmetic] httrack-3.49.2/src/proxy/store.c:1730:39: note: Assignment 'end=start?strchr(start,'/'):NULL', assigned value is 0 httrack-3.49.2/src/proxy/store.c:1731:36: note: Null pointer subtraction head httrack-3.49.2/src/proxy/store.c:258:25: style: Parameter 'buff' can be declared as pointer to const [constParameter] 2.8 httrack-3.49.2/src/proxy/store.c:258:25: style: Parameter 'buff' can be declared with const [constParameter] head httrack-3.49.2/src/proxy/store.c:638:38: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] 2.8 httrack-3.49.2/src/punycode.c:145:15: style: Condition 'm-n>(maxint-delta)/(h+1)' is always false [knownConditionTrueFalse] httrack-3.49.2/src/punycode.c:138:20: note: Assuming that condition 'input[j]>=n' is not redundant httrack-3.49.2/src/punycode.c:139:11: note: m is assigned 'input[j]' here. httrack-3.49.2/src/punycode.c:145:15: note: Condition 'm-n>(maxint-delta)/(h+1)' is always false DONE