2022-06-21 21:20 ftp://ftp.de.debian.org/debian/pool/main/f/foremost/foremost_1.5.7.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 -j1 platform: Linux-5.4.0-120-generic-x86_64-with-glibc2.29 python: 3.8.10 client-version: 1.3.24 compiler: g++ (Ubuntu 10.3.0-1ubuntu1~20.04) 10.3.0 cppcheck: head 2.8 head-info: 1d5166d (2022-06-21 19:28:08 +0200) count: 156 156 elapsed-time: 40.3 53.6 head-timing-info: Tokenizer::simplifyTokens1: 13.1433s (avg. 1.46036s - 9 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 12.9912s (avg. 1.44347s - 9 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.080606s (avg. 0.00895622s - 9 result(s)) Tokenizer::createTokens: 0.026803s (avg. 0.00297811s - 9 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.020869s (avg. 0.00231878s - 9 result(s)) Overall time: 26.3506s old-timing-info: Tokenizer::simplifyTokens1: 17.5235s (avg. 1.94706s - 9 result(s)) Tokenizer::simplifyTokens1::ValueFlow: 17.3677s (avg. 1.92975s - 9 result(s)) Tokenizer::simplifyTokens1::createSymbolDatabase: 0.081992s (avg. 0.00911022s - 9 result(s)) Tokenizer::createTokens: 0.025125s (avg. 0.00279167s - 9 result(s)) Tokenizer::simplifyTokens1::setValueType: 0.020612s (avg. 0.00229022s - 9 result(s)) Overall time: 35.1127s head results: foremost-1.5.7/api.c:504:10: style: Redundant condition: If 'EXPR > 0x1f', the comparison 'EXPR' is always true. [redundantCondition] foremost-1.5.7/api.c:60:2: warning: %d in format string (no. 1) requires 'int' but the argument type is 'void *'. [invalidPrintfArgType_sint] foremost-1.5.7/api.c:526:2: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed short'. [invalidPrintfArgType_uint] foremost-1.5.7/api.c:257:7: style: Redundant initialization for 'temp'. The initialized value is overwritten before it is read. [redundantInitialization] foremost-1.5.7/api.c:246:23: note: temp is initialized foremost-1.5.7/api.c:257:7: note: temp is overwritten foremost-1.5.7/api.c:249:26: style: Checking if unsigned expression 'jump' is less than zero. [unsignedLessThanZero] foremost-1.5.7/api.c:274:26: style: Checking if unsigned expression 'jump' is less than zero. [unsignedLessThanZero] foremost-1.5.7/api.c:290:13: style: Local variable 'FATblk' shadows outer variable [shadowVariable] foremost-1.5.7/api.c:18:8: note: Shadowed declaration foremost-1.5.7/api.c:290:13: note: Shadow variable foremost-1.5.7/api.c:98:20: style: Variable 'punctCount' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/api.c:99:20: style: Variable 'name_size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/api.c:496:11: style: Variable 'unknown' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/config.c:199:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foremost-1.5.7/config.c:210:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foremost-1.5.7/config.c:237:11: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] foremost-1.5.7/config.c:204:3: error: Memory leak: tokenarray [memleak] foremost-1.5.7/config.c:216:4: error: Memory leak: tokenarray [memleak] foremost-1.5.7/config.c:257:4: style: Consecutive return, break, continue, goto or throw statements are unnecessary. [duplicateBreak] foremost-1.5.7/config.c:27:6: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] foremost-1.5.7/config.c:32:6: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] foremost-1.5.7/config.c:37:6: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] foremost-1.5.7/config.c:42:6: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] foremost-1.5.7/config.c:47:6: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] foremost-1.5.7/config.c:52:6: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] foremost-1.5.7/config.c:57:6: warning:inconclusive: Found suspicious operator '*', result is not used. [constStatement] foremost-1.5.7/config.c:27:9: warning: In expression like '*A++' the result of '*' is unused. Did you intend to write '(*A)++;'? [clarifyStatement] foremost-1.5.7/config.c:32:9: warning: In expression like '*A++' the result of '*' is unused. Did you intend to write '(*A)++;'? [clarifyStatement] foremost-1.5.7/config.c:37:9: warning: In expression like '*A++' the result of '*' is unused. Did you intend to write '(*A)++;'? [clarifyStatement] foremost-1.5.7/config.c:42:9: warning: In expression like '*A++' the result of '*' is unused. Did you intend to write '(*A)++;'? [clarifyStatement] foremost-1.5.7/config.c:47:9: warning: In expression like '*A++' the result of '*' is unused. Did you intend to write '(*A)++;'? [clarifyStatement] foremost-1.5.7/config.c:52:9: warning: In expression like '*A++' the result of '*' is unused. Did you intend to write '(*A)++;'? [clarifyStatement] foremost-1.5.7/config.c:57:9: warning: In expression like '*A++' the result of '*' is unused. Did you intend to write '(*A)++;'? [clarifyStatement] foremost-1.5.7/dir.c:273:25: error: Array 'ole_types[7][4]' accessed at index 7, which is out of bounds. [arrayIndexOutOfBounds] foremost-1.5.7/dir.c:271:18: note: Assuming that condition 'j<8' is not redundant foremost-1.5.7/dir.c:273:25: note: Array index out of bounds foremost-1.5.7/dir.c:10:6: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] foremost-1.5.7/dir.c:31:18: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] foremost-1.5.7/dir.c:378:3: warning: %lu in format string (no. 2) requires 'unsigned long' but the argument type is 'signed long'. [invalidPrintfArgType_uint] foremost-1.5.7/dir.c:31:26: warning: Either the condition '(outputDir=opendir(get_output_directory(s)))==NULL' is redundant or there is possible null pointer dereference: outputDir. [nullPointerRedundantCheck] foremost-1.5.7/dir.c:25:53: note: Assuming that condition '(outputDir=opendir(get_output_directory(s)))==NULL' is not redundant foremost-1.5.7/dir.c:31:26: note: Null pointer dereference foremost-1.5.7/dir.c:173:9: style: Variable 'j' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/engine.c:245:15: style: Comparing expression of type 'unsigned int' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] foremost-1.5.7/engine.c:255:16: style: Comparing expression of type 'unsigned int' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] foremost-1.5.7/engine.c:650:3: error: Memory leak: i [memleak] foremost-1.5.7/engine.c:245:13: style: Checking if unsigned expression 'block' is less than zero. [unsignedLessThanZero] foremost-1.5.7/engine.c:255:14: style: Checking if unsigned expression 'block2' is less than zero. [unsignedLessThanZero] foremost-1.5.7/engine.c:417:35: style: A pointer can not be negative so it is either pointless or an error to check if it is not. [pointerPositive] foremost-1.5.7/engine.c:58:39: style: Parameter 'table' can be declared as const array [constParameter] foremost-1.5.7/engine.c:324:9: style: Variable 'tryBS' can be declared as const array [constVariable] foremost-1.5.7/engine.c:61:24: style: Variable 'shift' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/engine.c:228:21: style: Variable 'block' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/engine.c:229:22: style: Variable 'block2' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/engine.c:230:19: style: Variable 'dif' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/engine.c:318:25: style: Variable 'foundat' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/engine.c:323:28: style: Variable 'current_buflen' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/engine.c:329:12: style: Variable 'bs' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/engine.c:330:13: style: Variable 'rem' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/engine.c:332:19: style: Variable 'found_ind' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/engine.c:343:18: style: Variable 'current_buflen' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1236:3: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] foremost-1.5.7/extract.c:2230:2: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] foremost-1.5.7/extract.c:2137:13: portability: Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. [prohibitedgmtimeCalled] foremost-1.5.7/extract.c:114:89: style: Condition 'strcmp(needle->suffix,"zip")==0' is always true [knownConditionTrueFalse] foremost-1.5.7/extract.c:112:36: note: Assuming that condition 'strcmp(needle->suffix,"zip")==0' is not redundant foremost-1.5.7/extract.c:114:89: note: Condition 'strcmp(needle->suffix,"zip")==0' is always true foremost-1.5.7/extract.c:1015:36: style: Condition 'strncmp((char*)atom,"free",4)==0' is always false [knownConditionTrueFalse] foremost-1.5.7/extract.c:1021:80: style: Condition 'strncmp((char*)atom,"mdat",4)==0' is always false [knownConditionTrueFalse] foremost-1.5.7/extract.c:1014:80: note: Assuming condition 'strncmp((char*)atom,"mdat",4)==0' is false foremost-1.5.7/extract.c:1021:80: note: Condition 'strncmp((char*)atom,"mdat",4)==0' is always false foremost-1.5.7/extract.c:1022:76: style: Condition 'strncmp((char*)atom,"wide",4)==0' is always false [knownConditionTrueFalse] foremost-1.5.7/extract.c:1015:77: note: Assuming condition 'strncmp((char*)atom,"wide",4)==0' is false foremost-1.5.7/extract.c:1022:76: note: Condition 'strncmp((char*)atom,"wide",4)==0' is always false foremost-1.5.7/extract.c:1674:11: style: Condition 'size>0' is always true [knownConditionTrueFalse] foremost-1.5.7/extract.c:1667:11: note: Assuming that condition 'size==0' is not redundant foremost-1.5.7/extract.c:1674:11: note: Condition 'size>0' is always true foremost-1.5.7/extract.c:1878:18: style: Condition 'foundat[2]==(unsigned char)'\xff'' is always true [knownConditionTrueFalse] foremost-1.5.7/extract.c:1872:18: note: Assuming that condition 'foundat[2]!=(unsigned char)'\xff'' is not redundant foremost-1.5.7/extract.c:1878:18: note: Condition 'foundat[2]==(unsigned char)'\xff'' is always true foremost-1.5.7/extract.c:628:66: style: Comparing expression of type 'unsigned int' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] foremost-1.5.7/extract.c:640:81: style: Comparing expression of type 'unsigned int' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] foremost-1.5.7/extract.c:2367:19: style: Comparing expression of type 'unsigned int' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] foremost-1.5.7/extract.c:2371:20: style: Comparing expression of type 'unsigned int' against value 0. Condition is always false. [compareValueOutOfTypeRangeError] foremost-1.5.7/extract.h:96:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] foremost-1.5.7/extract.h:96:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] foremost-1.5.7/extract.h:106:2: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] foremost-1.5.7/extract.h:106:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] foremost-1.5.7/extract.c:194:19: style: Redundant initialization for 'bytes_to_search'. The initialized value is overwritten before it is read. [redundantInitialization] foremost-1.5.7/extract.c:43:32: note: bytes_to_search is initialized foremost-1.5.7/extract.c:194:19: note: bytes_to_search is overwritten foremost-1.5.7/extract.c:503:9: style: Redundant initialization for 'header'. The initialized value is overwritten before it is read. [redundantInitialization] foremost-1.5.7/extract.c:462:24: note: header is initialized foremost-1.5.7/extract.c:503:9: note: header is overwritten foremost-1.5.7/extract.c:509:10: style: Variable 'foundat' is reassigned a value before the old one has been used. [redundantAssignment] foremost-1.5.7/extract.c:506:10: note: foundat is assigned foremost-1.5.7/extract.c:509:10: note: foundat is overwritten foremost-1.5.7/extract.c:520:10: style: Variable 'foundat' is reassigned a value before the old one has been used. [redundantAssignment] foremost-1.5.7/extract.c:519:10: note: foundat is assigned foremost-1.5.7/extract.c:520:10: note: foundat is overwritten foremost-1.5.7/extract.c:2045:15: style: Variable 'file_size' is reassigned a value before the old one has been used. [redundantAssignment] foremost-1.5.7/extract.c:2009:13: note: file_size is assigned foremost-1.5.7/extract.c:2045:15: note: file_size is overwritten foremost-1.5.7/extract.c:178:8: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] foremost-1.5.7/extract.c:182:3: note: Found duplicate branches for 'if' and 'else'. foremost-1.5.7/extract.c:178:8: note: Found duplicate branches for 'if' and 'else'. foremost-1.5.7/extract.c:1599:9: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] foremost-1.5.7/extract.c:1603:4: note: Found duplicate branches for 'if' and 'else'. foremost-1.5.7/extract.c:1599:9: note: Found duplicate branches for 'if' and 'else'. foremost-1.5.7/extract.c:1014:85: style: Same expression 'strncmp((char*)atom,"free",4)==0' found multiple times in chain of '||' operators. [duplicateExpression] foremost-1.5.7/extract.c:1968:24: style: Same expression on both sides of '-'. [duplicateExpression] foremost-1.5.7/extract.c:1958:23: note: 'buf' is assigned value 'foundat' here. foremost-1.5.7/extract.c:1968:24: note: Same expression on both sides of '-'. foremost-1.5.7/extract.c:382:12: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] foremost-1.5.7/extract.c:628:64: style: Checking if unsigned expression 'htoi((unsigned char*)&h->dir_flag,1)' is less than zero. [unsignedLessThanZero] foremost-1.5.7/extract.c:634:73: style: Checking if unsigned expression 'htoi((unsigned char*)&h->num_FAT_blocks,1)' is less than zero. [unsignedLessThanZero] foremost-1.5.7/extract.c:640:79: style: Checking if unsigned expression 'htoi((unsigned char*)&h->num_extra_FAT_blocks,1)' is less than zero. [unsignedLessThanZero] foremost-1.5.7/extract.c:1053:16: style: Checking if unsigned expression 'atomsize' is less than zero. [unsignedLessThanZero] foremost-1.5.7/extract.c:1538:15: style: Checking if unsigned expression 'size' is less than zero. [unsignedLessThanZero] foremost-1.5.7/extract.c:2367:17: style: Checking if unsigned expression 'filesize' is less than zero. [unsignedLessThanZero] foremost-1.5.7/extract.c:2371:18: style: Checking if unsigned expression 'ufilesize' is less than zero. [unsignedLessThanZero] foremost-1.5.7/extract.c:40:35: style: Variable 'comment_length' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:44:26: style: Variable 'file_size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:89:23: style: Variable 'localFH.compression' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:295:25: style: Variable 'size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:296:20: style: Variable 'file_size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:398:14: style: Variable 'currentpos' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:560:19: style: Variable 'file_size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:585:13: style: Variable 'currentpos' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:722:19: style: Variable 'extrasize' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:723:16: style: Variable 'oldblk' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:738:16: style: Variable 'result' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:929:14: style: Variable 'extrasize' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1042:24: style: Variable 'atomsize' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1155:23: style: Variable 'file_size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1157:32: style: Variable 'fileObjHeaderSize' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1187:13: style: Variable 'currentpos' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1204:21: style: Variable 'fileObjHeaderSize' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1236:11: style: Variable 'foundat' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1255:23: style: Variable 'file_size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1330:23: style: Variable 'file_size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1404:28: style: Variable 'currentpos' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1406:25: style: Variable 'bytes_to_search' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1407:23: style: Variable 'width' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1408:24: style: Variable 'height' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1409:23: style: Variable 'file_size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1423:14: style: Variable 'currentpos' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1474:22: style: Variable 'size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1484:11: style: Variable 'j' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1583:10: style: Variable 'size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1660:20: style: Variable 'size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1736:14: style: Variable 'size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1739:23: style: Variable 'file_size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1831:23: style: Variable 'file_size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1902:13: style: Variable 'currentpos' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1959:24: style: Variable 'endptr' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:1960:26: style: Variable 'beginptr' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2101:22: style: Variable 'offset' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2104:32: style: Variable 'raw_section_size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2172:13: style: Variable 'SizeOfCode' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2173:24: style: Variable 'SizeOfInitializedData' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2174:26: style: Variable 'SizeOfUninitializedData' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2175:6: style: Variable 'rva' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2176:8: style: Variable 'align' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2178:14: style: Variable 'sizeofimage' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2179:18: style: Variable 'size_of_headers' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2213:10: style: Variable 'foundat' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2230:10: style: Variable 'foundat' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2272:23: style: Variable 'file_size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2277:25: style: Variable 'ufilesize' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2278:11: style: Variable 'i' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2291:11: style: Variable 'filesize' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/extract.c:2430:14: style: Variable 'file_size' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/helpers.c:329:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] foremost-1.5.7/helpers.c:329:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] foremost-1.5.7/helpers.c:290:2: style:inconclusive: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] foremost-1.5.7/helpers.c:408:38: style: Parameter 'from' can be declared as pointer to const [constParameter] foremost-1.5.7/helpers.c:424:49: warning:inconclusive: Multiplying sizeof() with sizeof() indicates a logic error. [multiplySizeof] foremost-1.5.7/helpers.c:286:11: style: Variable 'fd' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/helpers.c:324:8: style: Variable 'j' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/helpers.c:426:14: style: Variable 'temp' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/helpers.c:521:24: style: Variable 'number_of_stars' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/state.c:232:32: warning: Possible null pointer dereference: footer [nullPointer] foremost-1.5.7/state.c:381:37: note: Calling function 'init_builtin', 5th argument 'NULL' value is 0 foremost-1.5.7/state.c:232:32: note: Null pointer dereference foremost-1.5.7/state.c:330:8: style: Variable 'index' is reassigned a value before the old one has been used. [redundantAssignment] foremost-1.5.7/state.c:321:8: note: index is assigned foremost-1.5.7/state.c:330:8: note: index is overwritten foremost-1.5.7/state.c:351:12: style: Variable 'index' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/state.c:721:9: style: Variable 'index' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/state.c:747:18: style: Variable 'j' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/state.c:747:36: style: Variable 'currentindex' is assigned a value that is never used. [unreadVariable] foremost-1.5.7/state.c:232:32: error: Null pointer dereference: footer [ctunullpointer] foremost-1.5.7/state.c:278:14: note: Calling function init_builtin, 5th argument is null foremost-1.5.7/state.c:232:32: note: Dereferencing argument footer that is null diff: head foremost-1.5.7/engine.c:324:9: style: Variable 'tryBS' can be declared as const array [constVariable] 2.8 foremost-1.5.7/engine.c:324:9: style: Variable 'tryBS' can be declared with const [constVariable] head foremost-1.5.7/engine.c:58:39: style: Parameter 'table' can be declared as const array [constParameter] 2.8 foremost-1.5.7/engine.c:58:39: style: Parameter 'table' can be declared with const [constParameter] 2.8 foremost-1.5.7/extract.c:1878:18: style: Condition 'foundat[2]==(unsigned char)'\xff'' is always true [knownConditionTrueFalse] foremost-1.5.7/extract.c:1872:18: note: Assuming condition 'foundat[2]!=(unsigned char)'\xff'' is false foremost-1.5.7/extract.c:1878:18: note: Condition 'foundat[2]==(unsigned char)'\xff'' is always true head foremost-1.5.7/extract.c:1878:18: style: Condition 'foundat[2]==(unsigned char)'\xff'' is always true [knownConditionTrueFalse] foremost-1.5.7/extract.c:1872:18: note: Assuming that condition 'foundat[2]!=(unsigned char)'\xff'' is not redundant foremost-1.5.7/extract.c:1878:18: note: Condition 'foundat[2]==(unsigned char)'\xff'' is always true head foremost-1.5.7/helpers.c:408:38: style: Parameter 'from' can be declared as pointer to const [constParameter] 2.8 foremost-1.5.7/helpers.c:408:38: style: Parameter 'from' can be declared with const [constParameter] DONE