2026-05-03 01:19 ftp://ftp.de.debian.org/debian/pool/main/l/lookup/lookup_1.08b.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j1 platform: Linux-6.12.85+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.70 compiler: g++ (20250906) 15.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 151 134 elapsed-time: 6.7 5.6 head-timing-info: old-timing-info: head results: lookup-1.08b.orig/lib/longlinenote.h:51:6: warning: If memory allocation fails, then there is a possible null pointer dereference: *listptr [nullPointerOutOfMemory] lookup-1.08b.orig/lib/longlinenote.h:50:25: note: Assuming allocation function fails lookup-1.08b.orig/lib/longlinenote.h:50:25: note: Assignment '(*listptr)=xmalloc(sizeof(struct long_line_note))', assigned value is 0 lookup-1.08b.orig/lib/longlinenote.h:51:6: note: Null pointer dereference lookup-1.08b.orig/lib/index.h:208:18: error: Pointer addition with NULL pointer. [nullPointerArithmetic] lookup-1.08b.orig/lib/index.h:248:21: error: Pointer addition with NULL pointer. [nullPointerArithmetic] lookup-1.08b.orig/apply_regex.c:35:42: style:inconclusive: Function 'output_line' argument 1 names different: declaration '' definition 'slot'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/apply_regex.c:35:56: style:inconclusive: Function 'output_line' argument 2 names different: declaration '' definition 'line'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/apply_regex.c:35:71: style:inconclusive: Function 'output_line' argument 3 names different: declaration '' definition 'length'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/lib/longlinenote.h:61:43: style: Parameter 'list' can be declared as pointer to const [constParameterPointer] lookup-1.08b.orig/commands.c:92:1: debug: Function::addArguments found argument 'bool' with varid 0. [varid0] lookup-1.08b.orig/commands.c:93:1: debug: Function::addArguments found argument 'bool' with varid 0. [varid0] lookup-1.08b.orig/commands.c:94:1: debug: Function::addArguments found argument 'bool' with varid 0. [varid0] lookup-1.08b.orig/commands.c:96:1: debug: Function::addArguments found argument 'bool' with varid 0. [varid0] lookup-1.08b.orig/commands.c:97:1: debug: Function::addArguments found argument 'bool' with varid 0. [varid0] lookup-1.08b.orig/commands.c:98:1: debug: Function::addArguments found argument 'bool' with varid 0. [varid0] lookup-1.08b.orig/commands.c:99:1: debug: Function::addArguments found argument 'bool' with varid 0. [varid0] lookup-1.08b.orig/commands.c:100:1: debug: Function::addArguments found argument 'bool' with varid 0. [varid0] lookup-1.08b.orig/commands.c:101:1: debug: Function::addArguments found argument 'bool' with varid 0. [varid0] lookup-1.08b.orig/commands.c:102:1: debug: Function::addArguments found argument 'bool' with varid 0. [varid0] lookup-1.08b.orig/commands.c:110:37: debug: Function::addArguments found argument 'bool' with varid 0. [varid0] lookup-1.08b.orig/commands.c:293:38: debug: Function::addArguments found argument 'bool' with varid 0. [varid0] lookup-1.08b.orig/commands.c:794:38: debug: Function::addArguments found argument 'bool' with varid 0. [varid0] lookup-1.08b.orig/commands.c:175:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] lookup-1.08b.orig/commands.c:491:2: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] lookup-1.08b.orig/commands.c:728:2: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] lookup-1.08b.orig/commands.c:471:9: style: Condition 'clear_slot_when_done' is always false [knownConditionTrueFalse] lookup-1.08b.orig/commands.c:454:32: note: Assignment 'clear_slot_when_done=0', assigned value is 0 lookup-1.08b.orig/commands.c:471:9: note: Condition 'clear_slot_when_done' is always false lookup-1.08b.orig/commands.c:1034:14: style: Condition 'buf2[3]==':'' is always false [knownConditionTrueFalse] lookup-1.08b.orig/commands.c:1032:12: note: Assignment 'buf2[3]=' '', assigned value is 32 lookup-1.08b.orig/commands.c:1034:14: note: Condition 'buf2[3]==':'' is always false lookup-1.08b.orig/commands.c:728:8: warning: If memory allocation fails, then there is a possible null pointer dereference: slot [nullPointerOutOfMemory] lookup-1.08b.orig/commands.c:727:16: note: Assuming allocation function fails lookup-1.08b.orig/commands.c:727:16: note: Assignment 'slot=xmalloc(sizeof(struct slot_info))', assigned value is 0 lookup-1.08b.orig/commands.c:728:8: note: Null pointer dereference lookup-1.08b.orig/commands.c:1293:11: warning: Either the condition 'code' is redundant or there is possible null pointer dereference: code. [nullPointerRedundantCheck] lookup-1.08b.orig/commands.c:1307:6: note: Assuming that condition 'code' is not redundant lookup-1.08b.orig/commands.c:1293:11: note: Null pointer dereference lookup-1.08b.orig/commands.c:1293:31: warning: Either the condition 'code' is redundant or there is possible null pointer dereference: code. [nullPointerRedundantCheck] lookup-1.08b.orig/commands.c:1307:6: note: Assuming that condition 'code' is not redundant lookup-1.08b.orig/commands.c:1293:31: note: Null pointer dereference lookup-1.08b.orig/commands.c:1294:11: warning: Either the condition 'code' is redundant or there is possible null pointer dereference: code. [nullPointerRedundantCheck] lookup-1.08b.orig/commands.c:1307:6: note: Assuming that condition 'code' is not redundant lookup-1.08b.orig/commands.c:1294:11: note: Null pointer dereference lookup-1.08b.orig/commands.c:1294:31: warning: Either the condition 'code' is redundant or there is possible null pointer dereference: code. [nullPointerRedundantCheck] lookup-1.08b.orig/commands.c:1307:6: note: Assuming that condition 'code' is not redundant lookup-1.08b.orig/commands.c:1294:31: note: Null pointer dereference lookup-1.08b.orig/commands.c:1427:30: style: Same expression on both sides of '||'. [duplicateExpression] lookup-1.08b.orig/commands.h:13:35: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:19:49: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:25:51: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:49:48: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:61:38: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:79:44: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:85:44: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:91:43: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:103:48: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:109:50: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:133:39: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:139:45: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:145:47: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:151:45: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:157:47: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:163:30: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:181:28: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:223:39: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:229:29: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:289:29: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:295:38: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:301:45: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:307:47: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.h:325:53: style: Same expression on both sides of '-'. [duplicateExpression] lookup-1.08b.orig/commands.c:138:47: style:inconclusive: Function 'cmd_log' argument 3 names different: declaration 'file' definition 'File'. [funcArgNamesDifferent] lookup-1.08b.orig/lookup.h:255:54: note: Function 'cmd_log' argument 3 names different: declaration 'file' definition 'File'. lookup-1.08b.orig/commands.c:138:47: note: Function 'cmd_log' argument 3 names different: declaration 'file' definition 'File'. lookup-1.08b.orig/commands.c:1413:33: style:inconclusive: Function 'cmd_output_encoding' argument 1 names different: declaration '' definition 'main_style'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/commands.c:1413:53: style:inconclusive: Function 'cmd_output_encoding' argument 2 names different: declaration '' definition 'jis_year'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/commands.c:1414:12: style:inconclusive: Function 'cmd_output_encoding' argument 3 names different: declaration '' definition 'jis_english'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/commands.c:1414:33: style:inconclusive: Function 'cmd_output_encoding' argument 4 names different: declaration '' definition 'other'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/commands.c:1712:29: style:inconclusive: Function 'cmd_help' argument 1 names different: declaration '' definition 'str'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/commands.c:1761:27: style:inconclusive: Function 'parse_command' argument 1 names different: declaration '' definition 'line'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/commands.c:1761:42: style:inconclusive: Function 'parse_command' argument 2 names different: declaration '' definition 'len'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/commands.c:1761:56: style:inconclusive: Function 'parse_command' argument 3 names different: declaration '' definition 'accept'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/commands.c:1761:73: style:inconclusive: Function 'parse_command' argument 4 names different: declaration '' definition 'skip'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/commands.c:1886:41: style:inconclusive: Function 'read_commands_from_file' argument 1 names different: declaration '' definition 'file'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/commands.c:1886:56: style:inconclusive: Function 'read_commands_from_file' argument 2 names different: declaration '' definition 'accept'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/commands.c:1886:73: style:inconclusive: Function 'read_commands_from_file' argument 3 names different: declaration '' definition 'skip'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/commands.c:1192:17: style: Variable 'byte2' can be declared as const array [constVariable] lookup-1.08b.orig/commands.c:1214:17: style: Variable 'byte2' can be declared as const array [constVariable] lookup-1.08b.orig/commands.c:1226:17: style: Variable 'byte2' can be declared as const array [constVariable] lookup-1.08b.orig/commands.c:1237:17: style: Variable 'byte2' can be declared as const array [constVariable] lookup-1.08b.orig/commands.c:1894:16: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] lookup-1.08b.orig/commands.c:1927:10: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] lookup-1.08b.orig/commands.c:1938:13: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] lookup-1.08b.orig/commands.c:1941:13: style: Variable 'retval' is assigned a value that is never used. [unreadVariable] lookup-1.08b.orig/lib/fuzzkana.c:66:9: style: Variable 'do_repeat' is assigned a value that is never used. [unreadVariable] lookup-1.08b.orig/lib/index.c:213:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable count [valueFlowBailoutIncompleteVar] lookup-1.08b.orig/lib/index.c:350:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] lookup-1.08b.orig/lib/index.c:186:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] lookup-1.08b.orig/lib/index.c:233:13: style: Condition 'count!=0' is always true [knownConditionTrueFalse] lookup-1.08b.orig/lib/index.c:226:16: note: Assuming that condition 'count==0' is not redundant lookup-1.08b.orig/lib/index.c:233:13: note: Condition 'count!=0' is always true lookup-1.08b.orig/lib/index.c:265:6: warning: If memory allocation fails, then there is a possible null pointer dereference: indexp [nullPointerOutOfMemory] lookup-1.08b.orig/lib/index.c:264:21: note: Assuming allocation function fails lookup-1.08b.orig/lib/index.c:264:21: note: Assignment 'indexp=xmalloc(index.indexsize)', assigned value is 0 lookup-1.08b.orig/lib/index.c:265:6: note: Null pointer dereference lookup-1.08b.orig/lib/index.c:408:15: warning: If memory allocation fails, then there is a possible null pointer dereference: index [nullPointerOutOfMemory] lookup-1.08b.orig/lib/index.c:407:20: note: Assuming allocation function fails lookup-1.08b.orig/lib/index.c:407:20: note: Assignment 'index=xmalloc(sizeof(struct index))', assigned value is 0 lookup-1.08b.orig/lib/index.c:408:15: note: Null pointer dereference lookup-1.08b.orig/lib/index.c:265:15: error: Uninitialized struct member: index.magic [uninitStructMember] lookup-1.08b.orig/lib/index.c:265:15: error: Uninitialized struct member: index.version_major [uninitStructMember] lookup-1.08b.orig/lib/index.c:265:15: error: Uninitialized struct member: index.version_minor [uninitStructMember] lookup-1.08b.orig/lib/index.c:265:15: error: Uninitialized struct member: index.FileP [uninitStructMember] lookup-1.08b.orig/lib/index.c:265:15: error: Uninitialized struct member: index.st__mtime [uninitStructMember] lookup-1.08b.orig/lib/jreadline.c:580:6: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] lookup-1.08b.orig/lib/jreadline.c:596:2: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] lookup-1.08b.orig/lib/jreadline.c:646:6: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] lookup-1.08b.orig/lib/jreadline.c:672:6: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] lookup-1.08b.orig/lib/jreadline.c:747:2: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] lookup-1.08b.orig/lib/jreadline.c:994:6: style: Condition '!input_pending()' is always true [knownConditionTrueFalse] lookup-1.08b.orig/lib/jreadline.c:994:20: note: Calling function 'input_pending' returns 0 lookup-1.08b.orig/lib/jreadline.c:994:6: note: Condition '!input_pending()' is always true lookup-1.08b.orig/lib/jreadline.c:174:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] lookup-1.08b.orig/lib/jreadline.c:173:43: note: Assuming allocation function fails lookup-1.08b.orig/lib/jreadline.c:173:11: note: Assignment 'new=(struct history_struct*)xmalloc(sizeof(struct history_struct))', assigned value is 0 lookup-1.08b.orig/lib/jreadline.c:174:5: note: Null pointer dereference lookup-1.08b.orig/lib/jreadline.c:177:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] lookup-1.08b.orig/lib/jreadline.c:173:43: note: Assuming allocation function fails lookup-1.08b.orig/lib/jreadline.c:173:11: note: Assignment 'new=(struct history_struct*)xmalloc(sizeof(struct history_struct))', assigned value is 0 lookup-1.08b.orig/lib/jreadline.c:177:5: note: Null pointer dereference lookup-1.08b.orig/lib/jreadline.c:178:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] lookup-1.08b.orig/lib/jreadline.c:173:43: note: Assuming allocation function fails lookup-1.08b.orig/lib/jreadline.c:173:11: note: Assignment 'new=(struct history_struct*)xmalloc(sizeof(struct history_struct))', assigned value is 0 lookup-1.08b.orig/lib/jreadline.c:178:5: note: Null pointer dereference lookup-1.08b.orig/lib/jreadline.c:180:17: warning: If memory allocation fails, then there is a possible null pointer dereference: history_head.h_prev [nullPointerOutOfMemory] lookup-1.08b.orig/lib/jreadline.c:173:43: note: Assuming allocation function fails lookup-1.08b.orig/lib/jreadline.c:173:11: note: Assignment 'new=(struct history_struct*)xmalloc(sizeof(struct history_struct))', assigned value is 0 lookup-1.08b.orig/lib/jreadline.c:179:27: note: Assignment 'history_head.h_prev=new', assigned value is 0 lookup-1.08b.orig/lib/jreadline.c:180:17: note: Null pointer dereference lookup-1.08b.orig/lib/jreadline.c:1030:3: style:inconclusive: Found duplicate branches for 'if' and 'else'. [duplicateBranch] lookup-1.08b.orig/lib/jreadline.c:1033:5: note: Found duplicate branches for 'if' and 'else'. lookup-1.08b.orig/lib/jreadline.c:1030:3: note: Found duplicate branches for 'if' and 'else'. lookup-1.08b.orig/lib/jreadline.c:168:39: style:inconclusive: Function 'add_history' argument 1 names different: declaration '' definition 'text'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/lib/jreadline.c:959:46: style:inconclusive: Function 'readline' argument 1 names different: declaration 'readlineprompt' definition 'prompt'. [funcArgNamesDifferent] lookup-1.08b.orig/lib/jreadline.h:20:53: note: Function 'readline' argument 1 names different: declaration 'readlineprompt' definition 'prompt'. lookup-1.08b.orig/lib/jreadline.c:959:46: note: Function 'readline' argument 1 names different: declaration 'readlineprompt' definition 'prompt'. lookup-1.08b.orig/lib/jreadline.c:100:48: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] lookup-1.08b.orig/lib/jreadline.c:119:53: style: Parameter 'mark' can be declared as pointer to const [constParameterPointer] lookup-1.08b.orig/lib/jregex.c:4056:5: error: failed to expand 'FASTDEBUGSTUFF', it is invalid to use a preprocessor directive as macro parameter [syntaxError] lookup-1.08b.orig/lib/loadfile.c:72:2: error: Memory leak: info [memleak] lookup-1.08b.orig/lib/loadfile.c:49:12: warning: If memory allocation fails, then there is a possible null pointer dereference: indexname [nullPointerOutOfMemory] lookup-1.08b.orig/lib/loadfile.c:47:30: note: Assuming allocation function fails lookup-1.08b.orig/lib/loadfile.c:47:30: note: Assignment 'indexname=xmalloc((unsigned int)(strlen((void*)datafile_name)+strlen(".jin")+2))', assigned value is 0 lookup-1.08b.orig/lib/loadfile.c:49:12: note: Null pointer dereference lookup-1.08b.orig/lib/loadfile.c:50:12: warning: If memory allocation fails, then there is a possible null pointer dereference: indexname [nullPointerOutOfMemory] lookup-1.08b.orig/lib/loadfile.c:47:30: note: Assuming allocation function fails lookup-1.08b.orig/lib/loadfile.c:47:30: note: Assignment 'indexname=xmalloc((unsigned int)(strlen((void*)datafile_name)+strlen(".jin")+2))', assigned value is 0 lookup-1.08b.orig/lib/loadfile.c:50:12: note: Null pointer dereference lookup-1.08b.orig/lib/loadfile.c:66:14: style: Local variable 'filesize' shadows outer function [shadowFunction] lookup-1.08b.orig/lib/virtfile.h:58:17: note: Shadowed declaration lookup-1.08b.orig/lib/loadfile.c:66:14: note: Shadow variable lookup-1.08b.orig/lib/loadfile.c:66:14: style: Unused variable: filesize [unusedVariable] lookup-1.08b.orig/lib/output.c:245:19: style: Condition 'mcount++>20' is always false [knownConditionTrueFalse] lookup-1.08b.orig/lib/output.c:236:18: note: Assignment 'mcount=0', assigned value is 0 lookup-1.08b.orig/lib/output.c:245:19: note: Condition 'mcount++>20' is always false lookup-1.08b.orig/lib/output.c:276:34: style:inconclusive: Function 'output_pager_transparent' argument 1 names different: declaration '' definition 't'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/lib/output.c:286:38: style:inconclusive: Function 'output_pager_lines' argument 1 names different: declaration '' definition 'new'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/lib/output.c:294:40: style:inconclusive: Function 'output_pager_columns' argument 1 names different: declaration '' definition 'new'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/lib/output.c:514:24: style:inconclusive: Function 'output' argument 1 names different: declaration 'str' definition 'string'. [funcArgNamesDifferent] lookup-1.08b.orig/lib/output.h:53:31: note: Function 'output' argument 1 names different: declaration 'str' definition 'string'. lookup-1.08b.orig/lib/output.c:514:24: note: Function 'output' argument 1 names different: declaration 'str' definition 'string'. lookup-1.08b.orig/lib/output.c:814:14: style: Variable 'fstart' is assigned a value that is never used. [unreadVariable] lookup-1.08b.orig/lib/output.c:857:55: error: va_list 'ap' was opened but not closed by va_end(). [va_end_missing] lookup-1.08b.orig/lib/output.c:881:1: error: va_list 'ap' was opened but not closed by va_end(). [va_end_missing] lookup-1.08b.orig/lib/output.c:897:1: error: va_list 'ap' was opened but not closed by va_end(). [va_end_missing] lookup-1.08b.orig/lib/replace.c:96:20: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lookup-1.08b.orig/lib/replace.c:95:26: note: Assuming allocation function fails lookup-1.08b.orig/lib/replace.c:95:17: note: Assignment 'nptr=*new=xmalloc(required_len)', assigned value is 0 lookup-1.08b.orig/lib/replace.c:96:20: note: Null pointer addition lookup-1.08b.orig/lib/replace.c:28:27: style: Variable 'new_end' can be declared as pointer to const [constVariablePointer] lookup-1.08b.orig/lib/romaji2kana.c:59:12: error: The code contains unhandled character(s) (character code=164). Neither unicode nor extended ascii is supported. [unhandledChar] lookup-1.08b.orig/lib/std_romaji.c:100:3: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] lookup-1.08b.orig/lib/std_romaji.c:107:6: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] lookup-1.08b.orig/lib/std_romaji.c:252:6: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] lookup-1.08b.orig/lib/std_romaji.c:258:2: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] lookup-1.08b.orig/lib/std_romaji.c:218:11: style: Condition 'ptr==start_of_line' is always false [knownConditionTrueFalse] lookup-1.08b.orig/lib/std_romaji.c:216:10: note: Assuming that condition 'ptr>start_of_line' is not redundant lookup-1.08b.orig/lib/std_romaji.c:218:11: note: Condition 'ptr==start_of_line' is always false lookup-1.08b.orig/lib/strsave.c:11:45: style:inconclusive: Function 'strsave' argument 1 names different: declaration '' definition 'str'. [funcArgNamesDifferentUnnamed] lookup-1.08b.orig/lib/termset.c:99:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] lookup-1.08b.orig/lib/termset.c:115:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] lookup-1.08b.orig/lib/virtfile.c:99:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable text [valueFlowBailoutIncompleteVar] lookup-1.08b.orig/lib/virtfile.c:151:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable text [valueFlowBailoutIncompleteVar] lookup-1.08b.orig/lib/virtfile.c:66:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] lookup-1.08b.orig/lib/virtfile.c:66:11: warning: If memory allocation fails, then there is a possible null pointer dereference: common [nullPointerOutOfMemory] lookup-1.08b.orig/lib/virtfile.c:65:21: note: Assuming allocation function fails lookup-1.08b.orig/lib/virtfile.c:65:21: note: Assignment 'common=xmalloc(sizeof(struct Page)*PAGE_COUNT)', assigned value is 0 lookup-1.08b.orig/lib/virtfile.c:66:11: note: Null pointer dereference lookup-1.08b.orig/lib/virtfile.c:83:5: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] lookup-1.08b.orig/lib/virtfile.c:82:16: note: Assuming allocation function fails lookup-1.08b.orig/lib/virtfile.c:82:16: note: Assignment 'v=xmalloc(sizeof(*v))', assigned value is 0 lookup-1.08b.orig/lib/virtfile.c:83:5: note: Null pointer dereference lookup-1.08b.orig/lib/virtfile.c:84:5: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] lookup-1.08b.orig/lib/virtfile.c:82:16: note: Assuming allocation function fails lookup-1.08b.orig/lib/virtfile.c:82:16: note: Assignment 'v=xmalloc(sizeof(*v))', assigned value is 0 lookup-1.08b.orig/lib/virtfile.c:84:5: note: Null pointer dereference lookup-1.08b.orig/lib/virtfile.c:85:5: warning: If memory allocation fails, then there is a possible null pointer dereference: v [nullPointerOutOfMemory] lookup-1.08b.orig/lib/virtfile.c:82:16: note: Assuming allocation function fails lookup-1.08b.orig/lib/virtfile.c:82:16: note: Assignment 'v=xmalloc(sizeof(*v))', assigned value is 0 lookup-1.08b.orig/lib/virtfile.c:85:5: note: Null pointer dereference lookup-1.08b.orig/lib/virtfile.c:213:22: style: Variable 'info' can be declared as pointer to const [constVariablePointer] lookup-1.08b.orig/lib/virtfile.c:61:9: style: Unused variable: i [unusedVariable] lookup-1.08b.orig/lookup.c:856:3: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] lookup-1.08b.orig/lookup.c:1154:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] lookup-1.08b.orig/lookup.c:313:16: warning: Identical condition 'level==0', second condition is always false [identicalConditionAfterEarlyExit] lookup-1.08b.orig/lookup.c:311:16: note: If condition 'level==0' is true, the function will return/exit lookup-1.08b.orig/lookup.c:313:16: note: Testing identical condition 'level==0' lookup-1.08b.orig/lookup.c:548:6: warning: If memory allocation fails, then there is a possible null pointer dereference: (char***)mem [nullPointerOutOfMemory] lookup-1.08b.orig/lookup.c:547:25: note: Assuming allocation function fails lookup-1.08b.orig/lookup.c:547:25: note: Assignment 'mem=xmalloc(size+sizeof(mem))', assigned value is 0 lookup-1.08b.orig/lookup.c:548:6: note: Null pointer dereference lookup-1.08b.orig/lookup.c:787:32: style: Parameter 's' can be declared as pointer to const [constParameterPointer] lookup-1.08b.orig/lookup.c:547:12: warning: Size of pointer 'mem' used instead of size of its data. [pointerSize] lookup-1.08b.orig/lookup.c:380:7: error: Uninitialized variable: doit [uninitvar] lookup-1.08b.orig/lookup.c:378:18: note: Assuming condition is false lookup-1.08b.orig/lookup.c:380:7: note: Uninitialized variable: doit lookup-1.08b.orig/regextest.c:621:11: warning: Identical inner 'if' condition is always true. [identicalInnerCondition] lookup-1.08b.orig/regextest.c:614:14: note: outer condition: argc>1 lookup-1.08b.orig/regextest.c:621:11: note: identical inner condition: argc>1 lookup-1.08b.orig/regextest.c:358:20: warning: If memory allocation fails, then there is a possible null pointer dereference: ina [nullPointerOutOfMemory] lookup-1.08b.orig/regextest.c:349:31: note: Assuming allocation function fails lookup-1.08b.orig/regextest.c:349:31: note: Assignment 'a=xmalloc(strlen((void*)A)+1)', assigned value is 0 lookup-1.08b.orig/regextest.c:358:16: note: Assignment 'ina=a', assigned value is 0 lookup-1.08b.orig/regextest.c:358:20: note: Null pointer dereference lookup-1.08b.orig/regextest.c:352:29: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] lookup-1.08b.orig/regextest.c:350:31: note: Assuming allocation function fails lookup-1.08b.orig/regextest.c:350:31: note: Assignment 'b=xmalloc(strlen((void*)B)+1)', assigned value is 0 lookup-1.08b.orig/regextest.c:352:29: note: Null pointer addition lookup-1.08b.orig/regextest.c:352:20: style: Variable 'bend' can be declared as pointer to const [constVariablePointer] lookup-1.08b.orig/regextest.c:400:17: style: Variable 'inb' can be declared as pointer to const [constVariablePointer] lookup-1.08b.orig/regextest.c:597:26: style: Parameter 'argv' can be declared as const array [constParameter] diff: head lookup-1.08b.orig/apply_regex.c:35:42: style:inconclusive: Function 'output_line' argument 1 names different: declaration '' definition 'slot'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/apply_regex.c:35:56: style:inconclusive: Function 'output_line' argument 2 names different: declaration '' definition 'line'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/apply_regex.c:35:71: style:inconclusive: Function 'output_line' argument 3 names different: declaration '' definition 'length'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/commands.c:1413:33: style:inconclusive: Function 'cmd_output_encoding' argument 1 names different: declaration '' definition 'main_style'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/commands.c:1413:53: style:inconclusive: Function 'cmd_output_encoding' argument 2 names different: declaration '' definition 'jis_year'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/commands.c:1414:12: style:inconclusive: Function 'cmd_output_encoding' argument 3 names different: declaration '' definition 'jis_english'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/commands.c:1414:33: style:inconclusive: Function 'cmd_output_encoding' argument 4 names different: declaration '' definition 'other'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/commands.c:1712:29: style:inconclusive: Function 'cmd_help' argument 1 names different: declaration '' definition 'str'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/commands.c:1761:27: style:inconclusive: Function 'parse_command' argument 1 names different: declaration '' definition 'line'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/commands.c:1761:42: style:inconclusive: Function 'parse_command' argument 2 names different: declaration '' definition 'len'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/commands.c:1761:56: style:inconclusive: Function 'parse_command' argument 3 names different: declaration '' definition 'accept'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/commands.c:1761:73: style:inconclusive: Function 'parse_command' argument 4 names different: declaration '' definition 'skip'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/commands.c:1886:41: style:inconclusive: Function 'read_commands_from_file' argument 1 names different: declaration '' definition 'file'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/commands.c:1886:56: style:inconclusive: Function 'read_commands_from_file' argument 2 names different: declaration '' definition 'accept'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/commands.c:1886:73: style:inconclusive: Function 'read_commands_from_file' argument 3 names different: declaration '' definition 'skip'. [funcArgNamesDifferentUnnamed] 2.20.0 lookup-1.08b.orig/commands.c:743:2: warning: If memory allocation fails, then there is a possible null pointer dereference: slot [nullPointerOutOfMemory] lookup-1.08b.orig/commands.c:727:16: note: Assuming allocation function fails lookup-1.08b.orig/commands.c:727:16: note: Assignment 'slot=xmalloc(sizeof(struct slot_info))', assigned value is 0 lookup-1.08b.orig/commands.c:743:2: note: Null pointer dereference 2.20.0 lookup-1.08b.orig/commands.c:744:2: warning: If memory allocation fails, then there is a possible null pointer dereference: slot [nullPointerOutOfMemory] lookup-1.08b.orig/commands.c:727:16: note: Assuming allocation function fails lookup-1.08b.orig/commands.c:727:16: note: Assignment 'slot=xmalloc(sizeof(struct slot_info))', assigned value is 0 lookup-1.08b.orig/commands.c:744:2: note: Null pointer dereference 2.20.0 lookup-1.08b.orig/commands.c:745:2: warning: If memory allocation fails, then there is a possible null pointer dereference: slot [nullPointerOutOfMemory] lookup-1.08b.orig/commands.c:727:16: note: Assuming allocation function fails lookup-1.08b.orig/commands.c:727:16: note: Assignment 'slot=xmalloc(sizeof(struct slot_info))', assigned value is 0 lookup-1.08b.orig/commands.c:745:2: note: Null pointer dereference 2.20.0 lookup-1.08b.orig/commands.c:746:2: warning: If memory allocation fails, then there is a possible null pointer dereference: slot [nullPointerOutOfMemory] lookup-1.08b.orig/commands.c:727:16: note: Assuming allocation function fails lookup-1.08b.orig/commands.c:727:16: note: Assignment 'slot=xmalloc(sizeof(struct slot_info))', assigned value is 0 lookup-1.08b.orig/commands.c:746:2: note: Null pointer dereference 2.20.0 lookup-1.08b.orig/commands.c:747:2: warning: If memory allocation fails, then there is a possible null pointer dereference: slot [nullPointerOutOfMemory] lookup-1.08b.orig/commands.c:727:16: note: Assuming allocation function fails lookup-1.08b.orig/commands.c:727:16: note: Assignment 'slot=xmalloc(sizeof(struct slot_info))', assigned value is 0 lookup-1.08b.orig/commands.c:747:2: note: Null pointer dereference 2.20.0 lookup-1.08b.orig/commands.c:748:2: warning: If memory allocation fails, then there is a possible null pointer dereference: slot [nullPointerOutOfMemory] lookup-1.08b.orig/commands.c:727:16: note: Assuming allocation function fails lookup-1.08b.orig/commands.c:727:16: note: Assignment 'slot=xmalloc(sizeof(struct slot_info))', assigned value is 0 lookup-1.08b.orig/commands.c:748:2: note: Null pointer dereference 2.20.0 lookup-1.08b.orig/commands.c:749:2: warning: If memory allocation fails, then there is a possible null pointer dereference: slot [nullPointerOutOfMemory] lookup-1.08b.orig/commands.c:727:16: note: Assuming allocation function fails lookup-1.08b.orig/commands.c:727:16: note: Assignment 'slot=xmalloc(sizeof(struct slot_info))', assigned value is 0 lookup-1.08b.orig/commands.c:749:2: note: Null pointer dereference 2.20.0 lookup-1.08b.orig/commands.c:750:2: warning: If memory allocation fails, then there is a possible null pointer dereference: slot [nullPointerOutOfMemory] lookup-1.08b.orig/commands.c:727:16: note: Assuming allocation function fails lookup-1.08b.orig/commands.c:727:16: note: Assignment 'slot=xmalloc(sizeof(struct slot_info))', assigned value is 0 lookup-1.08b.orig/commands.c:750:2: note: Null pointer dereference 2.20.0 lookup-1.08b.orig/commands.c:751:2: warning: If memory allocation fails, then there is a possible null pointer dereference: slot [nullPointerOutOfMemory] lookup-1.08b.orig/commands.c:727:16: note: Assuming allocation function fails lookup-1.08b.orig/commands.c:727:16: note: Assignment 'slot=xmalloc(sizeof(struct slot_info))', assigned value is 0 lookup-1.08b.orig/commands.c:751:2: note: Null pointer dereference head lookup-1.08b.orig/lib/jreadline.c:168:39: style:inconclusive: Function 'add_history' argument 1 names different: declaration '' definition 'text'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/lib/output.c:276:34: style:inconclusive: Function 'output_pager_transparent' argument 1 names different: declaration '' definition 't'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/lib/output.c:286:38: style:inconclusive: Function 'output_pager_lines' argument 1 names different: declaration '' definition 'new'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/lib/output.c:294:40: style:inconclusive: Function 'output_pager_columns' argument 1 names different: declaration '' definition 'new'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/lib/strsave.c:11:45: style:inconclusive: Function 'strsave' argument 1 names different: declaration '' definition 'str'. [funcArgNamesDifferentUnnamed] head lookup-1.08b.orig/lookup.c:1154:5: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] head lookup-1.08b.orig/lookup.c:313:16: warning: Identical condition 'level==0', second condition is always false [identicalConditionAfterEarlyExit] lookup-1.08b.orig/lookup.c:311:16: note: If condition 'level==0' is true, the function will return/exit lookup-1.08b.orig/lookup.c:313:16: note: Testing identical condition 'level==0' 2.20.0 lookup-1.08b.orig/lookup.c:354:2: error: syntax error [syntaxError] head lookup-1.08b.orig/lookup.c:380:7: error: Uninitialized variable: doit [uninitvar] lookup-1.08b.orig/lookup.c:378:18: note: Assuming condition is false lookup-1.08b.orig/lookup.c:380:7: note: Uninitialized variable: doit head lookup-1.08b.orig/lookup.c:547:12: warning: Size of pointer 'mem' used instead of size of its data. [pointerSize] head lookup-1.08b.orig/lookup.c:548:6: warning: If memory allocation fails, then there is a possible null pointer dereference: (char***)mem [nullPointerOutOfMemory] lookup-1.08b.orig/lookup.c:547:25: note: Assuming allocation function fails lookup-1.08b.orig/lookup.c:547:25: note: Assignment 'mem=xmalloc(size+sizeof(mem))', assigned value is 0 lookup-1.08b.orig/lookup.c:548:6: note: Null pointer dereference head lookup-1.08b.orig/lookup.c:787:32: style: Parameter 's' can be declared as pointer to const [constParameterPointer] head lookup-1.08b.orig/lookup.c:856:3: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] DONE