2026-03-25 15:32 ftp://ftp.de.debian.org/debian/pool/main/r/ruby-pg/ruby-pg_1.6.3.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 -j1 platform: Linux-6.8.0-106-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: c24bf0e (2026-03-25 16:05:59 +0100) count: 330 330 elapsed-time: 4.2 4.4 head-timing-info: old-timing-info: head results: pg-1.6.3/ext/gvl_wrappers.c:17:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PGRES_POLLING_FAILED [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/gvl_wrappers.c:10:35: style: Parameter 'conn' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/gvl_wrappers.c:11:33: style: Parameter 'conn' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/gvl_wrappers.c:12:33: style: Parameter 'conn' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/gvl_wrappers.c:13:31: style: Parameter 'conn' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/gvl_wrappers.c:14:32: style: Parameter 'conn' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/gvl_wrappers.c:15:36: style: Parameter 'cancelConn' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/gvl_wrappers.c:16:33: style: Parameter 'cancelConn' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/gvl_wrappers.c:17:54: style: Parameter 'cancelConn' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/gvl_wrappers.c:20:28: style: Parameter 'conn' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/pg.c:144:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_enc_pg2ruby_mapping [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg.c:174:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_enc_pg2ruby_mapping [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg.c:265:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg.c:308:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg.c:326:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg.c:367:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECTION_OK [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_binary_decoder.c:30:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_binary_decoder.c:53:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_binary_decoder.c:84:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_binary_decoder.c:101:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_binary_decoder.c:123:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_text_dec_string [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_binary_decoder.c:190:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_binary_decoder.c:312:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_binary_decoder.c:394:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_binary_decoder.c:422:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_binary_decoder.c:450:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_text_dec_string [valueFlowBailoutIncompleteVar] pg-1.6.3/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.3/ext/pg_binary_decoder.c:454:32: note: You might need to cast the function pointer here pg-1.6.3/ext/pg_binary_decoder.c:304:34: note: Parameter 'conv' can be declared as pointer to const pg-1.6.3/ext/pg_binary_encoder.c:31:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qtrue [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_binary_encoder.c:198:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_binary_encoder.c:283:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_binary_encoder.c:332:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.3/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.3/ext/pg_binary_encoder.c:181:5: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] pg-1.6.3/ext/pg_binary_encoder.c:272:5: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] pg-1.6.3/ext/pg_binary_encoder.c:398:7: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] pg-1.6.3/ext/pg_binary_encoder.c:199:10: style: Variable 'pstr' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_binary_encoder.c:284:10: style: Variable 'pstr' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_coder.c:23:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_coder.c:42:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_coder.c:61:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_coder.c:139:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_coder.c:162:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_coder.c:180:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_coder.c:242:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_coder.c:391:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_coder.c:410:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_coder.c:451:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_coder.c:491:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_coder.c:514:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_coder.c:559:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_coder_enc_to_s [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_coder.c:588:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable pg_text_dec_string [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_coder.c:612:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_coder.c:293:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_coder.c:325:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_coder.c:356:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_coder.c:467:24: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_coder.c:549:31: style: Parameter 'this' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/pg_coder.c:578:31: style: Parameter 'this' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/pg_connection.c:108:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:133:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:260:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:288:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECTION_BAD [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:336:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECTION_BAD [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:428:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:461:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:540:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:554:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:582:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONNECTION_BAD [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:604:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:637:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:651:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:665:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:690:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:725:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable DEF_PGPORT [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:752:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:840:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:910:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:965:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:1073:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:1086:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:1125:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_yield [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:1228:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:1262:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:1448:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_yield [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:1482:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:1542:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_yield [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:1695:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:1740:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:1774:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:1797:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:1831:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:1960:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2035:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2077:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2162:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2176:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2256:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2283:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2296:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2305:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qtrue [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2322:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2333:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qtrue [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2351:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2383:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2406:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_FILE [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2548:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2607:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2623:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2661:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2701:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2764:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2794:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2884:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2923:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2938:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:2997:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3016:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3058:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3095:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3151:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3197:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3215:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3260:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3316:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3415:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3481:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3525:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3578:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3594:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3694:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3730:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3929:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INV_READ [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3958:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InvalidOid [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:3979:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4003:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4038:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INV_READ [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4066:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4114:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4194:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4217:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4240:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4251:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4274:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4300:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4351:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4419:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4534:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4587:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4647:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:4690:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_connection.c:1052:6: warning: Either the condition 'cancel==NULL' is redundant or there is possible null pointer dereference: cancel. [nullPointerRedundantCheck] pg-1.6.3/ext/pg_connection.c:1049:12: note: Assuming that condition 'cancel==NULL' is not redundant pg-1.6.3/ext/pg_connection.c:1052:6: note: Null pointer dereference pg-1.6.3/ext/pg_connection.c:1291:58: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] pg-1.6.3/ext/pg_connection.c:1281:31: note: Assuming allocation function fails pg-1.6.3/ext/pg_connection.c:1281:17: note: Assignment 'memory_pool=(char*)xmalloc(required_pool_size)', assigned value is 0 pg-1.6.3/ext/pg_connection.c:1290:23: note: Assignment 'paramsData->values=(char**)memory_pool', assigned value is 0 pg-1.6.3/ext/pg_connection.c:1291:58: note: Null pointer addition pg-1.6.3/ext/pg_connection.c:3162:37: portability: Casting non-zero decimal integer literal to pointer. [intToPointerCast] pg-1.6.3/ext/pg_connection.c:962:12: style: Redundant initialization for 'socket_io'. The initialized value is overwritten before it is read. [redundantInitialization] pg-1.6.3/ext/pg_connection.c:949:18: note: socket_io is initialized pg-1.6.3/ext/pg_connection.c:962:12: note: socket_io is overwritten pg-1.6.3/ext/pg_connection.c:2933:50: style:inconclusive: Function 'notice_receiver_proxy' argument 2 names different: declaration 'result' definition 'pgresult'. [funcArgNamesDifferent] pg-1.6.3/ext/pg.h:378:55: note: Function 'notice_receiver_proxy' argument 2 names different: declaration 'result' definition 'pgresult'. pg-1.6.3/ext/pg_connection.c:2933:50: note: Function 'notice_receiver_proxy' argument 2 names different: declaration 'result' definition 'pgresult'. pg-1.6.3/ext/pg_connection.c:553:19: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_connection.c:723:8: style: Variable 'port' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_connection.c:1382:45: style: Parameter 'paramsData' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/pg_connection.c:2543:51: style: Parameter 'ptimeout' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/pg_connection.c:2933:29: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/pg_connection.c:3011:30: style: Parameter 'arg' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/pg_connection.c:3185:8: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_connection.c:4404:17: style: Variable 'conn_encoding' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_connection.c:4465:19: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_connection.c:4508:19: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_connection.c:4562:19: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_connection.c:4616:19: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_connection.c:4663:19: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_connection.c:1020:12: style: struct member 'SockAddr::salen' is never used. [unusedStructMember] pg-1.6.3/ext/pg_connection.c:1470:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] pg-1.6.3/ext/pg_connection.c:2065:8: style: Variable 'i' is assigned a value that is never used. [unreadVariable] pg-1.6.3/ext/pg_copy_coder.c:102:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_copy_coder.c:165:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_copy_coder.c:233:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_copy_coder.c:378:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_copy_coder.c:686:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_copy_coder.c:828:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_copy_coder.c:398:5: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] pg-1.6.3/ext/pg_copy_coder.c:143:18: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_copy_coder.c:182:18: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_copy_coder.c:236:9: style: Variable 'ptr1' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_errors.c:78:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eStandardError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_record_coder.c:91:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_record_coder.c:193:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_record_coder.c:413:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_record_coder.c:108:20: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_record_coder.c:198:9: style: Variable 'ptr1' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_record_coder.c:388:8: style: Variable 'cur_ptr' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_result.c:88:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PGresAttDesc [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:214:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:338:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:379:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:398:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:412:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qtrue [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:429:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:474:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:620:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:637:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:657:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNoMemError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:718:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:798:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:833:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:860:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:885:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:906:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:936:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:957:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:983:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1004:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1027:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1052:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1103:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1146:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable InvalidOid [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1176:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eIndexError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1212:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1244:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1269:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eIndexError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1313:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_SYMBOL [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1347:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eIndexError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1364:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1400:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eIndexError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1521:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1714:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:1753:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_result.c:207:2: warning: If memory allocation fails, then there is a possible null pointer dereference: this [nullPointerOutOfMemory] pg-1.6.3/ext/pg_result.c:206:31: note: Assuming allocation function fails pg-1.6.3/ext/pg_result.c:206:9: note: Assignment 'this=(struct t_pg_result*)xmalloc(sizeof(*this)+sizeof(*this->fnames)*nfields)', assigned value is 0 pg-1.6.3/ext/pg_result.c:207:2: note: Null pointer dereference pg-1.6.3/ext/pg_result.c:265:9: warning: If memory allocation fails, then there is a possible null pointer dereference: copy [nullPointerOutOfMemory] pg-1.6.3/ext/pg_result.c:264:31: note: Assuming allocation function fails pg-1.6.3/ext/pg_result.c:264:9: note: Assignment 'copy=(struct t_pg_result*)xmalloc(len)', assigned value is 0 pg-1.6.3/ext/pg_result.c:265:9: note: Null pointer dereference pg-1.6.3/ext/pg_result.c:219:20: style: Variable 'p_conn' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_result.c:459:15: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_result.c:610: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.3/ext/pg_result.c:1760:47: note: You might need to cast the function pointer here pg-1.6.3/ext/pg_result.c:610:38: note: Parameter 'argv' can be declared as pointer to const pg-1.6.3/ext/pg_result.c:1495:15: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_result.c:1502: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.3/ext/pg_result.c:1651:35: note: You might need to cast the function pointer here pg-1.6.3/ext/pg_result.c:1502:56: note: Parameter 'data' can be declared as pointer to const pg-1.6.3/ext/pg_result.c:1736:15: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_text_decoder.c:75:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_decoder.c:92:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_decoder.c:109:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FIXNUM_MAX [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_decoder.c:172:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_decoder.c:185:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_decoder.c:207:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_decoder.c:226:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_decoder.c:243:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNoMemError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_decoder.c:283:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_decoder.c:332:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_decoder.c:520:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NAMEDATALEN [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_decoder.c:587:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_decoder.c:760:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_decoder.c:830:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AF_INET6 [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_decoder.c:964:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/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.3/ext/pg_text_decoder.c:996:29: note: You might need to cast the function pointer here pg-1.6.3/ext/pg_text_decoder.c:89:32: note: Parameter 'conv' can be declared as pointer to const pg-1.6.3/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.3/ext/pg_text_decoder.c:992:30: note: You might need to cast the function pointer here pg-1.6.3/ext/pg_text_decoder.c:104:33: note: Parameter 'conv' can be declared as pointer to const pg-1.6.3/ext/pg_text_decoder.c:281:42: style: Parameter 'this' can be declared as pointer to const [constParameterPointer] pg-1.6.3/ext/pg_text_encoder.c:166:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_STRING [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_encoder.c:316:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_encoder.c:392:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_encoder.c:549:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_encoder.c:608:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_encoder.c:638:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_encoder.c:654:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_encoder.c:690:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_encoder.c:761:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_encoder.c:800:4: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENCODING_INLINE_MAX [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_text_encoder.c:421:9: style: Variable 'eptr' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_text_encoder.c:443:24: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_text_encoder.c:444:8: style: Variable 'ptr1' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_text_encoder.c:605:8: style: Variable 'end_ptr' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_text_encoder.c:627:8: style: Variable 'p_inend' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_text_encoder.c:712:8: style: Variable 'ptr1' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_tuple.c:61:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_tuple.c:169:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qundef [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_tuple.c:191:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_tuple.c:202:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qundef [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_tuple.c:217:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_tuple.c:277:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eIndexError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_tuple.c:323:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_tuple.c:346:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ST_CONTINUE [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_tuple.c:365:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_tuple.c:471:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qfalse [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_tuple.c:497:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_tuple.c:553:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_tuple.c:225:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_tuple.c:253:33: style: Parameter 'argv' can be declared as pointer to const. However it seems that 'pg_tuple_fetch' is a callback function, if 'argv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] pg-1.6.3/ext/pg_tuple.c:557:42: note: You might need to cast the function pointer here pg-1.6.3/ext/pg_tuple.c:253:33: note: Parameter 'argv' can be declared as pointer to const pg-1.6.3/ext/pg_tuple.c:337:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_tuple.c:388:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_tuple.c:422:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_tuple.c:442:14: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_type_map.c:64:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNotImpError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map.c:70:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNotImpError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map.c:76:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNotImpError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map.c:82:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNotImpError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map.c:88:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNotImpError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map.c:94:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eNotImpError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map.c:195:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cObject [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map.c:19:13: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_type_map.c:156:13: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_type_map_all_strings.c:42:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/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.3/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.3/ext/pg_type_map_all_strings.c:100:37: note: You might need to cast the function pointer here pg-1.6.3/ext/pg_type_map_all_strings.c:64:42: note: Parameter 'p_typemap' can be declared as pointer to const pg-1.6.3/ext/pg_type_map_by_class.c:52:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.3/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.3/ext/pg_type_map_by_column.c:25:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map_by_column.c:57:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map_by_column.c:93:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map_by_column.c:139:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/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.3/ext/pg_type_map_by_column.c:271:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable T_ARRAY [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map_by_column.c:320:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/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.3/ext/pg_type_map_by_column.c:41:44: note: Assuming allocation function fails pg-1.6.3/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.3/ext/pg_type_map_by_column.c:43:11: note: Null pointer dereference pg-1.6.3/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.3/ext/pg_type_map_by_column.c:41:44: note: Assuming allocation function fails pg-1.6.3/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.3/ext/pg_type_map_by_column.c:44:3: note: Null pointer dereference pg-1.6.3/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.3/ext/pg_type_map_by_column.c:273:16: note: Assuming allocation function fails pg-1.6.3/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.3/ext/pg_type_map_by_column.c:275:2: note: Null pointer dereference pg-1.6.3/ext/pg_type_map_by_mri_type.c:65:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/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.3/ext/pg_type_map_by_mri_type.c:226:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/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.3/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.3/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.3/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.3/ext/pg_type_map_by_oid.c:100:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/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.3/ext/pg_type_map_by_oid.c:249:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map_by_oid.c:282:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eArgError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map_by_oid.c:355:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/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.3/ext/pg_type_map_by_oid.c:66:20: note: Assuming allocation function fails pg-1.6.3/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.3/ext/pg_type_map_by_oid.c:68:2: note: Null pointer dereference pg-1.6.3/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.3/ext/pg_type_map_by_oid.c:66:20: note: Assuming allocation function fails pg-1.6.3/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.3/ext/pg_type_map_by_oid.c:69:2: note: Null pointer dereference pg-1.6.3/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.3/ext/pg_type_map_by_oid.c:66:20: note: Assuming allocation function fails pg-1.6.3/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.3/ext/pg_type_map_by_oid.c:70:2: note: Null pointer dereference pg-1.6.3/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.3/ext/pg_type_map_by_oid.c:66:20: note: Assuming allocation function fails pg-1.6.3/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.3/ext/pg_type_map_by_oid.c:79:18: note: Assuming condition is false pg-1.6.3/ext/pg_type_map_by_oid.c:82:3: note: Null pointer dereference pg-1.6.3/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.3/ext/pg_type_map_by_oid.c:66:20: note: Assuming allocation function fails pg-1.6.3/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.3/ext/pg_type_map_by_oid.c:79:18: note: Assuming condition is false pg-1.6.3/ext/pg_type_map_by_oid.c:85:2: note: Null pointer dereference pg-1.6.3/ext/pg_type_map_by_oid.c:337:10: style: Variable 'this' can be declared as pointer to const [constVariablePointer] pg-1.6.3/ext/pg_type_map_in_ruby.c:78:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map_in_ruby.c:173:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_eTypeError [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map_in_ruby.c:199:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Qnil [valueFlowBailoutIncompleteVar] pg-1.6.3/ext/pg_type_map_in_ruby.c:231:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable rb_cInteger [valueFlowBailoutIncompleteVar] diff: DONE