2025-12-24 01:00 ftp://ftp.de.debian.org/debian/pool/main/r/ruby-pg/ruby-pg_1.6.2.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=ruby --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 -j90 platform: Linux-6.8.0-90-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.69 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.19.0 head-info: b66f900 (2025-12-21 20:49:38 +0100) count: 327 327 elapsed-time: 0.8 0.8 head-timing-info: old-timing-info: head results: pg-1.6.2/ext/gvl_wrappers.c:17:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PGRES_POLLING_FAILED [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_errors.c:78:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eStandardError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/gvl_wrappers.c:10:35: style: Parameter 'conn' can be declared as pointer to const [constParameterPointer] pg-1.6.2/ext/gvl_wrappers.c:11:33: style: Parameter 'conn' can be declared as pointer to const [constParameterPointer] pg-1.6.2/ext/gvl_wrappers.c:12:33: style: Parameter 'conn' can be declared as pointer to const [constParameterPointer] pg-1.6.2/ext/gvl_wrappers.c:13:31: style: Parameter 'conn' can be declared as pointer to const [constParameterPointer] pg-1.6.2/ext/gvl_wrappers.c:14:32: style: Parameter 'conn' can be declared as pointer to const [constParameterPointer] pg-1.6.2/ext/gvl_wrappers.c:15:36: style: Parameter 'cancelConn' can be declared as pointer to const [constParameterPointer] pg-1.6.2/ext/gvl_wrappers.c:16:33: style: Parameter 'cancelConn' can be declared as pointer to const [constParameterPointer] pg-1.6.2/ext/gvl_wrappers.c:17:54: style: Parameter 'cancelConn' can be declared as pointer to const [constParameterPointer] pg-1.6.2/ext/gvl_wrappers.c:20:28: style: Parameter 'conn' can be declared as pointer to const [constParameterPointer] pg-1.6.2/ext/pg.c:144:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_enc_pg2ruby_mapping [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg.c:174:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_enc_pg2ruby_mapping [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg.c:265:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg.c:308:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg.c:326:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg.c:367:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECTION_OK [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map.c:64:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNotImpError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map.c:70:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNotImpError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map.c:76:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNotImpError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map.c:82:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNotImpError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map.c:88:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNotImpError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map.c:94:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNotImpError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map.c:195:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_all_strings.c:42:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_all_strings.c:81:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map.c:19:13: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_type_map.c:156:13: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_type_map_all_strings.c:64:42: style: Parameter 'p_typemap' can be declared as pointer to const. However it seems that 'pg_tmas_typecast_query_param' is a callback function, if 'p_typemap' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pg-1.6.2/ext/pg_type_map_all_strings.c:100:37: note: You might need to cast the function pointer here pg-1.6.2/ext/pg_type_map_all_strings.c:64:42: note: Parameter 'p_typemap' can be declared as pointer to const pg-1.6.2/ext/pg_type_map_by_class.c:52:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_class.c:170:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_typemap_fit_to_result [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_in_ruby.c:78:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_in_ruby.c:173:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_in_ruby.c:199:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_in_ruby.c:231:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cInteger [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_record_coder.c:91:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_record_coder.c:193:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_record_coder.c:413:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:23:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:42:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:61:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:139:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:162:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:180:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:242:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:391:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:410:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:451:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:491:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:514:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:559:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_coder_enc_to_s [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:588:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_text_dec_string [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:612:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_column.c:25:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_column.c:57:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_column.c:93:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_column.c:139:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_column.c:197:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_tmbc_converter [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_column.c:271:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_column.c:320:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_oid.c:66:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_tmbc_converter [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_oid.c:100:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_oid.c:210:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_typemap_fit_to_query [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_oid.c:249:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_oid.c:282:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_oid.c:355:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_tuple.c:61:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_tuple.c:169:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qundef [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_tuple.c:191:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_tuple.c:202:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qundef [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_tuple.c:217:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_tuple.c:277:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eIndexError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_tuple.c:323:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_tuple.c:346:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ST_CONTINUE [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_tuple.c:365:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_tuple.c:471:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_tuple.c:497:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_tuple.c:553:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_decoder.c:30:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_decoder.c:53:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_decoder.c:84:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_decoder.c:101:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_decoder.c:123:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_text_dec_string [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_decoder.c:190:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_decoder.c:312:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_decoder.c:394:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_decoder.c:422:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_decoder.c:450:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_text_dec_string [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_column.c:43:11: warning: If memory allocation fails, then there is a possible null pointer dereference: p_new_typemap [nullPointerOutOfMemory] pg-1.6.2/ext/pg_type_map_by_column.c:41:44: note: Assuming allocation function fails pg-1.6.2/ext/pg_type_map_by_column.c:41:27: note: Assignment 'p_new_typemap=(struct t_tmbc*)xmalloc(struct_size)', assigned value is 0 pg-1.6.2/ext/pg_type_map_by_column.c:43:11: note: Null pointer dereference pg-1.6.2/ext/pg_type_map_by_column.c:44:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p_new_typemap [nullPointerOutOfMemory] pg-1.6.2/ext/pg_type_map_by_column.c:41:44: note: Assuming allocation function fails pg-1.6.2/ext/pg_type_map_by_column.c:41:27: note: Assignment 'p_new_typemap=(struct t_tmbc*)xmalloc(struct_size)', assigned value is 0 pg-1.6.2/ext/pg_type_map_by_column.c:44:3: note: Null pointer dereference pg-1.6.2/ext/pg_type_map_by_column.c:275:2: warning: If memory allocation fails, then there is a possible null pointer dereference: this [nullPointerOutOfMemory] pg-1.6.2/ext/pg_type_map_by_column.c:273:16: note: Assuming allocation function fails pg-1.6.2/ext/pg_type_map_by_column.c:273:16: note: Assignment 'this=xmalloc(sizeof(struct t_tmbc)+sizeof(struct pg_tmbc_converter)*conv_ary_len)', assigned value is 0 pg-1.6.2/ext/pg_type_map_by_column.c:275:2: note: Null pointer dereference pg-1.6.2/ext/pg_copy_coder.c:102:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_copy_coder.c:165:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_copy_coder.c:233:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_copy_coder.c:378:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_copy_coder.c:686:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_copy_coder.c:828:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_encoder.c:166:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_encoder.c:316:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_encoder.c:392:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_encoder.c:549:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_encoder.c:608:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_encoder.c:638:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_encoder.c:654:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_encoder.c:690:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_encoder.c:761:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_encoder.c:800:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_encoder.c:31:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qtrue [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_encoder.c:198:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_encoder.c:283:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_encoder.c:332:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_encoder.c:578:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_coder_enc_to_s [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_coder.c:293:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_coder.c:325:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_coder.c:356:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_coder.c:467:24: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_type_map_by_oid.c:68:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p_colmap [nullPointerOutOfMemory] pg-1.6.2/ext/pg_type_map_by_oid.c:66:20: note: Assuming allocation function fails pg-1.6.2/ext/pg_type_map_by_oid.c:66:20: note: Assignment 'p_colmap=xmalloc(sizeof(struct t_tmbc)+sizeof(struct pg_tmbc_converter)*nfields)', assigned value is 0 pg-1.6.2/ext/pg_type_map_by_oid.c:68:2: note: Null pointer dereference pg-1.6.2/ext/pg_type_map_by_oid.c:69:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p_colmap [nullPointerOutOfMemory] pg-1.6.2/ext/pg_type_map_by_oid.c:66:20: note: Assuming allocation function fails pg-1.6.2/ext/pg_type_map_by_oid.c:66:20: note: Assignment 'p_colmap=xmalloc(sizeof(struct t_tmbc)+sizeof(struct pg_tmbc_converter)*nfields)', assigned value is 0 pg-1.6.2/ext/pg_type_map_by_oid.c:69:2: note: Null pointer dereference pg-1.6.2/ext/pg_type_map_by_oid.c:70:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p_colmap [nullPointerOutOfMemory] pg-1.6.2/ext/pg_type_map_by_oid.c:66:20: note: Assuming allocation function fails pg-1.6.2/ext/pg_type_map_by_oid.c:66:20: note: Assignment 'p_colmap=xmalloc(sizeof(struct t_tmbc)+sizeof(struct pg_tmbc_converter)*nfields)', assigned value is 0 pg-1.6.2/ext/pg_type_map_by_oid.c:70:2: note: Null pointer dereference pg-1.6.2/ext/pg_type_map_by_oid.c:82:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p_colmap [nullPointerOutOfMemory] pg-1.6.2/ext/pg_type_map_by_oid.c:66:20: note: Assuming allocation function fails pg-1.6.2/ext/pg_type_map_by_oid.c:66:20: note: Assignment 'p_colmap=xmalloc(sizeof(struct t_tmbc)+sizeof(struct pg_tmbc_converter)*nfields)', assigned value is 0 pg-1.6.2/ext/pg_type_map_by_oid.c:79:18: note: Assuming condition is false pg-1.6.2/ext/pg_type_map_by_oid.c:82:3: note: Null pointer dereference pg-1.6.2/ext/pg_type_map_by_oid.c:85:2: warning: If memory allocation fails, then there is a possible null pointer dereference: p_colmap [nullPointerOutOfMemory] pg-1.6.2/ext/pg_type_map_by_oid.c:66:20: note: Assuming allocation function fails pg-1.6.2/ext/pg_type_map_by_oid.c:66:20: note: Assignment 'p_colmap=xmalloc(sizeof(struct t_tmbc)+sizeof(struct pg_tmbc_converter)*nfields)', assigned value is 0 pg-1.6.2/ext/pg_type_map_by_oid.c:79:18: note: Assuming condition is false pg-1.6.2/ext/pg_type_map_by_oid.c:85:2: note: Null pointer dereference pg-1.6.2/ext/pg_type_map_by_oid.c:337:10: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_record_coder.c:108:20: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_record_coder.c:198:9: style: Variable 'ptr1' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_record_coder.c:388:8: style: Variable 'cur_ptr' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_tuple.c:225:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_tuple.c:337:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_tuple.c:388:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_tuple.c:422:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_tuple.c:442:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_result.c:87:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PGresAttDesc [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:215:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:340:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:381:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:399:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:413:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qtrue [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:430:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:475:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:595:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:612:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:632:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNoMemError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:693:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:764:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:799:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:826:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:851:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:872:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:902:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:923:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:949:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:970:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:993:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:1018:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:1069:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:1112:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InvalidOid [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:1139:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eIndexError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:1177:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:1206:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:1231:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eIndexError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:1272:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_SYMBOL [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:1304:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eIndexError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:1321:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:1354:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eIndexError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:1467:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:1660:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_result.c:1699:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_decoder.c:304:34: style: Parameter 'conv' can be declared as pointer to const. However it seems that 'pg_bin_dec_timestamp' is a callback function, if 'conv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pg-1.6.2/ext/pg_binary_decoder.c:454:32: note: You might need to cast the function pointer here pg-1.6.2/ext/pg_binary_decoder.c:304:34: note: Parameter 'conv' can be declared as pointer to const pg-1.6.2/ext/pg_text_decoder.c:75:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_decoder.c:92:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_decoder.c:109:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FIXNUM_MAX [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_decoder.c:172:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_decoder.c:185:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_decoder.c:207:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_decoder.c:226:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_decoder.c:243:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNoMemError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_decoder.c:283:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_decoder.c:332:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_decoder.c:520:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAMEDATALEN [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_decoder.c:587:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_decoder.c:760:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_decoder.c:830:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_decoder.c:964:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_mri_type.c:65:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_mri_type.c:152:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_typemap_fit_to_result [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_mri_type.c:226:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_type_map_by_mri_type.c:261:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_binary_encoder.c:181:5: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] pg-1.6.2/ext/pg_binary_encoder.c:272:5: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] pg-1.6.2/ext/pg_binary_encoder.c:398:7: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] pg-1.6.2/ext/pg_binary_encoder.c:199:10: style: Variable 'pstr' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_binary_encoder.c:284:10: style: Variable 'pstr' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_copy_coder.c:398:5: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] pg-1.6.2/ext/pg_copy_coder.c:143:18: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_copy_coder.c:182:18: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_copy_coder.c:236:9: style: Variable 'ptr1' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_result.c:208:2: warning: If memory allocation fails, then there is a possible null pointer dereference: this [nullPointerOutOfMemory] pg-1.6.2/ext/pg_result.c:207:31: note: Assuming allocation function fails pg-1.6.2/ext/pg_result.c:207:9: note: Assignment 'this=(struct t_pg_result*)xmalloc(sizeof(*this)+sizeof(*this->fnames)*nfields)', assigned value is 0 pg-1.6.2/ext/pg_result.c:208:2: note: Null pointer dereference pg-1.6.2/ext/pg_result.c:267:9: warning: If memory allocation fails, then there is a possible null pointer dereference: copy [nullPointerOutOfMemory] pg-1.6.2/ext/pg_result.c:266:31: note: Assuming allocation function fails pg-1.6.2/ext/pg_result.c:266:9: note: Assignment 'copy=(struct t_pg_result*)xmalloc(len)', assigned value is 0 pg-1.6.2/ext/pg_result.c:267:9: note: Null pointer dereference pg-1.6.2/ext/pg_result.c:221:20: style: Variable 'p_conn' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_result.c:460:15: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_result.c:585:38: style: Parameter 'argv' can be declared as pointer to const. However it seems that 'pgresult_res_status' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pg-1.6.2/ext/pg_result.c:1706:47: note: You might need to cast the function pointer here pg-1.6.2/ext/pg_result.c:585:38: note: Parameter 'argv' can be declared as pointer to const pg-1.6.2/ext/pg_result.c:1441:15: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_result.c:1448:56: style: Parameter 'data' can be declared as pointer to const. However it seems that 'yield_hash' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pg-1.6.2/ext/pg_result.c:1597:35: note: You might need to cast the function pointer here pg-1.6.2/ext/pg_result.c:1448:56: note: Parameter 'data' can be declared as pointer to const pg-1.6.2/ext/pg_result.c:1682:15: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_connection.c:107:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:132:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:259:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:287:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECTION_BAD [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:335:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECTION_BAD [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:427:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:460:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:539:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:553:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:581:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECTION_BAD [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:603:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:636:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:650:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:664:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:689:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:724:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEF_PGPORT [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:751:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:839:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:909:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:964:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:1072:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:1085:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:1124:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_yield [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:1227:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:1261:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:1447:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_yield [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:1481:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:1541:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_yield [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:1694:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:1739:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:1773:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:1796:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:1830:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:1959:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2034:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2076:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2161:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2175:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2255:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2282:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2295:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2304:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qtrue [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2321:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2332:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qtrue [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2350:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2382:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2405:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_FILE [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2547:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2606:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2622:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2660:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2700:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2763:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2793:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2883:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2922:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2937:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:2996:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3015:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3057:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3094:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3150:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3196:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3214:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3259:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3315:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3414:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3480:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3524:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3577:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3593:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3693:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3729:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3928:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INV_READ [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3957:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InvalidOid [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:3978:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4002:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4037:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INV_READ [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4065:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4113:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4193:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4216:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4239:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4250:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4273:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4299:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4350:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4418:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4521:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4570:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4627:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_connection.c:4670:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.2/ext/pg_text_encoder.c:421:9: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_text_encoder.c:443:24: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_text_encoder.c:444:8: style: Variable 'ptr1' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_text_encoder.c:605:8: style: Variable 'end_ptr' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_text_encoder.c:627:8: style: Variable 'p_inend' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_text_encoder.c:712:8: style: Variable 'ptr1' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_connection.c:1051:6: warning: Either the condition 'cancel==NULL' is redundant or there is possible null pointer dereference: cancel. [nullPointerRedundantCheck] pg-1.6.2/ext/pg_connection.c:1048:12: note: Assuming that condition 'cancel==NULL' is not redundant pg-1.6.2/ext/pg_connection.c:1051:6: note: Null pointer dereference pg-1.6.2/ext/pg_connection.c:1290:58: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] pg-1.6.2/ext/pg_connection.c:1280:31: note: Assuming allocation function fails pg-1.6.2/ext/pg_connection.c:1280:17: note: Assignment 'memory_pool=(char*)xmalloc(required_pool_size)', assigned value is 0 pg-1.6.2/ext/pg_connection.c:1289:23: note: Assignment 'paramsData->values=(char**)memory_pool', assigned value is 0 pg-1.6.2/ext/pg_connection.c:1290:58: note: Null pointer addition pg-1.6.2/ext/pg_connection.c:3161:37: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] pg-1.6.2/ext/pg_connection.c:961:12: style: Redundant initialization for 'socket_io'. The initialized value is overwritten before it is read. [redundantInitialization] pg-1.6.2/ext/pg_connection.c:948:18: note: socket_io is initialized pg-1.6.2/ext/pg_connection.c:961:12: note: socket_io is overwritten pg-1.6.2/ext/pg_connection.c:2932:50: style:inconclusive: Function 'notice_receiver_proxy' argument 2 names different: declaration 'result' definition 'pgresult'. [funcArgNamesDifferent] pg-1.6.2/ext/pg.h:376:55: note: Function 'notice_receiver_proxy' argument 2 names different: declaration 'result' definition 'pgresult'. pg-1.6.2/ext/pg_connection.c:2932:50: note: Function 'notice_receiver_proxy' argument 2 names different: declaration 'result' definition 'pgresult'. pg-1.6.2/ext/pg_connection.c:552:19: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_connection.c:722:8: style: Variable 'port' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_connection.c:1381:45: style: Parameter 'paramsData' can be declared as pointer to const [constParameterPointer] pg-1.6.2/ext/pg_connection.c:2542:51: style: Parameter 'ptimeout' can be declared as pointer to const [constParameterPointer] pg-1.6.2/ext/pg_connection.c:2932:29: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] pg-1.6.2/ext/pg_connection.c:3010:30: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] pg-1.6.2/ext/pg_connection.c:3184:8: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_connection.c:4403:17: style: Variable 'conn_encoding' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_connection.c:4459:19: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_connection.c:4497:19: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_connection.c:4547:19: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_connection.c:4596:19: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_connection.c:4643:19: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_connection.c:1019:12: style: struct member 'SockAddr::salen' is never used. [unusedStructMember] pg-1.6.2/ext/pg_connection.c:1469:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] pg-1.6.2/ext/pg_connection.c:2064:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] pg-1.6.2/ext/pg_type_map_by_mri_type.c:221:8: style: Variable 'p_mri_type' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_type_map_by_mri_type.c:253:8: style: Variable 'p_mri_type' can be declared as pointer to const [constVariablePointer] pg-1.6.2/ext/pg_text_decoder.c:89:32: style: Parameter 'conv' can be declared as pointer to const. However it seems that 'pg_text_dec_string' is a callback function, if 'conv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pg-1.6.2/ext/pg_text_decoder.c:996:29: note: You might need to cast the function pointer here pg-1.6.2/ext/pg_text_decoder.c:89:32: note: Parameter 'conv' can be declared as pointer to const pg-1.6.2/ext/pg_text_decoder.c:104:33: style: Parameter 'conv' can be declared as pointer to const. However it seems that 'pg_text_dec_integer' is a callback function, if 'conv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pg-1.6.2/ext/pg_text_decoder.c:992:30: note: You might need to cast the function pointer here pg-1.6.2/ext/pg_text_decoder.c:104:33: note: Parameter 'conv' can be declared as pointer to const pg-1.6.2/ext/pg_text_decoder.c:281:42: style: Parameter 'this' can be declared as pointer to const [constParameterPointer] diff: DONE