2022-06-28 13:58 ftp://ftp.de.debian.org/debian/pool/main/h/h2o/h2o_2.2.5+dfsg2.orig.tar.xz cppcheck-options: --library=posix --library=gnu --showtime=top5 --check-library --inconclusive --enable=style,information --inline-suppr --template=daca2 -D__GNUC__ --platform=unix64 -rp=temp -j4 platform: Linux-5.10.0-15-amd64-x86_64-with-glibc2.31 python: 3.9.2 client-version: 1.3.25 compiler: g++ (Debian 10.2.1-6) 10.2.1 20210110 cppcheck: head 2.8 head-info: 2223cd2 (2022-06-28 14:02:02 +0200) count: 564 562 elapsed-time: 151.6 108.0 head-timing-info: Overall time: 0s old-timing-info: Overall time: 0s head results: h2o-2.2.5+dfsg2/deps/brotli/dec/huffman.c:156:8: style: Variable 'bits' is reassigned a value before the old one has been used. [redundantAssignment] h2o-2.2.5+dfsg2/deps/brotli/dec/huffman.c:123:3: note: bits is assigned h2o-2.2.5+dfsg2/deps/brotli/dec/huffman.c:156:8: note: bits is overwritten h2o-2.2.5+dfsg2/deps/brotli/dec/huffman.c:103:54: style:inconclusive: Function 'BrotliBuildCodeLengthsHuffmanTable' argument 1 names different: declaration 'root_table' definition 'table'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/brotli/dec/huffman.h:41:54: note: Function 'BrotliBuildCodeLengthsHuffmanTable' argument 1 names different: declaration 'root_table' definition 'table'. h2o-2.2.5+dfsg2/deps/brotli/dec/huffman.c:103:54: note: Function 'BrotliBuildCodeLengthsHuffmanTable' argument 1 names different: declaration 'root_table' definition 'table'. h2o-2.2.5+dfsg2/deps/brotli/dec/huffman.c:173:44: style:inconclusive: Function 'BrotliBuildHuffmanTable' argument 4 names different: declaration 'count_arg' definition 'count'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/brotli/dec/huffman.h:50:44: note: Function 'BrotliBuildHuffmanTable' argument 4 names different: declaration 'count_arg' definition 'count'. h2o-2.2.5+dfsg2/deps/brotli/dec/huffman.c:173:44: note: Function 'BrotliBuildHuffmanTable' argument 4 names different: declaration 'count_arg' definition 'count'. h2o-2.2.5+dfsg2/deps/brotli/dec/huffman.c:268:50: style:inconclusive: Function 'BrotliBuildSimpleHuffmanTable' argument 3 names different: declaration 'symbols' definition 'val'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/brotli/dec/huffman.h:58:50: note: Function 'BrotliBuildSimpleHuffmanTable' argument 3 names different: declaration 'symbols' definition 'val'. h2o-2.2.5+dfsg2/deps/brotli/dec/huffman.c:268:50: note: Function 'BrotliBuildSimpleHuffmanTable' argument 3 names different: declaration 'symbols' definition 'val'. h2o-2.2.5+dfsg2/deps/brotli/dec/huffman.c:105:51: style: Parameter 'count' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/brotli/enc/block_splitter.cc:356:30: style:inconclusive: Function 'SplitBlock' argument 4 names different: declaration 'offset' definition 'pos'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/brotli/enc/block_splitter.h:53:30: note: Function 'SplitBlock' argument 4 names different: declaration 'offset' definition 'pos'. h2o-2.2.5+dfsg2/deps/brotli/enc/block_splitter.cc:356:30: note: Function 'SplitBlock' argument 4 names different: declaration 'offset' definition 'pos'. h2o-2.2.5+dfsg2/deps/brotli/enc/cluster.h:154:22: style: Variable 'p' can be declared as reference to const [constVariable] h2o-2.2.5+dfsg2/deps/brotli/enc/cluster.h:241:34: performance: Searching before insertion is not necessary. Instead of 'new_index[(*symbols)[i]]=next_index' consider using 'new_index.try_emplace((*symbols)[i], next_index);'. [stlFindInsert] h2o-2.2.5+dfsg2/deps/brotli/enc/block_splitter.cc:241:50: performance: Searching before insertion is not necessary. Instead of 'new_id[block_ids[i]]=static_cast(next_id)' consider using 'new_id.try_emplace(block_ids[i], static_cast(next_id));'. [stlFindInsert] h2o-2.2.5+dfsg2/deps/brotli/dec/decode.c:497:50: style: Parameter 'prev_code_len' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/brotli/dec/decode.c:1978:26: style: Variable 'bytes_copied' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/brotli/dec/decode.c:1981:22: style: Variable 'bytes_copied' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/brotli/enc/brotli_bit_stream.cc:785:26: style:inconclusive: Function 'StoreMetaBlock' argument 7 names different: declaration 'final_block' definition 'is_last'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/brotli/enc/brotli_bit_stream.h:121:26: note: Function 'StoreMetaBlock' argument 7 names different: declaration 'final_block' definition 'is_last'. h2o-2.2.5+dfsg2/deps/brotli/enc/brotli_bit_stream.cc:785:26: note: Function 'StoreMetaBlock' argument 7 names different: declaration 'final_block' definition 'is_last'. h2o-2.2.5+dfsg2/deps/brotli/enc/compress_fragment.cc:132:13: style: Local variable 'cmd_depth' shadows outer variable [shadowVariable] h2o-2.2.5+dfsg2/deps/brotli/enc/compress_fragment.cc:114:11: note: Shadowed declaration h2o-2.2.5+dfsg2/deps/brotli/enc/compress_fragment.cc:132:13: note: Shadow variable h2o-2.2.5+dfsg2/deps/brotli/enc/compress_fragment_two_pass.cc:84:13: style: Local variable 'cmd_depth' shadows outer variable [shadowVariable] h2o-2.2.5+dfsg2/deps/brotli/enc/compress_fragment_two_pass.cc:66:11: note: Shadowed declaration h2o-2.2.5+dfsg2/deps/brotli/enc/compress_fragment_two_pass.cc:84:13: note: Shadow variable h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:643:3: warning: Member variable 'HashToBinaryTree::window_mask_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:643:3: warning: Member variable 'HashToBinaryTree::buckets_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:643:3: warning: Member variable 'HashToBinaryTree::invalid_pos_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/backward_references.cc:198:3: warning: Member variable 'ZopfliNode::distance_cache' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:340:3: warning: Member variable 'HashLongestMatch < 14 , 4 , 4 >::num_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:340:3: warning: Member variable 'HashLongestMatch < 14 , 4 , 4 >::buckets_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:340:3: warning: Member variable 'HashLongestMatch < 14 , 5 , 4 >::num_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:340:3: warning: Member variable 'HashLongestMatch < 14 , 5 , 4 >::buckets_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:340:3: warning: Member variable 'HashLongestMatch < 15 , 6 , 10 >::num_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:340:3: warning: Member variable 'HashLongestMatch < 15 , 6 , 10 >::buckets_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:340:3: warning: Member variable 'HashLongestMatch < 15 , 7 , 10 >::num_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:340:3: warning: Member variable 'HashLongestMatch < 15 , 7 , 10 >::buckets_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:340:3: warning: Member variable 'HashLongestMatch < 15 , 8 , 16 >::num_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:340:3: warning: Member variable 'HashLongestMatch < 15 , 8 , 16 >::buckets_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:126:3: warning: Member variable 'HashLongestMatchQuickly < 16 , 1 , true >::buckets_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:126:3: warning: Member variable 'HashLongestMatchQuickly < 16 , 2 , false >::buckets_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:126:3: warning: Member variable 'HashLongestMatchQuickly < 17 , 4 , true >::buckets_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:824:17: style:inconclusive: Technically the member function 'brotli::HashToBinaryTree::LeftChildIndex' can be const. [functionConst] h2o-2.2.5+dfsg2/deps/brotli/enc/hash.h:828:17: style:inconclusive: Technically the member function 'brotli::HashToBinaryTree::RightChildIndex' can be const. [functionConst] h2o-2.2.5+dfsg2/deps/brotli/enc/backward_references.cc:125:8: performance:inconclusive: Technically the member function 'brotli::ZopfliCostModel::Set' can be static (but you may consider moving to unnamed namespace). [functionStatic] h2o-2.2.5+dfsg2/deps/brotli/enc/transform.h:218:29: style: Condition 'transform_type==kUppercaseAll' is always true [knownConditionTrueFalse] h2o-2.2.5+dfsg2/deps/brotli/enc/transform.h:216:22: note: Assuming that condition 'transform_type==kUppercaseFirst' is not redundant h2o-2.2.5+dfsg2/deps/brotli/enc/transform.h:206:22: note: Assuming that condition 'transform_type>=kOmitFirst1' is not redundant h2o-2.2.5+dfsg2/deps/brotli/enc/transform.h:218:29: note: Condition 'transform_type==kUppercaseAll' is always true h2o-2.2.5+dfsg2/deps/brotli/enc/entropy_encode.cc:266:18: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/brotli/enc/entropy_encode.cc:375:30: style:inconclusive: Function 'WriteHuffmanTree' argument 2 names different: declaration 'num' definition 'length'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/brotli/enc/entropy_encode.h:66:30: note: Function 'WriteHuffmanTree' argument 2 names different: declaration 'num' definition 'length'. h2o-2.2.5+dfsg2/deps/brotli/enc/entropy_encode.cc:375:30: note: Function 'WriteHuffmanTree' argument 2 names different: declaration 'num' definition 'length'. h2o-2.2.5+dfsg2/deps/brotli/enc/entropy_encode.cc:457:14: style: Local variable 'bits' shadows outer argument [shadowArgument] h2o-2.2.5+dfsg2/deps/brotli/enc/entropy_encode.cc:442:42: note: Shadowed declaration h2o-2.2.5+dfsg2/deps/brotli/enc/entropy_encode.cc:457:14: note: Shadow variable h2o-2.2.5+dfsg2/deps/brotli/enc/literal_cost.cc:40:10: style: The scope of the variable 'utf8_pos' can be reduced. [variableScope] h2o-2.2.5+dfsg2/deps/brotli/enc/literal_cost.cc:99:12: style: Local variable 'last_c' shadows outer variable [shadowVariable] h2o-2.2.5+dfsg2/deps/brotli/enc/literal_cost.cc:68:10: note: Shadowed declaration h2o-2.2.5+dfsg2/deps/brotli/enc/literal_cost.cc:99:12: note: Shadow variable h2o-2.2.5+dfsg2/deps/brotli/enc/literal_cost.cc:100:12: style: Local variable 'utf8_pos' shadows outer variable [shadowVariable] h2o-2.2.5+dfsg2/deps/brotli/enc/literal_cost.cc:69:10: note: Shadowed declaration h2o-2.2.5+dfsg2/deps/brotli/enc/literal_cost.cc:100:12: note: Shadow variable h2o-2.2.5+dfsg2/deps/brotli/enc/literal_cost.cc:84:14: style: Local variable 'last_c' shadows outer variable [shadowVariable] h2o-2.2.5+dfsg2/deps/brotli/enc/literal_cost.cc:68:10: note: Shadowed declaration h2o-2.2.5+dfsg2/deps/brotli/enc/literal_cost.cc:84:14: note: Shadow variable h2o-2.2.5+dfsg2/deps/brotli/enc/literal_cost.cc:93:14: style: Local variable 'last_c' shadows outer variable [shadowVariable] h2o-2.2.5+dfsg2/deps/brotli/enc/literal_cost.cc:68:10: note: Shadowed declaration h2o-2.2.5+dfsg2/deps/brotli/enc/literal_cost.cc:93:14: note: Shadow variable h2o-2.2.5+dfsg2/deps/brotli/enc/literal_cost.cc:40:19: style: Variable 'utf8_pos' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/brotli/enc/metablock.cc:80:3: warning: Member variable 'BlockSplitter < Histogram < 256 > >::last_entropy_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/metablock.cc:80:3: warning: Member variable 'BlockSplitter < HistogramCommand >::last_entropy_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/metablock.cc:80:3: warning: Member variable 'BlockSplitter < HistogramDistance >::last_entropy_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/streams.cc:84:7: warning: Class 'BrotliFileIn' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] h2o-2.2.5+dfsg2/deps/brotli/enc/streams.cc:84:7: warning: Class 'BrotliFileIn' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:52:15: style: The function 'Read' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:29:23: note: Virtual function in base class h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:52:15: note: Function in derived class h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:70:8: style: The function 'Write' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:39:16: note: Virtual function in base class h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:70:8: note: Function in derived class h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:88:8: style: The function 'Write' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:39:16: note: Virtual function in base class h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:88:8: note: Function in derived class h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:101:15: style: The function 'Read' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:29:23: note: Virtual function in base class h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:101:15: note: Function in derived class h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:114:8: style: The function 'Write' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:39:16: note: Virtual function in base class h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:114:8: note: Function in derived class h2o-2.2.5+dfsg2/deps/brotli/enc/streams.cc:45:54: style:inconclusive: Function 'Reset' argument 2 names different: declaration 'max_len' definition 'max_size'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:86:39: note: Function 'Reset' argument 2 names different: declaration 'max_len' definition 'max_size'. h2o-2.2.5+dfsg2/deps/brotli/enc/streams.cc:45:54: note: Function 'Reset' argument 2 names different: declaration 'max_len' definition 'max_size'. h2o-2.2.5+dfsg2/deps/brotli/enc/streams.cc:70:49: style:inconclusive: Function 'Read' argument 2 names different: declaration 'OUTPUT' definition 'output'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/brotli/enc/streams.h:52:38: note: Function 'Read' argument 2 names different: declaration 'OUTPUT' definition 'output'. h2o-2.2.5+dfsg2/deps/brotli/enc/streams.cc:70:49: note: Function 'Read' argument 2 names different: declaration 'OUTPUT' definition 'output'. h2o-2.2.5+dfsg2/deps/brotli/enc/encode.cc:183:19: warning: Member variable 'BrotliCompressor::small_table_' is not initialized in the constructor. [uninitMemberVar] h2o-2.2.5+dfsg2/deps/brotli/enc/encode.h:132:8: performance:inconclusive: Technically the member function 'brotli::BrotliCompressor::WriteStreamHeader' can be static (but you may consider moving to unnamed namespace). [functionStatic] h2o-2.2.5+dfsg2/deps/brotli/enc/ringbuffer.h:36:5: warning: Class 'RingBuffer' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] h2o-2.2.5+dfsg2/deps/brotli/enc/ringbuffer.h:36:5: warning: Class 'RingBuffer' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] h2o-2.2.5+dfsg2/deps/brotli/enc/encode.cc:185:7: warning: Class 'BrotliCompressor' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] h2o-2.2.5+dfsg2/deps/brotli/enc/encode.cc:185:7: warning: Class 'BrotliCompressor' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] h2o-2.2.5+dfsg2/deps/brotli/enc/encode.cc:935:20: style: Variable 'out_bytes' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/brotli/enc/encode_parallel.cc:83:23: style: Local variable 'kMinUTF8Ratio' shadows outer variable [shadowVariable] h2o-2.2.5+dfsg2/deps/brotli/enc/utf8_util.h:16:21: note: Shadowed declaration h2o-2.2.5+dfsg2/deps/brotli/enc/encode_parallel.cc:83:23: note: Shadow variable h2o-2.2.5+dfsg2/deps/golombset/golombset.h:123:60: style: Parameter 'keys' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/brotli/dec/bit_reader.h:113:15: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/brotli/dec/bit_reader.h:115:25: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/brotli/dec/bit_reader.h:124:15: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/brotli/dec/bit_reader.h:126:25: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/brotli/python/brotlimodule.cc:175:37: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/brotli/python/brotlimodule.cc:243:37: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/brotli/python/brotlimodule.cc:288:36: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/klib/bgzf.c:446:47: error: Used file that is not opened. [useClosedFile] h2o-2.2.5+dfsg2/deps/klib/bgzf.c:446:47: error: Resource handle 'fp' freed twice. [doubleFree] h2o-2.2.5+dfsg2/deps/klib/bgzf.c:446:30: note: Resource handle 'fp' freed twice. h2o-2.2.5+dfsg2/deps/klib/bgzf.c:446:47: note: Resource handle 'fp' freed twice. h2o-2.2.5+dfsg2/deps/klib/bgzf.c:419:8: style: Redundant initialization for 'input'. The initialized value is overwritten before it is read. [redundantInitialization] h2o-2.2.5+dfsg2/deps/klib/bgzf.c:416:23: note: input is initialized h2o-2.2.5+dfsg2/deps/klib/bgzf.c:419:8: note: input is overwritten h2o-2.2.5+dfsg2/deps/klib/bgzf.c:455:40: style:inconclusive: Function 'bgzf_set_cache_size' argument 2 names different: declaration 'size' definition 'cache_size'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/klib/bgzf.h:163:41: note: Function 'bgzf_set_cache_size' argument 2 names different: declaration 'size' definition 'cache_size'. h2o-2.2.5+dfsg2/deps/klib/bgzf.c:455:40: note: Function 'bgzf_set_cache_size' argument 2 names different: declaration 'size' definition 'cache_size'. h2o-2.2.5+dfsg2/deps/klib/bgzf.c:472:46: style:inconclusive: Function 'bgzf_seek' argument 3 names different: declaration 'whence' definition 'where'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/klib/bgzf.h:135:47: note: Function 'bgzf_seek' argument 3 names different: declaration 'whence' definition 'where'. h2o-2.2.5+dfsg2/deps/klib/bgzf.c:472:46: note: Function 'bgzf_seek' argument 3 names different: declaration 'whence' definition 'where'. h2o-2.2.5+dfsg2/deps/klib/bgzf.c:228:57: portability: 'fp->uncompressed_block' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] h2o-2.2.5+dfsg2/deps/klib/bgzf.c:240:36: portability: 'fp->compressed_block' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] h2o-2.2.5+dfsg2/deps/klib/bgzf.c:440:9: style: Variable 'count' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/khmm.c:152:15: style: Variable 'm' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/khmm.c:218:4: style: Variable 'm' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/knetfile.c:432:10: style: Local variable 'l' shadows outer variable [shadowVariable] h2o-2.2.5+dfsg2/deps/klib/knetfile.c:407:11: note: Shadowed declaration h2o-2.2.5+dfsg2/deps/klib/knetfile.c:432:10: note: Shadow variable h2o-2.2.5+dfsg2/deps/klib/knetfile.c:189:10: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] h2o-2.2.5+dfsg2/deps/klib/knetfile.c:520:29: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] h2o-2.2.5+dfsg2/deps/klib/kmath.c:195:22: style: Variable 'fa' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/kmath.c:198:15: style: Variable 'fc' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/kmath.c:209:8: style: Variable 'fa' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/kmath.c:209:26: style: Variable 'fc' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/knhx.c:67:4: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] h2o-2.2.5+dfsg2/deps/klib/knhx.c:81:4: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] h2o-2.2.5+dfsg2/deps/klib/knhx.c:83:4: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] h2o-2.2.5+dfsg2/deps/klib/kopen.c:264:4: warning: Return value of function pipe() is not used. [ignoredReturnValue] h2o-2.2.5+dfsg2/deps/klib/kopen.c:265:10: style: Obsolescent function 'vfork' called. It is recommended to use 'fork' instead. [prohibitedvforkCalled] h2o-2.2.5+dfsg2/deps/klib/kopen.c:219:27: style: Variable 'p' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/ksw.c:188:6: error: Common realloc mistake: 'b' nulled but not freed upon failure [memleakOnRealloc] h2o-2.2.5+dfsg2/deps/klib/ksw.c:290:6: error: Common realloc mistake: 'b' nulled but not freed upon failure [memleakOnRealloc] h2o-2.2.5+dfsg2/deps/klib/ksw.c:457:139: style:inconclusive: Function 'ksw_global' argument 10 names different: declaration '_n_cigar' definition 'n_cigar_'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/klib/ksw.h:66:140: note: Function 'ksw_global' argument 10 names different: declaration '_n_cigar' definition 'n_cigar_'. h2o-2.2.5+dfsg2/deps/klib/ksw.c:457:139: note: Function 'ksw_global' argument 10 names different: declaration '_n_cigar' definition 'n_cigar_'. h2o-2.2.5+dfsg2/deps/klib/ksw.c:457:160: style:inconclusive: Function 'ksw_global' argument 11 names different: declaration '_cigar' definition 'cigar_'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/klib/ksw.h:66:161: note: Function 'ksw_global' argument 11 names different: declaration '_cigar' definition 'cigar_'. h2o-2.2.5+dfsg2/deps/klib/ksw.c:457:160: note: Function 'ksw_global' argument 11 names different: declaration '_cigar' definition 'cigar_'. h2o-2.2.5+dfsg2/deps/klib/ksw.c:391:18: style: Local variable 'm' shadows outer argument [shadowArgument] h2o-2.2.5+dfsg2/deps/klib/ksw.c:362:85: note: Shadowed declaration h2o-2.2.5+dfsg2/deps/klib/ksw.c:391:18: note: Shadow variable h2o-2.2.5+dfsg2/deps/klib/kthread.c:54:23: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] h2o-2.2.5+dfsg2/deps/klib/kthread.c:55:20: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] h2o-2.2.5+dfsg2/deps/klib/kthread.c:131:16: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] h2o-2.2.5+dfsg2/deps/klib/kthread.c:137:8: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] h2o-2.2.5+dfsg2/deps/klib/kurl.c:434:5: error: Array 'out[29]' accessed at index 9999, which is out of bounds. [arrayIndexOutOfBounds] h2o-2.2.5+dfsg2/deps/klib/kurl.c:428:2: note: After for loop, j has value 9999 h2o-2.2.5+dfsg2/deps/klib/kurl.c:434:5: note: Array index out of bounds h2o-2.2.5+dfsg2/deps/klib/kurl.c:434:21: error: Array 'out[29]' accessed at index 10000, which is out of bounds. [arrayIndexOutOfBounds] h2o-2.2.5+dfsg2/deps/klib/kurl.c:428:2: note: After for loop, j has value 9999 h2o-2.2.5+dfsg2/deps/klib/kurl.c:434:6: note: j is incremented', new value is 10000 h2o-2.2.5+dfsg2/deps/klib/kurl.c:434:21: note: Array index out of bounds h2o-2.2.5+dfsg2/deps/klib/kurl.c:61:6: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] h2o-2.2.5+dfsg2/deps/klib/kurl.c:60:6: note: rc is assigned h2o-2.2.5+dfsg2/deps/klib/kurl.c:61:6: note: rc is overwritten h2o-2.2.5+dfsg2/deps/klib/kurl.c:62:6: style: Variable 'rc' is reassigned a value before the old one has been used. [redundantAssignment] h2o-2.2.5+dfsg2/deps/klib/kurl.c:61:6: note: rc is assigned h2o-2.2.5+dfsg2/deps/klib/kurl.c:62:6: note: rc is overwritten h2o-2.2.5+dfsg2/deps/klib/test/kbtree_test.c:11:1: error: There is an unknown macro here somewhere. Configuration is required. If KBTREE_INIT is a macro then please configure it. [unknownMacro] h2o-2.2.5+dfsg2/deps/klib/kurl.c:453:4: style: Variable 'l' is reassigned a value before the old one has been used. [redundantAssignment] h2o-2.2.5+dfsg2/deps/klib/kurl.c:446:5: note: l is assigned h2o-2.2.5+dfsg2/deps/klib/kurl.c:453:4: note: l is overwritten h2o-2.2.5+dfsg2/deps/klib/kurl.c:143:17: style: Local variable 's3_parse' shadows outer function [shadowFunction] h2o-2.2.5+dfsg2/deps/klib/kurl.c:482:9: note: Shadowed declaration h2o-2.2.5+dfsg2/deps/klib/kurl.c:143:17: note: Shadow variable h2o-2.2.5+dfsg2/deps/klib/kurl.c:62:6: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/kurl.c:120:7: style: Variable 'rc' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/test/kgraph_test.c:4:1: error: There is an unknown macro here somewhere. Configuration is required. If KHASH_INIT2 is a macro then please configure it. [unknownMacro] h2o-2.2.5+dfsg2/deps/klib/kurl.c:458:17: style: Variable 'secret' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/kurl.c:485:18: style: Variable 'id_secret' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/test/khash_keith.c:14:1: error: There is an unknown macro here somewhere. Configuration is required. If KHASH_MAP_INIT_STR is a macro then please configure it. [unknownMacro] h2o-2.2.5+dfsg2/deps/klib/test/khash_keith2.c:14:1: error: There is an unknown macro here somewhere. Configuration is required. If KHASH_MAP_INIT_STR is a macro then please configure it. [unknownMacro] h2o-2.2.5+dfsg2/deps/klib/test/klist_test.c:5:1: error: There is an unknown macro here somewhere. Configuration is required. If KLIST_INIT is a macro then please configure it. [unknownMacro] h2o-2.2.5+dfsg2/deps/klib/test/khash_test.c:8:1: error: There is an unknown macro here somewhere. Configuration is required. If KHASH_SET_INIT_STR is a macro then please configure it. [unknownMacro] h2o-2.2.5+dfsg2/deps/klib/test/kseq_bench.c:9:1: error: There is an unknown macro here somewhere. Configuration is required. If KSTREAM_INIT is a macro then please configure it. [unknownMacro] h2o-2.2.5+dfsg2/deps/klib/test/kseq_bench2.c:7:1: error: There is an unknown macro here somewhere. Configuration is required. If KSTREAM_INIT is a macro then please configure it. [unknownMacro] h2o-2.2.5+dfsg2/deps/klib/test/kmin_test.c:7:35: style: Parameter 'x' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/klib/test/kseq_test.c:4:1: error: There is an unknown macro here somewhere. Configuration is required. If KSEQ_INIT is a macro then please configure it. [unknownMacro] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.c:7:1: error: There is an unknown macro here somewhere. Configuration is required. If KSORT_INIT_GENERIC is a macro then please configure it. [unknownMacro] h2o-2.2.5+dfsg2/deps/klib/test/kstring_bench.c:14:6: style: Variable 's.l' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/test/kstring_bench.c:32:7: style: Variable 's2.l' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/test/kstring_bench2.c:24:7: style: Unused variable: x [unusedVariable] h2o-2.2.5+dfsg2/deps/klib/test/kstring_bench2.c:89:8: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/test/kstring_bench2.c:99:8: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/klib/test/kvec_test.cc:25:5: error: Common realloc mistake: 'array' nulled but not freed upon failure [memleakOnRealloc] h2o-2.2.5+dfsg2/deps/klib/test/kvec_test.cc:27:4: warning: Possible null pointer dereference: array [nullPointer] h2o-2.2.5+dfsg2/deps/klib/test/kvec_test.cc:21:16: note: Assignment 'array=0', assigned value is 0 h2o-2.2.5+dfsg2/deps/klib/test/kvec_test.cc:23:10: note: Assuming condition is false h2o-2.2.5+dfsg2/deps/klib/test/kvec_test.cc:27:4: note: Null pointer dereference h2o-2.2.5+dfsg2/deps/klib/test/kvec_test.cc:13:16: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/klib/test/kvec_test.cc:25:13: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/klib/test/kvec_test.cc:57:32: error: Out of bounds access in expression 'array[j]' because 'array' is empty and 'j' may be non-zero. [containerOutOfBounds] h2o-2.2.5+dfsg2/deps/libgkc/test.c:61:2: style: Statements following return, break, continue, goto or throw will never be executed. [unreachableCode] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:748:32: style: Array index 'nextBin' is used before limits check. [arrayIndexThenCheck] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:750:47: style: Array index 'nextBin' is used before limits check. [arrayIndexThenCheck] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:562:16: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:793:11: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:803:9: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:804:10: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:809:10: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:819:10: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:826:43: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:837:43: style: C-style pointer casting [cstyleCast] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:294:11: style: The scope of the variable 'idx' can be reduced. [variableScope] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:598:27: style: The scope of the variable 'swap' can be reduced. [variableScope] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:773:16: style: The scope of the variable 'bitMask' can be reduced. [variableScope] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:774:16: style: The scope of the variable 'shiftRightAmount' can be reduced. [variableScope] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:247:36: style: Parameter 'numbers' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:257:36: style: Parameter 'numbers' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:584:39: style: Parameter 'end' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:627:57: style: Parameter 't' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:803:22: style: Variable 'temp' is allocated memory that is never used. [unusedAllocatedMemory] h2o-2.2.5+dfsg2/deps/libyrmcds/counter.c:372:49: style:inconclusive: Function 'yrmcds_cnt_acquire' argument 5 names different: declaration 'maximum' definition 'initial'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/libyrmcds/yrmcds.h:1018:49: note: Function 'yrmcds_cnt_acquire' argument 5 names different: declaration 'maximum' definition 'initial'. h2o-2.2.5+dfsg2/deps/libyrmcds/counter.c:372:49: note: Function 'yrmcds_cnt_acquire' argument 5 names different: declaration 'maximum' definition 'initial'. h2o-2.2.5+dfsg2/deps/libyrmcds/send.c:163:9: style: Condition 'compressed' is always false [knownConditionTrueFalse] h2o-2.2.5+dfsg2/deps/libyrmcds/send.c:133:22: note: Assignment 'compressed=0', assigned value is 0 h2o-2.2.5+dfsg2/deps/libyrmcds/send.c:163:9: note: Condition 'compressed' is always false h2o-2.2.5+dfsg2/deps/mruby-digest/src/picohash.h:307:65: style:inconclusive: Function '_picohash_md5_final' argument 2 names different: declaration 'digest' definition '_digest'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/mruby-digest/src/picohash.h:47:65: note: Function '_picohash_md5_final' argument 2 names different: declaration 'digest' definition '_digest'. h2o-2.2.5+dfsg2/deps/mruby-digest/src/picohash.h:307:65: note: Function '_picohash_md5_final' argument 2 names different: declaration 'digest' definition '_digest'. h2o-2.2.5+dfsg2/deps/mruby-digest/src/picohash.h:422:55: style:inconclusive: Function '_picohash_sha1_init' argument 1 names different: declaration 'ctx' definition 's'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/mruby-digest/src/picohash.h:59:55: note: Function '_picohash_sha1_init' argument 1 names different: declaration 'ctx' definition 's'. h2o-2.2.5+dfsg2/deps/mruby-digest/src/picohash.h:422:55: note: Function '_picohash_sha1_init' argument 1 names different: declaration 'ctx' definition 's'. h2o-2.2.5+dfsg2/deps/mruby-digest/src/picohash.h:433:57: style:inconclusive: Function '_picohash_sha1_update' argument 1 names different: declaration 'ctx' definition 's'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/mruby-digest/src/picohash.h:60:57: note: Function '_picohash_sha1_update' argument 1 names different: declaration 'ctx' definition 's'. h2o-2.2.5+dfsg2/deps/mruby-digest/src/picohash.h:433:57: note: Function '_picohash_sha1_update' argument 1 names different: declaration 'ctx' definition 's'. h2o-2.2.5+dfsg2/deps/mruby-digest/src/picohash.h:433:72: style:inconclusive: Function '_picohash_sha1_update' argument 2 names different: declaration 'input' definition '_data'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/mruby-digest/src/picohash.h:60:74: note: Function '_picohash_sha1_update' argument 2 names different: declaration 'input' definition '_data'. h2o-2.2.5+dfsg2/deps/mruby-digest/src/picohash.h:433:72: note: Function '_picohash_sha1_update' argument 2 names different: declaration 'input' definition '_data'. h2o-2.2.5+dfsg2/deps/mruby-digest/src/picohash.h:442:56: style:inconclusive: Function '_picohash_sha1_final' argument 1 names different: declaration 'ctx' definition 's'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/mruby-digest/src/picohash.h:61:56: note: Function '_picohash_sha1_final' argument 1 names different: declaration 'ctx' definition 's'. h2o-2.2.5+dfsg2/deps/mruby-digest/src/picohash.h:442:56: note: Function '_picohash_sha1_final' argument 1 names different: declaration 'ctx' definition 's'. h2o-2.2.5+dfsg2/deps/mruby-dir/src/dir.c:194:8: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] h2o-2.2.5+dfsg2/deps/mruby-dir/test/dirtest.c:73:16: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] h2o-2.2.5+dfsg2/deps/mruby-errno/src/errno.c:152:11: style: Variable 'noerror' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/mruby-file-stat/src/file-stat.c:490:6: style: Variable 'st' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/mruby-file-stat/src/file-stat.c:515:6: style: Variable 'st' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/mruby-file-stat/src/file-stat.c:556:6: style: Variable 'st' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/mruby-file-stat/src/file-stat.c:581:6: style: Variable 'st' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/mruby-file-stat/src/file-stat.c:615:19: style: Variable 'st' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/mruby-file-stat/src/file-stat.c:640:19: style: Variable 'st' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/mruby-input-stream/src/mruby_input_stream.c:107:118: style:inconclusive: Function 'mrb_input_stream_create' argument 5 names different: declaration 'cb_data' definition 'free_cb_data'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/mruby-input-stream/src/mruby_input_stream.c:17:113: note: Function 'mrb_input_stream_create' argument 5 names different: declaration 'cb_data' definition 'free_cb_data'. h2o-2.2.5+dfsg2/deps/mruby-input-stream/src/mruby_input_stream.c:107:118: note: Function 'mrb_input_stream_create' argument 5 names different: declaration 'cb_data' definition 'free_cb_data'. h2o-2.2.5+dfsg2/deps/mruby-io/src/file.c:241:26: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] h2o-2.2.5+dfsg2/deps/mruby-io/src/io.c:246:5: portability: fflush() called on input stream 'stdin' may result in undefined behaviour on non-linux systems. [fflushOnInputStream] h2o-2.2.5+dfsg2/deps/mruby-io/src/io.c:56:53: style:inconclusive: Function 'mrb_io_modestr_to_flags' argument 2 names different: declaration 'modestr' definition 'mode'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/mruby-io/src/io.c:43:64: note: Function 'mrb_io_modestr_to_flags' argument 2 names different: declaration 'modestr' definition 'mode'. h2o-2.2.5+dfsg2/deps/mruby-io/src/io.c:56:53: note: Function 'mrb_io_modestr_to_flags' argument 2 names different: declaration 'modestr' definition 'mode'. h2o-2.2.5+dfsg2/deps/mruby-io/src/io.c:131:7: style: Unused variable: flags [unusedVariable] h2o-2.2.5+dfsg2/deps/mruby-io/src/io.c:131:14: style: Unused variable: flags2 [unusedVariable] h2o-2.2.5+dfsg2/deps/mruby-io/test/mruby_io_test.c:47:5: error: Resource leak: fd0 [resourceLeak] h2o-2.2.5+dfsg2/deps/mruby-io/test/mruby_io_test.c:47:5: error: Resource leak: fd1 [resourceLeak] h2o-2.2.5+dfsg2/deps/mruby-io/test/mruby_io_test.c:47:5: error: Resource leak: fd2 [resourceLeak] h2o-2.2.5+dfsg2/deps/mruby-io/test/mruby_io_test.c:47:5: error: Resource leak: fd3 [resourceLeak] h2o-2.2.5+dfsg2/deps/mruby-io/test/mruby_io_test.c:55:5: error: Resource leak: fd0 [resourceLeak] h2o-2.2.5+dfsg2/deps/mruby-io/test/mruby_io_test.c:55:5: error: Resource leak: fd1 [resourceLeak] h2o-2.2.5+dfsg2/deps/mruby-io/test/mruby_io_test.c:55:5: error: Resource leak: fd2 [resourceLeak] h2o-2.2.5+dfsg2/deps/mruby-io/test/mruby_io_test.c:55:5: error: Resource leak: fd3 [resourceLeak] h2o-2.2.5+dfsg2/deps/klib/kson.c:47:5: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] h2o-2.2.5+dfsg2/deps/klib/kson.c:48:5: error: Common realloc mistake: 'a' nulled but not freed upon failure [memleakOnRealloc] h2o-2.2.5+dfsg2/deps/klib/kson.c:49:5: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] h2o-2.2.5+dfsg2/deps/klib/kson.c:73:4: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] h2o-2.2.5+dfsg2/deps/klib/kson.c:82:5: error: Common realloc mistake: 'stack' nulled but not freed upon failure [memleakOnRealloc] h2o-2.2.5+dfsg2/deps/klib/kson.c:83:5: error: Common realloc mistake: 'a' nulled but not freed upon failure [memleakOnRealloc] h2o-2.2.5+dfsg2/deps/klib/kson.c:138:52: style:inconclusive: Function 'kson_by_path' argument 1 names different: declaration 'root' definition 'p'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/klib/kson.h:37:53: note: Function 'kson_by_path' argument 1 names different: declaration 'root' definition 'p'. h2o-2.2.5+dfsg2/deps/klib/kson.c:138:52: note: Function 'kson_by_path' argument 1 names different: declaration 'root' definition 'p'. h2o-2.2.5+dfsg2/deps/klib/kson.c:138:59: style:inconclusive: Function 'kson_by_path' argument 2 names different: declaration 'path_len' definition 'depth'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/deps/klib/kson.h:37:63: note: Function 'kson_by_path' argument 2 names different: declaration 'path_len' definition 'depth'. h2o-2.2.5+dfsg2/deps/klib/kson.c:138:59: note: Function 'kson_by_path' argument 2 names different: declaration 'path_len' definition 'depth'. h2o-2.2.5+dfsg2/deps/klib/kson.c:52:9: style: Local variable 'i' shadows outer variable [shadowVariable] h2o-2.2.5+dfsg2/deps/klib/kson.c:15:55: note: Shadowed declaration h2o-2.2.5+dfsg2/deps/klib/kson.c:52:9: note: Shadow variable h2o-2.2.5+dfsg2/deps/klib/kson.c:168:10: style: Local variable 'i' shadows outer variable [shadowVariable] h2o-2.2.5+dfsg2/deps/klib/kson.c:160:7: note: Shadowed declaration h2o-2.2.5+dfsg2/deps/klib/kson.c:168:10: note: Shadow variable h2o-2.2.5+dfsg2/deps/mruby-pack/src/pack.c:73:32: style: Condition '*(unsigned char*)&n==1' is always true [knownConditionTrueFalse] h2o-2.2.5+dfsg2/deps/mruby-pack/src/pack.c:72:20: note: Assignment 'n=1', assigned value is 1 h2o-2.2.5+dfsg2/deps/mruby-pack/src/pack.c:73:32: note: Condition '*(unsigned char*)&n==1' is always true h2o-2.2.5+dfsg2/deps/mruby-pack/src/pack.c:298:21: portability:inconclusive: Casting from double * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] h2o-2.2.5+dfsg2/deps/mruby-pack/src/pack.c:328:21: portability:inconclusive: Casting from double * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] h2o-2.2.5+dfsg2/deps/mruby-pack/src/pack.c:357:21: portability:inconclusive: Casting from float * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] h2o-2.2.5+dfsg2/deps/mruby-pack/src/pack.c:387:21: portability:inconclusive: Casting from float * to unsigned char * is not portable due to different binary data representations on different platforms. [invalidPointerCast] h2o-2.2.5+dfsg2/deps/mruby-pack/src/pack.c:308:37: error: Uninitialized variable: buffer [uninitvar] h2o-2.2.5+dfsg2/deps/mruby-pack/src/pack.c:298:21: note: Assignment 'buffer=(uint8_t*)&d', assigned value is h2o-2.2.5+dfsg2/deps/mruby-pack/src/pack.c:308:37: note: Uninitialized variable: buffer h2o-2.2.5+dfsg2/deps/mruby-pack/src/pack.c:367:37: error: Uninitialized variable: buffer [uninitvar] h2o-2.2.5+dfsg2/deps/mruby-pack/src/pack.c:357:21: note: Assignment 'buffer=(uint8_t*)&f', assigned value is h2o-2.2.5+dfsg2/deps/mruby-pack/src/pack.c:367:37: note: Uninitialized variable: buffer h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:446:65: style: Checking if unsigned expression 'line' is less than zero. [unsignedLessThanZero] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:257:35: style: Parameter 'mrb' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:267:36: style: Parameter 'mrb' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:288:32: style: Parameter 'mrb' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:359:35: style: Parameter 'mrb' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:378:39: style: Parameter 'mrb' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:394:36: style: Parameter 'mrb' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:413:40: style: Parameter 'mrb' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:429:51: style: Parameter 'pc' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:440:44: style: Parameter 'mrb' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c:350:7: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c:362:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c:91:15: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c:105:15: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c:106:16: style: Variable 'bpno' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c:212:15: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c:213:16: style: Variable 'bpno' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/cmdbreak.c:214:12: style: Variable 'ps' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c:227:22: style: Local variable 'p' shadows outer function [shadowFunction] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c:88:1: note: Shadowed declaration h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c:227:22: note: Shadow variable h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c:322:15: style: Local variable 'p' shadows outer function [shadowFunction] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c:88:1: note: Shadowed declaration h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c:322:15: note: Shadow variable h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c:414:9: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c:420:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c:423:11: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/mrdb.c:638:19: style: Variable 'st' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-compiler/core/codegen.c:530:47: error: There is an unknown macro here somewhere. Configuration is required. If MRB_STRINGIZE is a macro then please configure it. [unknownMacro] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-range-ext/src/range.c:147:12: style: Condition 'n<1' is always false [knownConditionTrueFalse] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-range-ext/src/range.c:146:12: note: Assuming that condition 'n<=0' is not redundant h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-range-ext/src/range.c:147:12: note: Condition 'n<1' is always false h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-symbol-ext/src/symbol.c:6:10: style: struct member 'symbol_name::len' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-symbol-ext/src/symbol.c:7:15: style: struct member 'symbol_name::name' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/deps/mruby/src/class.c:19:1: error: There is an unknown macro here somewhere. Configuration is required. If KHASH_DEFINE is a macro then please configure it. [unknownMacro] h2o-2.2.5+dfsg2/deps/mruby/src/array.c:201:12: style: Condition 'capacmds!=NULL h2o-2.2.5+dfsg2/lib/handler/configurator/headers.c:48:25: note: identical inner condition: *self->cmds!=NULL h2o-2.2.5+dfsg2/lib/handler/configurator/fastcgi.c:329:47: error: Pointer addition with NULL pointer. [nullPointerArithmetic] h2o-2.2.5+dfsg2/lib/handler/errordoc.c:94:16: style: Local variable 'i' shadows outer variable [shadowVariable] h2o-2.2.5+dfsg2/lib/handler/errordoc.c:91:12: note: Shadowed declaration h2o-2.2.5+dfsg2/lib/handler/errordoc.c:94:16: note: Shadow variable h2o-2.2.5+dfsg2/lib/handler/mimemap.c:28:1: error: There is an unknown macro here somewhere. Configuration is required. If KHASH_MAP_INIT_STR is a macro then please configure it. [unknownMacro] h2o-2.2.5+dfsg2/lib/handler/fastcgi.c:236:19: style: Redundant initialization for 'path_info'. The initialized value is overwritten before it is read. [redundantInitialization] h2o-2.2.5+dfsg2/lib/handler/fastcgi.c:223:27: note: path_info is initialized h2o-2.2.5+dfsg2/lib/handler/fastcgi.c:236:19: note: path_info is overwritten h2o-2.2.5+dfsg2/lib/handler/fastcgi.c:201:14: style: Local variable 'buf' shadows outer variable [shadowVariable] h2o-2.2.5+dfsg2/lib/handler/fastcgi.c:191:10: note: Shadowed declaration h2o-2.2.5+dfsg2/lib/handler/fastcgi.c:201:14: note: Shadow variable h2o-2.2.5+dfsg2/lib/handler/fastcgi.c:202:13: style: Local variable 'l' shadows outer variable [shadowVariable] h2o-2.2.5+dfsg2/lib/handler/fastcgi.c:196:12: note: Shadowed declaration h2o-2.2.5+dfsg2/lib/handler/fastcgi.c:202:13: note: Shadow variable h2o-2.2.5+dfsg2/lib/handler/mruby/chunked.c:32:12: style: struct member 'st_h2o_mruby_chunked_t::bytes_left' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/handler/mruby/chunked.c:33:79: style: struct member 'st_h2o_mruby_chunked_t::type' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/handler/mruby/chunked.c:42:11: style: struct member 'st_h2o_mruby_chunked_t::shortcut' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/handler/redirect.c:29:9: style: struct member 'st_h2o_redirect_handler_t::internal' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/handler/mruby/chunked.c:36:27: style: struct member 'Anonymous1::receiving' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/handler/redirect.c:30:9: style: struct member 'st_h2o_redirect_handler_t::status' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/handler/mruby/chunked.c:40:47: style: struct member 'Anonymous2::client' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/handler/mruby/chunked.c:41:27: style: struct member 'Anonymous2::remaining' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/handler/throttle_resp.c:78:72: style: Parameter 'inbufs' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/lib/http2/connection.c:1331:27: error: Syntax Error: AST broken, 'stream' doesn't have a parent. [internalAstError] h2o-2.2.5+dfsg2/lib/core/logconf.c:570:24: style: Local variable 'len' shadows outer argument [shadowArgument] h2o-2.2.5+dfsg2/lib/core/logconf.c:488:71: note: Shadowed declaration h2o-2.2.5+dfsg2/lib/core/logconf.c:570:24: note: Shadow variable h2o-2.2.5+dfsg2/lib/http2/cache_digests.c:31:14: style: struct member 'st_h2o_cache_digests_frame_t::capacity_bits' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/core/logconf.c:599:31: style: Local variable 'len' shadows outer argument [shadowArgument] h2o-2.2.5+dfsg2/lib/core/logconf.c:488:71: note: Shadowed declaration h2o-2.2.5+dfsg2/lib/core/logconf.c:599:31: note: Shadow variable h2o-2.2.5+dfsg2/lib/core/logconf.c:85:9: style: struct member 'st_h2o_logconf_t::escape' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/http2/casper.c:32:14: style: struct member 'st_h2o_http2_casper_t::capacity_bits' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/http2/casper.c:33:14: style: struct member 'st_h2o_http2_casper_t::remainder_bits' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/http2/frame.c:47:13: style: Comparing expression of type 'unsigned int' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] h2o-2.2.5+dfsg2/lib/http2/frame.c:47:13: style: Comparing expression of type 'unsigned int' against value 4294967295. Condition is always true. [compareValueOutOfTypeRangeError] h2o-2.2.5+dfsg2/lib/http2/frame.c:48:13: style: Comparing expression of type 'unsigned int' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] h2o-2.2.5+dfsg2/lib/http2/frame.c:49:13: style: Comparing expression of type 'unsigned int' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] h2o-2.2.5+dfsg2/lib/handler/file/templates.c.h:58:9: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] h2o-2.2.5+dfsg2/lib/http2/frame.c:49:13: style: Comparing expression of type 'unsigned int' against value 4294967295. Condition is always true. [compareValueOutOfTypeRangeError] h2o-2.2.5+dfsg2/lib/handler/file.c:753:13: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] h2o-2.2.5+dfsg2/lib/http2/frame.c:50:13: style: Comparing expression of type 'unsigned int' against value 0. Condition is always true. [compareValueOutOfTypeRangeError] h2o-2.2.5+dfsg2/lib/handler/file.c:635:106: style: Condition '(if_none_match_header_index=h2o_find_header(&req->headers,H2O_TOKEN_IF_NONE_MATCH,SIZE_MAX))!=-1' is always true [knownConditionTrueFalse] h2o-2.2.5+dfsg2/lib/handler/file.c:641:121: style: Condition '(if_modified_since_header_index=h2o_find_header(&req->headers,H2O_TOKEN_IF_MODIFIED_SINCE,SIZE_MAX))!=-1' is always true [knownConditionTrueFalse] h2o-2.2.5+dfsg2/lib/handler/file.c:659:90: style: Condition '(range_header_index=h2o_find_header(&req->headers,H2O_TOKEN_RANGE,SIZE_MAX))!=-1' is always true [knownConditionTrueFalse] h2o-2.2.5+dfsg2/lib/http2/frame.c:47:13: style: Unsigned expression 'value' can't be negative so it is unnecessary to test it. [unsignedPositive] h2o-2.2.5+dfsg2/lib/handler/file.c:167:17: portability: %zd in format string (no. 3) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] h2o-2.2.5+dfsg2/lib/http2/frame.c:48:13: style: Unsigned expression 'value' can't be negative so it is unnecessary to test it. [unsignedPositive] h2o-2.2.5+dfsg2/lib/handler/file.c:167:17: portability: %zd in format string (no. 4) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] h2o-2.2.5+dfsg2/lib/http2/frame.c:49:13: style: Unsigned expression 'value' can't be negative so it is unnecessary to test it. [unsignedPositive] h2o-2.2.5+dfsg2/lib/handler/file.c:167:17: portability: %zd in format string (no. 5) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] h2o-2.2.5+dfsg2/lib/http2/frame.c:50:13: style: Unsigned expression 'value' can't be negative so it is unnecessary to test it. [unsignedPositive] h2o-2.2.5+dfsg2/lib/handler/file.c:171:17: portability: %zd in format string (no. 3) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] h2o-2.2.5+dfsg2/lib/http2/frame.c:87:9: style: Variable 'dst' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/lib/handler/file.c:171:17: portability: %zd in format string (no. 4) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] h2o-2.2.5+dfsg2/lib/http2/frame.c:94:9: style: Variable 'dst' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/lib/handler/file.c:171:17: portability: %zd in format string (no. 5) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] h2o-2.2.5+dfsg2/lib/http2/frame.c:108:9: style: Variable 'dst' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/lib/handler/file.c:354:29: portability: %zd in format string (no. 1) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] h2o-2.2.5+dfsg2/lib/handler/file.c:354:29: portability: %zd in format string (no. 2) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] h2o-2.2.5+dfsg2/lib/handler/file.c:354:29: portability: %zd in format string (no. 3) requires 'ssize_t' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] h2o-2.2.5+dfsg2/lib/handler/file.c:636:60: error: Uninitialized variable: if_none_match_header_index [legacyUninitvar] h2o-2.2.5+dfsg2/lib/handler/file.c:660:52: error: Uninitialized variable: range_header_index [legacyUninitvar] h2o-2.2.5+dfsg2/lib/handler/file.c:72:20: style: struct member 'st_h2o_file_handler_t::mimemap' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/handler/file.c:73:9: style: struct member 'st_h2o_file_handler_t::flags' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/handler/file.c:74:12: style: struct member 'st_h2o_file_handler_t::max_index_file_len' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/handler/file.c:452:24: style: Variable 'range_start' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/lib/http2/scheduler.c:26:14: style: struct member 'st_h2o_http2_scheduler_queue_t::bits' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/http2/scheduler.c:27:12: style: struct member 'st_h2o_http2_scheduler_queue_t::offset' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/lib/http1.c:718:25: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] h2o-2.2.5+dfsg2/lib/http1.c:847:25: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] h2o-2.2.5+dfsg2/lib/http1.c:714:117: style:inconclusive: Function 'finalostream_send' argument 5 names different: declaration 'state' definition 'send_state'. [funcArgNamesDifferent] h2o-2.2.5+dfsg2/lib/http1.c:80:124: note: Function 'finalostream_send' argument 5 names different: declaration 'state' definition 'send_state'. h2o-2.2.5+dfsg2/lib/http1.c:714:117: note: Function 'finalostream_send' argument 5 names different: declaration 'state' definition 'send_state'. h2o-2.2.5+dfsg2/src/setuidgid.c:59:7: style: Assignment of function parameter has no effect outside the function. [uselessAssignmentArg] h2o-2.2.5+dfsg2/src/setuidgid.c:50:17: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] h2o-2.2.5+dfsg2/src/setuidgid.c:59:5: style: Variable 'argc' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/lib/handler/mruby.c:522:41: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] h2o-2.2.5+dfsg2/src/ssl.c:43:23: style: struct member 'st_session_ticket_generating_updater_conf_t::cipher' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/src/ssl.c:44:19: style: struct member 'st_session_ticket_generating_updater_conf_t::md' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/src/ssl.c:48:17: style: struct member 'st_session_ticket_file_updater_conf_t::filename' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/src/ssl.c:64:64: style: union member 'Anonymous5::generating' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/src/ssl.c:69:58: style: union member 'Anonymous5::file' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/src/ssl.c:66:68: style: struct member 'Anonymous6::generating' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/t/00unit/lib/common/multithread.c:27:17: style: struct member 'st_thread_t::loop' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/t/00unit/lib/common/multithread.c:28:30: style: struct member 'st_thread_t::queue' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/src/main.c:1219:9: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] h2o-2.2.5+dfsg2/src/main.c:1594:40: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] h2o-2.2.5+dfsg2/src/main.c:1896:26: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] h2o-2.2.5+dfsg2/src/main.c:2065:44: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] h2o-2.2.5+dfsg2/src/main.c:2226:20: warning: Obsolete function 'alloca' called. In C99 and later it is recommended to use a variable length array instead. [allocaCalled] h2o-2.2.5+dfsg2/src/main.c:1203:30: style: Expression is always true because 'else if' condition is opposite to previous condition at line 1193. [multiCondition] h2o-2.2.5+dfsg2/src/main.c:1193:23: note: first condition h2o-2.2.5+dfsg2/src/main.c:1203:30: note: else if condition is opposite to first condition h2o-2.2.5+dfsg2/src/main.c:163:14: style: struct member 'Anonymous5::_unused1_avoir_false_sharing' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/src/main.c:166:14: style: struct member 'Anonymous5::_unused2_avoir_false_sharing' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/src/main.c:169:14: style: struct member 'Anonymous5::_unused3_avoir_false_sharing' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/src/main.c:1748:9: style: struct member 'extra_status_jemalloc_cb_arg::err' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/src/main.c:1749:12: style: struct member 'extra_status_jemalloc_cb_arg::written' is never used. [unusedStructMember] h2o-2.2.5+dfsg2/src/main.c:2218:22: style: Variable 'error_log_fd' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/lib/handler/mimemap.c:44:1: error: There is an unknown macro here somewhere. Configuration is required. If KHASH_INIT is a macro then please configure it. [unknownMacro] h2o-2.2.5+dfsg2/t/00unit/lib/handler/fastcgi.c:175:14: style: Variable 'pathconf' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/t/00unit/lib/http2/casper.c:26:45: style: Parameter 'cookie' can be declared as pointer to const [constParameter] h2o-2.2.5+dfsg2/t/00unit/lib/http2/scheduler.c:125:27: style: Variable 'nodeA.still_is_active' is reassigned a value before the old one has been used. [redundantAssignment] h2o-2.2.5+dfsg2/t/00unit/lib/http2/scheduler.c:116:27: note: nodeA.still_is_active is assigned h2o-2.2.5+dfsg2/t/00unit/lib/http2/scheduler.c:125:27: note: nodeA.still_is_active is overwritten h2o-2.2.5+dfsg2/t/00unit/lib/http2/scheduler.c:125:27: style: Variable 'nodeA.still_is_active' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/t/00unit/lib/http2/scheduler.c:126:27: style: Variable 'nodeB.still_is_active' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/t/00unit/lib/http2/scheduler.c:127:27: style: Variable 'nodeC.still_is_active' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/t/00unit/lib/http2/scheduler.c:169:27: style: Variable 'nodeA.still_is_active' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/t/00unit/lib/http2/scheduler.c:176:27: style: Variable 'nodeB.still_is_active' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/t/00unit/lib/http2/scheduler.c:221:27: style: Variable 'nodeA.still_is_active' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/t/00unit/lib/http2/scheduler.c:237:27: style: Variable 'nodeB.still_is_active' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/t/00unit/lib/http2/scheduler.c:294:27: style: Variable 'nodeC.still_is_active' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/t/00unit/lib/http2/scheduler.c:358:24: style: Variable 'r2.still_is_active' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/t/00unit/lib/http2/scheduler.c:359:24: style: Variable 'r3.still_is_active' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/t/00unit/lib/http2/scheduler.c:503:27: style: Variable 'nodeB.still_is_active' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/t/00unit/lib/http2/scheduler.c:504:27: style: Variable 'nodeC.still_is_active' is assigned a value that is never used. [unreadVariable] h2o-2.2.5+dfsg2/t/00unit/lib/handler/file.c:339:14: style: Redundant initialization for 'etag'. The initialized value is overwritten before it is read. [redundantInitialization] h2o-2.2.5+dfsg2/t/00unit/lib/handler/file.c:326:22: note: etag is initialized h2o-2.2.5+dfsg2/t/00unit/lib/handler/file.c:339:14: note: etag is overwritten h2o-2.2.5+dfsg2/lib/http2/hpack.c:888:9: warning: Possible null pointer dereference: server_name [nullPointer] h2o-2.2.5+dfsg2/t/00unit/lib/http2/hpack.c:489:104: note: Calling function 'h2o_hpack_flatten_response', 7th argument 'NULL' value is 0 h2o-2.2.5+dfsg2/lib/http2/hpack.c:888:9: note: Null pointer dereference h2o-2.2.5+dfsg2/lib/http2/hpack.c:902:9: warning:inconclusive: Possible null pointer dereference: server_name [nullPointer] h2o-2.2.5+dfsg2/t/00unit/lib/http2/hpack.c:489:104: note: Calling function 'h2o_hpack_flatten_response', 7th argument 'NULL' value is 0 h2o-2.2.5+dfsg2/lib/http2/hpack.c:902:9: note: Null pointer dereference h2o-2.2.5+dfsg2/lib/http2/hpack.c:905:31: warning:inconclusive: Possible null pointer dereference: ts [nullPointer] h2o-2.2.5+dfsg2/t/00unit/lib/http2/hpack.c:489:98: note: Calling function 'h2o_hpack_flatten_response', 6th argument 'NULL' value is 0 h2o-2.2.5+dfsg2/lib/http2/hpack.c:905:31: note: Null pointer dereference h2o-2.2.5+dfsg2/t/00unit/lib/http2/hpack.c:182:13: style: Variable 'len' is assigned a value that is never used. [unreadVariable] diff: head h2o-2.2.5+dfsg2/deps/brotli/dec/decode.c:497:50: style: Parameter 'prev_code_len' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/brotli/dec/decode.c:497:50: style: Parameter 'prev_code_len' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/brotli/dec/huffman.c:105:51: style: Parameter 'count' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/brotli/dec/huffman.c:105:51: style: Parameter 'count' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/brotli/enc/cluster.h:154:22: style: Variable 'p' can be declared as reference to const [constVariable] head h2o-2.2.5+dfsg2/deps/golombset/golombset.h:123:60: style: Parameter 'keys' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/golombset/golombset.h:123:60: style: Parameter 'keys' can be declared with const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/klib/kstring.c:104:16: warning: Either the condition '_offsets' is redundant or there is possible null pointer dereference: _offsets. [nullPointerRedundantCheck] h2o-2.2.5+dfsg2/deps/klib/kstring.c:91:29: note: Assuming that condition '_offsets' is not redundant h2o-2.2.5+dfsg2/deps/klib/kstring.c:104:16: note: Null pointer dereference head h2o-2.2.5+dfsg2/deps/klib/test/kmin_test.c:7:35: style: Parameter 'x' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/klib/test/kmin_test.c:7:35: style: Parameter 'x' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:247:36: style: Parameter 'numbers' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:247:36: style: Parameter 'numbers' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:257:36: style: Parameter 'numbers' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:257:36: style: Parameter 'numbers' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:584:39: style: Parameter 'end' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:584:39: style: Parameter 'end' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:627:57: style: Parameter 't' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/klib/test/ksort_test.cc:627:57: style: Parameter 't' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:257:35: style: Parameter 'mrb' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:257:35: style: Parameter 'mrb' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:267:36: style: Parameter 'mrb' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:267:36: style: Parameter 'mrb' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:288:32: style: Parameter 'mrb' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:288:32: style: Parameter 'mrb' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:359:35: style: Parameter 'mrb' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:359:35: style: Parameter 'mrb' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:378:39: style: Parameter 'mrb' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:378:39: style: Parameter 'mrb' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:394:36: style: Parameter 'mrb' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:394:36: style: Parameter 'mrb' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:413:40: style: Parameter 'mrb' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:413:40: style: Parameter 'mrb' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:429:51: style: Parameter 'pc' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:429:51: style: Parameter 'pc' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:440:44: style: Parameter 'mrb' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/mruby/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c:440:44: style: Parameter 'mrb' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/picotls/deps/cifra/src/cmac.c:50:28: style: Parameter 'ctx' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/picotls/deps/cifra/src/cmac.c:50:28: style: Parameter 'ctx' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/picotls/deps/cifra/src/curve25519.donna.c:474:29: style: Parameter 'input_limbs' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/deps/picotls/deps/cifra/src/curve25519.donna.c:474:29: style: Parameter 'input_limbs' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/deps/picotls/deps/cifra/src/gf128.c:44:44: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head h2o-2.2.5+dfsg2/deps/picotls/deps/cifra/src/gf128.c:63:44: warning: Operator '|' with one operand equal to zero is redundant. [badBitmaskCheck] head h2o-2.2.5+dfsg2/lib/common/http1client.c:481:52: style: Parameter 'getaddr_req' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/lib/common/http1client.c:481:52: style: Parameter 'getaddr_req' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/lib/common/socketpool.c:222:52: style: Parameter 'getaddr_req' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/lib/common/socketpool.c:222:52: style: Parameter 'getaddr_req' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/lib/core/request.c:308:58: style: Parameter 'current_handler' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/lib/core/request.c:308:58: style: Parameter 'current_handler' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/lib/core/util.c:356:40: style: Parameter 'base_authority' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/lib/core/util.c:356:40: style: Parameter 'base_authority' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/lib/handler/compress.c:139:75: style: Parameter 'args' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/lib/handler/compress.c:139:75: style: Parameter 'args' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/lib/handler/throttle_resp.c:78:72: style: Parameter 'inbufs' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/lib/handler/throttle_resp.c:78:72: style: Parameter 'inbufs' can be declared with const [constParameter] head h2o-2.2.5+dfsg2/t/00unit/lib/http2/casper.c:26:45: style: Parameter 'cookie' can be declared as pointer to const [constParameter] 2.8 h2o-2.2.5+dfsg2/t/00unit/lib/http2/casper.c:26:45: style: Parameter 'cookie' can be declared with const [constParameter] DONE