2025-07-07 08:11 ftp://ftp.de.debian.org/debian/pool/main/c/cgit/cgit_1.2.3+git20240802.70.09d24d7+git2.46.0.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=lua --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.8.0-63-generic-x86_64-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: 0eb4dd8 (2025-07-06 21:35:35 +0200) count: 244 242 elapsed-time: 2.3 2.3 head-timing-info: old-timing-info: head results: cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cache.c:50:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cache.c:78:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cache.c:115:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cache.c:158:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cache.c:172:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable F_WRLCK [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cache.c:214:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cache.c:227:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cache.c:361:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cache.c:424:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cache.c:470:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cache.c:47:8: style: Variable 'bufz' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cache.c:257:17: style: Variable 's' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.c:374:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGIT_CACHE_ROOT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.c:478:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.c:496:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.c:601:8: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.c:776:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.c:889:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.c:924:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.c:975:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CGIT_VERSION [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.c:791:19: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.c:790:19: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.c:790:19: note: Assignment 't=xstrdup(txt)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.c:791:19: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.c:788:35: style: Parameter 'txt' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/configfile.c:29:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/configfile.c:42:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/configfile.c:72:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:152:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable RTLD_NEXT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:201:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:118:2: warning: If memory allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:118:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:120:2: warning: If memory allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:120:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:121:9: warning: If memory allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:121:9: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:122:2: warning: If memory allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:122:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:122:15: warning: If memory allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:122:15: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:128:9: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:117:24: note: Calling function 'cgit_exec_filter_init', 1st argument 'f' value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:128:9: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:129:2: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:117:24: note: Calling function 'cgit_exec_filter_init', 1st argument 'f' value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:129:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:130:2: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:117:24: note: Calling function 'cgit_exec_filter_init', 1st argument 'f' value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:130:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:131:2: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:117:24: note: Calling function 'cgit_exec_filter_init', 1st argument 'f' value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:131:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:132:2: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:117:24: note: Calling function 'cgit_exec_filter_init', 1st argument 'f' value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:132:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:133:2: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:117:24: note: Calling function 'cgit_exec_filter_init', 1st argument 'f' value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:133:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:134:2: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:117:24: note: Calling function 'cgit_exec_filter_init', 1st argument 'f' value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:134:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:136:2: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:117:24: note: Calling function 'cgit_exec_filter_init', 1st argument 'f' value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:136:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:353:9: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:352:18: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:352:18: note: Assignment 'filter=xmalloc(sizeof(*filter))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:353:9: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:354:2: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:352:18: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:352:18: note: Assignment 'filter=xmalloc(sizeof(*filter))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:354:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:355:2: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:352:18: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:352:18: note: Assignment 'filter=xmalloc(sizeof(*filter))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:355:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:356:2: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:352:18: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:352:18: note: Assignment 'filter=xmalloc(sizeof(*filter))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:356:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:357:2: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:352:18: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:352:18: note: Assignment 'filter=xmalloc(sizeof(*filter))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:357:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:358:2: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:352:18: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:352:18: note: Assignment 'filter=xmalloc(sizeof(*filter))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:358:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:359:2: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:352:18: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:352:18: note: Assignment 'filter=xmalloc(sizeof(*filter))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:359:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:93:27: style: Variable 'filter' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:343:21: style: Variable 'filter' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/html.c:63:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/html.c:71:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/html.c:95:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/html.c:116:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/html.c:136:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SSIZE_MAX [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/html.c:162:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/html.c:321:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/html.c:81:27: style:inconclusive: Function 'html_raw' argument 1 names different: declaration 'txt' definition 'data'. [funcArgNamesDifferent] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/html.h:6:34: note: Function 'html_raw' argument 1 names different: declaration 'txt' definition 'data'. cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/html.c:81:27: note: Function 'html_raw' argument 1 names different: declaration 'txt' definition 'data'. cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/html.c:159:29: style:inconclusive: Function 'html_attrf' argument 1 names different: declaration 'format' definition 'fmt'. [funcArgNamesDifferent] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/html.h:19:36: note: Function 'html_attrf' argument 1 names different: declaration 'format' definition 'fmt'. cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/html.c:159:29: note: Function 'html_attrf' argument 1 names different: declaration 'format' definition 'fmt'. cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/parsing.c:133:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/parsing.c:203:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/parsing.c:137:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/parsing.c:136:15: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/parsing.c:136:15: note: Assignment 'ret=xcalloc(1,sizeof(struct commitinfo))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/parsing.c:137:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/scan-tree.c:19:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/scan-tree.c:87:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/scan-tree.c:191:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/scan-tree.c:242:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/scan-tree.c:139:14: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/scan-tree.c:75:29: style: Parameter 's' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:167:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:232:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable status [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:246:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:268:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ptr [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:326:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XDF_NEED_MINIMAL [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:348:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:386:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRING_LIST_INIT_DUP [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:423:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:450:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:545:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRING_LIST_INIT_NODUP [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:307:6: style: Condition '!load_mmfile(&file1,old_oid)' is always false [knownConditionTrueFalse] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:307:18: note: Calling function 'load_mmfile' returns 1 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:307:6: note: Condition '!load_mmfile(&file1,old_oid)' is always false cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:307:39: style: Condition '!load_mmfile(&file2,new_oid)' is always false [knownConditionTrueFalse] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:307:51: note: Calling function 'load_mmfile' returns 1 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:307:39: note: Condition '!load_mmfile(&file2,new_oid)' is always false cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:137:9: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:136:18: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:136:18: note: Assignment 'result=xmalloc(len+2)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:137:9: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:138:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:136:18: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:136:18: note: Assignment 'result=xmalloc(len+2)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:138:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:139:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:136:18: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:136:18: note: Assignment 'result=xmalloc(len+2)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:139:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:166:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ref [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:165:15: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:165:15: note: Assignment 'ref=xmalloc(sizeof(struct refinfo))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:166:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:167:2: warning: If memory allocation fails, then there is a possible null pointer dereference: ref [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:165:15: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:165:15: note: Assignment 'ref=xmalloc(sizeof(struct refinfo))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:167:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:168:10: warning: If memory allocation fails, then there is a possible null pointer dereference: ref [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:165:15: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:165:15: note: Assignment 'ref=xmalloc(sizeof(struct refinfo))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:168:10: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:359:3: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:358:17: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:358:17: note: Assignment 'item=xcalloc(1,sizeof(*item))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:359:3: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:360:3: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:358:17: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:358:17: note: Assignment 'item=xcalloc(1,sizeof(*item))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:360:3: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:179:40: style:inconclusive: Function 'cgit_free_taginfo' argument 1 names different: declaration 'info' definition 'tag'. [funcArgNamesDifferent] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.h:353:47: note: Function 'cgit_free_taginfo' argument 1 names different: declaration 'info' definition 'tag'. cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:179:40: note: Function 'cgit_free_taginfo' argument 1 names different: declaration 'info' definition 'tag'. cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:420:47: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:432:20: style: Variable 'q' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:433:15: style: Variable 'warn' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:544:14: style: Variable 'mimetype' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/shared.c:548:27: style: Variable 'mime' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-atom.c:31:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATE_ISO8601_STRICT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-atom.c:102:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-atom.c:41:14: warning: If memory allocation fails, then there is a possible null pointer dereference: mail [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-atom.c:40:17: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-atom.c:40:17: note: Assignment 'mail=xstrdup(info->author_email)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-atom.c:41:14: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blame.c:22:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blame.c:54:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blame.c:118:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRVEC_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blame.c:245:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blame.c:292:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blame.c:46:55: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blame.c:72:61: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blame.c:82:31: style: Parameter 'ent' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blame.c:266:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blob.c:29:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READ_TREE_RECURSIVE [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blob.c:57:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blob.c:92:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blob.c:143:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blob.c:23:66: style: Parameter 'base' can be declared as pointer to const. However it seems that 'walk_tree' is a callback function, if 'base' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blob.c:155:14: note: You might need to cast the function pointer here cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-blob.c:23:66: note: Parameter 'base' can be declared as pointer to const cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-clone.c:24:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-clone.c:44:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-clone.c:62:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-clone.c:92:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-commit.c:23:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-commit.c:25:14: style: Variable 'tmp2' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-diff.c:104:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DIFF_STATUS_COPIED [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-diff.c:263:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-diff.c:407:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-diff.c:386:34: style:inconclusive: Function 'cgit_print_diff' argument 1 names different: declaration 'new_hex' definition 'new_rev'. [funcArgNamesDifferent] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-diff.h:6:41: note: Function 'cgit_print_diff' argument 1 names different: declaration 'new_hex' definition 'new_rev'. cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-diff.c:386:34: note: Function 'cgit_print_diff' argument 1 names different: declaration 'new_hex' definition 'new_rev'. cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-diff.c:386:55: style:inconclusive: Function 'cgit_print_diff' argument 2 names different: declaration 'old_hex' definition 'old_rev'. [funcArgNamesDifferent] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-diff.h:6:62: note: Function 'cgit_print_diff' argument 2 names different: declaration 'old_hex' definition 'old_rev'. cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-diff.c:386:55: note: Function 'cgit_print_diff' argument 2 names different: declaration 'old_hex' definition 'old_rev'. cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-diff.c:128:36: style: Parameter 'line' can be declared as pointer to const. However it seems that 'count_diff_lines' is a callback function, if 'line' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-diff.c:166:34: note: You might need to cast the function pointer here cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-diff.c:128:36: note: Parameter 'line' can be declared as pointer to const cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-diff.c:243:56: style: Parameter 'path1' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-diff.c:244:42: style: Parameter 'path2' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-log.c:85:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-log.c:152:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-log.c:182:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-log.c:333:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-log.c:373:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRVEC_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-log.c:34:31: style: Parameter 'line' can be declared as pointer to const. However it seems that 'count_lines' is a callback function, if 'line' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-log.c:56:5: note: You might need to cast the function pointer here cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-log.c:34:31: note: Parameter 'line' can be declared as pointer to const cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-log.c:530:15: style: Variable 'commit' is assigned a value that is never used. [unreadVariable] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-log.c:541:21: style: Variable 'commit' is assigned a value that is never used. [unreadVariable] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-patch.c:25:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GIT_MAX_HEXSZ [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-plain.c:27:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-plain.c:146:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable READ_TREE_RECURSIVE [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-plain.c:186:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-plain.c:134:66: style: Parameter 'base' can be declared as pointer to const. However it seems that 'walk_tree' is a callback function, if 'base' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-plain.c:204:13: note: You might need to cast the function pointer here cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-plain.c:134:66: note: Parameter 'base' can be declared as pointer to const cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-plain.c:160:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-refs.c:71:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OBJ_COMMIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-refs.c:102:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OBJ_TAG [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-refs.c:160:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-refs.c:189:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-refs.c:24:18: style: Variable 'r1' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-refs.c:25:18: style: Variable 'r2' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-refs.c:32:18: style: Variable 'r1' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-refs.c:33:18: style: Variable 'r2' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-refs.c:62:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-refs.c:97:14: style: Variable 'tag' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-refs.c:99:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-repolist.c:19:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-repolist.c:37:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-repolist.c:78:45: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-repolist.c:85:39: style: Parameter 'repo' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-repolist.c:157:55: style: Parameter 'search' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-repolist.c:157:69: style: Parameter 'sort' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-repolist.c:160:8: style: Variable 'class' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-repolist.c:253:32: style: Parameter 'field' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:143:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:588:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OBJ_COMMIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:678:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PRIu64 [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:696:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DATE_ISO8601 [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:842:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:881:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable git_version_string [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:921:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable len [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:951:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:1046:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:1209:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:1248:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:91:2: warning: If memory allocation fails, then there is a possible null pointer dereference: query [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:87:23: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:87:23: note: Assignment 'query=xmalloc(len+2)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:91:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:93:29: warning: If memory allocation fails, then there is a possible null pointer dereference: start_url [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:87:23: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:87:23: note: Assignment 'query=xmalloc(len+2)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:92:14: note: Assignment 'start_url=query', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:93:29: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:103:7: warning: If memory allocation fails, then there is a possible null pointer dereference: query [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:87:23: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:87:23: note: Assignment 'query=xmalloc(len+2)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:103:7: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:587:2: warning: If memory allocation fails, then there is a possible null pointer dereference: shortrev [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:586:20: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:586:20: note: Assignment 'shortrev=xstrdup(fullrev)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:587:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:90:15: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:87:23: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:87:23: note: Assignment 'query=xmalloc(len+2)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:90:15: note: Null pointer addition cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:995:19: style: Redundant initialization for 'p'. The initialized value is overwritten before it is read. [redundantInitialization] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:990:10: note: p is initialized cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:995:19: note: p is overwritten cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:206:8: style: Variable 'delim' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:320:8: style: Variable 'delim' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:368:8: style: Variable 'delim' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:409:8: style: Variable 'delim' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:467:8: style: Variable 'delim' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:519:34: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:583:8: style: Variable 'page' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:583:26: style: Variable 'fullrev' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:583:36: style: Variable 'name' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:620:27: style: Variable 'item' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:773:51: style: Parameter 's' can be declared as pointer to const. However it seems that 'emit_css_link' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:826:38: note: You might need to cast the function pointer here cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:773:51: note: Parameter 's' can be declared as pointer to const cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:789:50: style: Parameter 's' can be declared as pointer to const. However it seems that 'emit_js_link' is a callback function, if 's' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:831:37: note: You might need to cast the function pointer here cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:789:50: note: Parameter 's' can be declared as pointer to const cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:942:8: style: Variable 'name' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:1012:8: style: Variable 'logo' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:1012:22: style: Variable 'logo_link' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:18:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRVEC_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:122:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:161:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:195:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:229:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:40:9: warning: If memory allocation fails, then there is a possible null pointer dereference: nargv [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:38:17: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:38:17: note: Assignment 'nargv=xmalloc(sizeof(char*)*(argv.nr+1))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:40:9: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:284:3: warning: If memory allocation fails, then there is a possible null pointer dereference: adj_filename [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:283:25: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:283:25: note: Assignment 'adj_filename=xstrdup(filename)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:284:3: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:284:23: warning: If memory allocation fails, then there is a possible null pointer dereference: adj_filename [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:283:25: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:283:25: note: Assignment 'adj_filename=xstrdup(filename)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:284:23: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:302:3: warning: If memory allocation fails, then there is a possible null pointer dereference: prefix [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:301:19: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:301:19: note: Assignment 'prefix=xstrdup(filename)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:302:3: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:244:41: warning: Either the condition 'new_start' is redundant or there is overflow in pointer subtraction. [nullPointerArithmeticRedundantCheck] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:242:10: note: Assuming that condition 'new_start' is not redundant cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:244:41: note: Null pointer subtraction cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:141:37: style: Local variable 'fmt' shadows outer function [shadowFunction] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.h:372:14: note: Shadowed declaration cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:141:37: note: Shadow variable cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:33:3: warning: If memory allocation fails, then there is a possible null pointer dereference: L [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:32:20: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:32:6: note: Assignment 'L=(int**)xcalloc(128,sizeof(int*))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:33:3: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:36:3: warning: If memory allocation fails, then there is a possible null pointer dereference: L [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:32:20: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:32:6: note: Assignment 'L=(int**)xcalloc(128,sizeof(int*))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:36:3: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:36:11: warning: If memory allocation fails, then there is a possible null pointer dereference: L [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:32:20: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:32:6: note: Assignment 'L=(int**)xcalloc(128,sizeof(int*))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:36:11: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:71:9: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:70:18: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:70:18: note: Assignment 'result=xmalloc(lcs_length+2)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:71:9: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:107:13: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: buf2 [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:105:16: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:105:16: note: Assignment 'buf2=xmalloc(len+1)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:107:13: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:124:3: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:123:19: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:123:19: note: Assignment 'result=xmalloc(1)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:124:3: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:134:2: warning: If memory allocation fails, then there is a possible null pointer dereference: result [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:133:18: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:133:18: note: Assignment 'result=xmalloc(result_len+1)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:134:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:168:2: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:167:39: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:167:39: note: Assignment 'item=xmalloc(sizeof(struct deferred_lines))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:168:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:169:2: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:167:39: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:167:39: note: Assignment 'item=xmalloc(sizeof(struct deferred_lines))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:169:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:170:2: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:167:39: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:167:39: note: Assignment 'item=xmalloc(sizeof(struct deferred_lines))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:170:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:182:2: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:181:39: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:181:39: note: Assignment 'item=xmalloc(sizeof(struct deferred_lines))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:182:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:183:2: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:181:39: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:181:39: note: Assignment 'item=xmalloc(sizeof(struct deferred_lines))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:183:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:184:2: warning: If memory allocation fails, then there is a possible null pointer dereference: item [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:181:39: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:181:39: note: Assignment 'item=xmalloc(sizeof(struct deferred_lines))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:184:2: note: Null pointer dereference cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:36:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:33:20: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:33:7: note: Assignment '*L=(int*)xcalloc(128*128,sizeof(int))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:36:13: note: Null pointer addition cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:40:47: style: Parameter 'A' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:40:56: style: Parameter 'B' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:92:33: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:165:36: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:179:36: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:193:52: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:193:64: style: Parameter 'lcs' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:243:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:391:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string_list_item [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:45:37: style: Parameter 'tm' can be declared as pointer to const. However it seems that 'pretty_week' is a callback function, if 'tm' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:133:55: note: You might need to cast the function pointer here cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:45:37: note: Parameter 'tm' can be declared as pointer to const cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:106:40: style: Parameter 'tm' can be declared as pointer to const. However it seems that 'pretty_quarter' is a callback function, if 'tm' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:135:67: note: You might need to cast the function pointer here cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:106:40: note: Parameter 'tm' can be declared as pointer to const cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:127:37: style: Parameter 'tm' can be declared as pointer to const. However it seems that 'pretty_year' is a callback function, if 'tm' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:136:55: note: You might need to cast the function pointer here cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:127:37: note: Parameter 'tm' can be declared as pointer to const cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:267:27: style: Variable 'author' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:270:27: style: Variable 'date' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:306:27: style: Variable 'author' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-summary.c:121:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable string [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-summary.c:104:19: style: Variable 'ref' can be declared as pointer to const [constVariablePointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-tag.c:45:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-tag.c:36:40: style: Parameter 'revname' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-tree.c:96:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-tree.c:183:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-tree.c:208:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-tree.c:317:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-tree.c:328:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable STRBUF_INIT [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-tree.c:377:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable the_repository [valueFlowBailoutIncompleteVar] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-tree.c:148:26: style: Local variable 'ctx' shadows outer variable [shadowVariable] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cgit.h:330:28: note: Shadowed declaration cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-tree.c:148:26: note: Shadow variable cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-tree.c:22:55: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-tree.c:164:64: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-tree.c:165:14: style: Parameter 'rev' can be declared as pointer to const [constParameterPointer] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:128:9: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [ctunullpointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:117:23: note: Calling function cgit_exec_filter_init, 1st argument is null cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:128:9: note: Dereferencing argument filter that is null diff: 2.17.0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/cache.c:441:16: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] head cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:122:15: warning: If memory allocation fails, then there is a possible null pointer dereference: f [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:122:15: note: Null pointer dereference head cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:128:9: warning: If memory allocation fails, then there is a possible null pointer dereference: filter [ctunullpointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:115:13: note: Assignment 'f=xmalloc(sizeof(*f))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:117:23: note: Calling function cgit_exec_filter_init, 1st argument is null cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/filter.c:128:9: note: Dereferencing argument filter that is null 2.17.0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/scan-tree.c:216:16: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] 2.17.0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:90:15: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:87:23: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:87:23: note: Assignment 'query=xmalloc(len+2)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:90:15: note: Null pointer addition head cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:90:15: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:87:23: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:87:23: note: Assignment 'query=xmalloc(len+2)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-shared.c:90:15: note: Null pointer addition head cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:284:23: warning: If memory allocation fails, then there is a possible null pointer dereference: adj_filename [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:283:25: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:283:25: note: Assignment 'adj_filename=xstrdup(filename)', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-snapshot.c:284:23: note: Null pointer dereference head cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:36:11: warning: If memory allocation fails, then there is a possible null pointer dereference: L [nullPointerOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:32:20: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:32:6: note: Assignment 'L=(int**)xcalloc(128,sizeof(int*))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:36:11: note: Null pointer dereference 2.17.0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:36:13: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:33:20: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:33:7: note: Assignment '*L=(int*)xcalloc(128*128,sizeof(int))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:36:13: note: Null pointer addition head cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:36:13: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:33:20: note: Assuming allocation function fails cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:33:7: note: Assignment '*L=(int*)xcalloc(128*128,sizeof(int))', assigned value is 0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-ssdiff.c:36:13: note: Null pointer addition 2.17.0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:106:40: style: Parameter 'tm' can be declared as pointer to const [constParameterPointer] head cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:106:40: style: Parameter 'tm' can be declared as pointer to const. However it seems that 'pretty_quarter' is a callback function, if 'tm' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:135:67: note: You might need to cast the function pointer here cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:106:40: note: Parameter 'tm' can be declared as pointer to const 2.17.0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:127:37: style: Parameter 'tm' can be declared as pointer to const [constParameterPointer] head cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:127:37: style: Parameter 'tm' can be declared as pointer to const. However it seems that 'pretty_year' is a callback function, if 'tm' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:136:55: note: You might need to cast the function pointer here cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:127:37: note: Parameter 'tm' can be declared as pointer to const 2.17.0 cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:45:37: style: Parameter 'tm' can be declared as pointer to const [constParameterPointer] head cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:45:37: style: Parameter 'tm' can be declared as pointer to const. However it seems that 'pretty_week' is a callback function, if 'tm' is declared with const you might also need to cast function pointer(s). [constParameterCallback] cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:133:55: note: You might need to cast the function pointer here cgit-09d24d7cd0b7e85633f2f43808b12871bb209d69/ui-stats.c:45:37: note: Parameter 'tm' can be declared as pointer to const DONE