2025-04-30 09:43 ftp://ftp.de.debian.org/debian/pool/main/n/ncbi-seg/ncbi-seg_0.0.20000620.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 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: d0ce649 (2025-04-29 15:30:02 +0200) count: 155 155 elapsed-time: 0.4 0.4 head-timing-info: old-timing-info: head results: ncbi-seg-0.0.20000620.orig/genwin.c:61:1: portability: Omitted return type of function 'genwininit' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/genwin.c:544:1: portability: Omitted return type of function 'readhdr' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/genwin.c:683:1: portability: Omitted return type of function 'skipline' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/genwin.c:717:1: portability: Omitted return type of function 'readseq' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/genwin.c:861:1: portability: Omitted return type of function 'tfree' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/genwin.c:111:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/genwin.c:165:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/genwin.c:516:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/genwin.c:554:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/genwin.c:688:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/genwin.c:733:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/genwin.c:853:15: warning: Either the condition 'rptr>1000' is redundant or the array 'record_ptrs[1000]' is accessed at index 1000, which is out of bounds. [arrayIndexOutOfBoundsCond] ncbi-seg-0.0.20000620.orig/genwin.c:848:12: note: Assuming that condition 'rptr>1000' is not redundant ncbi-seg-0.0.20000620.orig/genwin.c:853:15: note: Array index out of bounds ncbi-seg-0.0.20000620.orig/genwin.c:109:15: warning: If memory allocation fails, then there is a possible null pointer dereference: dbase [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:90:38: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:90:12: note: Assignment 'dbase=(struct Database*)malloc(sizeof(struct Database))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:109:15: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:121:4: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: dbase [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:90:38: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:90:12: note: Assignment 'dbase=(struct Database*)malloc(sizeof(struct Database))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:121:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:219:4: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:219:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:224:4: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:224:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:228:4: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:228:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:229:4: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:229:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:230:4: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:230:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:231:4: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:231:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:235:4: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:235:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:236:4: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:236:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:242:2: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:242:2: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:249:2: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:249:2: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:250:2: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:250:2: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:251:2: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:251:2: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:255:2: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:255:2: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:256:2: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:256:2: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:257:2: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:257:2: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:258:2: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:258:2: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:259:2: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:259:2: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:368:6: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:261:10: note: Calling function 'stateon', 1st argument 'win' value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:368:6: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:371:2: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:261:10: note: Calling function 'stateon', 1st argument 'win' value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:371:2: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:374:12: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:261:10: note: Calling function 'stateon', 1st argument 'win' value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:374:12: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:376:3: warning: If memory allocation fails, then there is a possible null pointer dereference: win [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:215:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:215:10: note: Assignment 'win=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:261:10: note: Calling function 'stateon', 1st argument 'win' value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:374:34: note: Assuming condition is false ncbi-seg-0.0.20000620.orig/genwin.c:376:3: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:416:3: warning: If memory allocation fails, then there is a possible null pointer dereference: entray [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:412:27: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:412:11: note: Assignment 'entray=(double*)malloc((window+1)*sizeof(*entray))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:416:3: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:494:4: warning: If memory allocation fails, then there is a possible null pointer dereference: seq [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:492:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:492:10: note: Assignment 'seq=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:494:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:498:4: warning: If memory allocation fails, then there is a possible null pointer dereference: seq [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:492:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:492:10: note: Assignment 'seq=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:498:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:499:4: warning: If memory allocation fails, then there is a possible null pointer dereference: seq [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:492:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:492:10: note: Assignment 'seq=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:499:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:500:4: warning: If memory allocation fails, then there is a possible null pointer dereference: seq [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:492:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:492:10: note: Assignment 'seq=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:500:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:504:4: warning: If memory allocation fails, then there is a possible null pointer dereference: seq [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:492:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:492:10: note: Assignment 'seq=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:504:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:505:4: warning: If memory allocation fails, then there is a possible null pointer dereference: seq [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:492:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:492:10: note: Assignment 'seq=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:505:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:552:9: warning: If memory allocation fails, then there is a possible null pointer dereference: seq [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:492:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:492:10: note: Assignment 'seq=(struct Sequence*)malloc(sizeof(struct Sequence))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:509:17: note: Calling function 'readhdr', 1st argument 'seq' value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:552:9: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:571:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:570:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:570:10: note: Assignment 'str=(struct strlist*)malloc(sizeof(struct strlist))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:571:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:582:10: warning: If memory allocation fails, then there is a possible null pointer dereference: curstr [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:580:51: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:580:25: note: Assignment 'curstr->next=(struct strlist*)malloc(sizeof(struct strlist))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:581:25: note: Assignment 'curstr=curstr->next', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:582:10: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:585:7: warning: If memory allocation fails, then there is a possible null pointer dereference: curstr [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:580:51: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:580:25: note: Assignment 'curstr->next=(struct strlist*)malloc(sizeof(struct strlist))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:581:25: note: Assignment 'curstr=curstr->next', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:585:7: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:590:4: warning: If memory allocation fails, then there is a possible null pointer dereference: curstr [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:570:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:570:10: note: Assignment 'str=(struct strlist*)malloc(sizeof(struct strlist))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:572:13: note: Assignment 'curstr=str', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:574:36: note: Assuming condition is false ncbi-seg-0.0.20000620.orig/genwin.c:590:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:730:4: warning: If memory allocation fails, then there is a possible null pointer dereference: str [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:729:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:729:10: note: Assignment 'str=(struct strlist*)malloc(sizeof(struct strlist))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:730:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:744:4: warning: If memory allocation fails, then there is a possible null pointer dereference: curstr [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:742:44: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:742:19: note: Assignment 'curstr->next=(struct strlist*)malloc(sizeof(*curstr))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:743:19: note: Assignment 'curstr=curstr->next', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:744:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:745:4: warning: If memory allocation fails, then there is a possible null pointer dereference: curstr [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:742:44: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:742:19: note: Assignment 'curstr->next=(struct strlist*)malloc(sizeof(*curstr))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:743:19: note: Assignment 'curstr=curstr->next', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:745:4: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/genwin.c:769:2: warning: If memory allocation fails, then there is a possible null pointer dereference: curstr [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/genwin.c:729:36: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/genwin.c:729:10: note: Assignment 'str=(struct strlist*)malloc(sizeof(struct strlist))', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:731:13: note: Assignment 'curstr=str', assigned value is 0 ncbi-seg-0.0.20000620.orig/genwin.c:733:42: note: Assuming condition is false ncbi-seg-0.0.20000620.orig/genwin.c:769:2: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/hiseg.c:48:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:89:1: portability: Omitted return type of function 'getparams' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:208:1: portability: Omitted return type of function 'segseq' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:324:1: portability: Omitted return type of function 'hasdash' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:341:1: portability: Omitted return type of function 'findlo' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:358:1: portability: Omitted return type of function 'findhi' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:375:1: portability: Omitted return type of function 'trim' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:519:1: portability: Omitted return type of function 'mergesegs' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:565:1: portability: Omitted return type of function 'report' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:638:1: portability: Omitted return type of function 'singreport' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:675:1: portability: Omitted return type of function 'prettyreport' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:730:1: portability: Omitted return type of function 'pretreereport' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:823:1: portability: Omitted return type of function 'space' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:844:1: portability: Omitted return type of function 'seqout' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:918:1: portability: Omitted return type of function 'appendseg' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:942:1: portability: Omitted return type of function 'freesegs' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/hiseg.c:957:1: portability: Omitted return type of function 'usage' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:48:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:89:1: portability: Omitted return type of function 'getparams' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:209:1: portability: Omitted return type of function 'segseq' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:325:1: portability: Omitted return type of function 'hasdash' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:342:1: portability: Omitted return type of function 'findlo' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:359:1: portability: Omitted return type of function 'findhi' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:376:1: portability: Omitted return type of function 'trim' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:506:1: portability: Omitted return type of function 'mergesegs' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:552:1: portability: Omitted return type of function 'report' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:625:1: portability: Omitted return type of function 'singreport' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:662:1: portability: Omitted return type of function 'prettyreport' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:717:1: portability: Omitted return type of function 'pretreereport' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:810:1: portability: Omitted return type of function 'space' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:831:1: portability: Omitted return type of function 'seqout' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:905:1: portability: Omitted return type of function 'appendseg' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:929:1: portability: Omitted return type of function 'freesegs' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/seg.c:944:1: portability: Omitted return type of function 'usage' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] ncbi-seg-0.0.20000620.orig/genwin.c:63:13: style: Variable 'cp0' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/genwin.c:129:9: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] ncbi-seg-0.0.20000620.orig/genwin.c:340:23: style: Variable 'seqmax' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/genwin.c:358:7: style: Parameter 's1' can be declared as pointer to const. However it seems that 'state_cmp' is a callback function, if 's1' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ncbi-seg-0.0.20000620.orig/genwin.c:381:48: note: You might need to cast the function pointer here ncbi-seg-0.0.20000620.orig/genwin.c:358:7: note: Parameter 's1' can be declared as pointer to const ncbi-seg-0.0.20000620.orig/genwin.c:358:12: style: Parameter 's2' can be declared as pointer to const. However it seems that 'state_cmp' is a callback function, if 's2' is declared with const you might also need to cast function pointer(s). [constParameterCallback] ncbi-seg-0.0.20000620.orig/genwin.c:381:48: note: You might need to cast the function pointer here ncbi-seg-0.0.20000620.orig/genwin.c:358:12: note: Parameter 's2' can be declared as pointer to const ncbi-seg-0.0.20000620.orig/genwin.c:428:16: style: Variable 'svmax' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/genwin.c:697:9: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] ncbi-seg-0.0.20000620.orig/genwin.c:797:17: style: Variable 'stringmax' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/genwin.c:810:17: style: Variable 'stringmax' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/genwin.c:208:8: style: Unused variable: i [unusedVariable] ncbi-seg-0.0.20000620.orig/hiseg.c:64:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/hiseg.c:124:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/hiseg.c:606:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/hiseg.c:656:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/hiseg.c:697:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/hiseg.c:745:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/hiseg.c:837:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/hiseg.c:873:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/hiseg.c:960:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/seg.c:64:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/seg.c:125:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/seg.c:593:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/seg.c:643:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/seg.c:684:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/seg.c:732:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/seg.c:824:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/seg.c:860:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/seg.c:947:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] ncbi-seg-0.0.20000620.orig/hiseg.c:793:9: style: Condition 'ilength*sizeof(double))', assigned value is 0 ncbi-seg-0.0.20000620.orig/hiseg.c:299:7: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/hiseg.c:314:7: warning: If memory allocation fails, then there is a possible null pointer dereference: H [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/hiseg.c:295:25: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/hiseg.c:295:8: note: Assignment 'H=(double*)malloc(seq->length*sizeof(double))', assigned value is 0 ncbi-seg-0.0.20000620.orig/hiseg.c:310:28: note: Assuming condition is false ncbi-seg-0.0.20000620.orig/hiseg.c:314:7: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/seg.c:780:9: style: Condition 'ilength*sizeof(double))', assigned value is 0 ncbi-seg-0.0.20000620.orig/seg.c:300:7: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/seg.c:315:7: warning: If memory allocation fails, then there is a possible null pointer dereference: H [nullPointerOutOfMemory] ncbi-seg-0.0.20000620.orig/seg.c:296:25: note: Assuming allocation function fails ncbi-seg-0.0.20000620.orig/seg.c:296:8: note: Assignment 'H=(double*)malloc(seq->length*sizeof(double))', assigned value is 0 ncbi-seg-0.0.20000620.orig/seg.c:311:28: note: Assuming condition is false ncbi-seg-0.0.20000620.orig/seg.c:315:7: note: Null pointer dereference ncbi-seg-0.0.20000620.orig/hiseg.c:327:23: style: Variable 'seqmax' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/hiseg.c:343:11: style: Parameter 'H' can be declared as pointer to const [constParameterPointer] ncbi-seg-0.0.20000620.orig/hiseg.c:360:11: style: Parameter 'H' can be declared as pointer to const [constParameterPointer] ncbi-seg-0.0.20000620.orig/hiseg.c:458:8: style: Parameter 'sv' can be declared as pointer to const [constParameterPointer] ncbi-seg-0.0.20000620.orig/hiseg.c:477:16: style: Parameter 'sv' can be declared as pointer to const [constParameterPointer] ncbi-seg-0.0.20000620.orig/hiseg.c:520:20: style: Parameter 'seq' can be declared as pointer to const [constParameterPointer] ncbi-seg-0.0.20000620.orig/hiseg.c:570:26: style: Variable 'nextseg' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/hiseg.c:642:17: style: Variable 'proseqmax' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/hiseg.c:680:17: style: Variable 'proseqmax' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/hiseg.c:852:17: style: Variable 'proseqmax' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/hiseg.c:852:29: style: Variable 'id' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/seg.c:328:23: style: Variable 'seqmax' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/seg.c:344:11: style: Parameter 'H' can be declared as pointer to const [constParameterPointer] ncbi-seg-0.0.20000620.orig/seg.c:361:11: style: Parameter 'H' can be declared as pointer to const [constParameterPointer] ncbi-seg-0.0.20000620.orig/seg.c:445:8: style: Parameter 'sv' can be declared as pointer to const [constParameterPointer] ncbi-seg-0.0.20000620.orig/seg.c:464:16: style: Parameter 'sv' can be declared as pointer to const [constParameterPointer] ncbi-seg-0.0.20000620.orig/seg.c:507:20: style: Parameter 'seq' can be declared as pointer to const [constParameterPointer] ncbi-seg-0.0.20000620.orig/seg.c:557:26: style: Variable 'nextseg' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/seg.c:629:17: style: Variable 'proseqmax' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/seg.c:667:17: style: Variable 'proseqmax' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/seg.c:839:17: style: Variable 'proseqmax' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/seg.c:839:29: style: Variable 'id' can be declared as pointer to const [constVariablePointer] ncbi-seg-0.0.20000620.orig/hiseg.c:55:8: style: Unused variable: ctime [unusedVariable] ncbi-seg-0.0.20000620.orig/hiseg.c:737:7: style: Unused variable: buffer [unusedVariable] ncbi-seg-0.0.20000620.orig/hiseg.c:853:9: style: Unused variable: outbuf [unusedVariable] ncbi-seg-0.0.20000620.orig/hiseg.c:856:11: style: Unused variable: ctr [unusedVariable] ncbi-seg-0.0.20000620.orig/seg.c:55:8: style: Unused variable: ctime [unusedVariable] ncbi-seg-0.0.20000620.orig/seg.c:724:7: style: Unused variable: buffer [unusedVariable] ncbi-seg-0.0.20000620.orig/seg.c:840:9: style: Unused variable: outbuf [unusedVariable] ncbi-seg-0.0.20000620.orig/seg.c:843:11: style: Unused variable: ctr [unusedVariable] diff: DONE