2025-05-08 09:19 ftp://ftp.de.debian.org/debian/pool/main/t/telegram-purple/telegram-purple_1.4.3.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=gtk --library=zlib --library=openssl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j3 platform: Linux-6.8.0-1022-oracle-aarch64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0 cppcheck: head 2.17.0 head-info: ebc80c0 (2025-05-07 18:59:31 +0200) count: 772 772 elapsed-time: 3.5 3.6 head-timing-info: old-timing-info: head results: telegram-purple/msglog.c:42:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_DEBUG_MISC [valueFlowBailoutIncompleteVar] telegram-purple/msglog.c:49:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_DEBUG_INFO [valueFlowBailoutIncompleteVar] telegram-purple/msglog.c:56:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_DEBUG_WARNING [valueFlowBailoutIncompleteVar] telegram-purple/msglog.c:63:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_DEBUG_ERROR [valueFlowBailoutIncompleteVar] telegram-purple/msglog.c:70:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_DEBUG_FATAL [valueFlowBailoutIncompleteVar] telegram-purple/telegram-purple.c:889:43: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] telegram-purple/msglog.c:152:42: style:inconclusive: Function 'print_flags_update' argument 1 names different: declaration 'update' definition 'flags'. [funcArgNamesDifferent] telegram-purple/msglog.h:27:42: note: Function 'print_flags_update' argument 1 names different: declaration 'update' definition 'flags'. telegram-purple/msglog.c:152:42: note: Function 'print_flags_update' argument 1 names different: declaration 'update' definition 'flags'. telegram-purple/test/probetest.c:30:17: style: Variable 'tgp' can be declared as pointer to const [constVariablePointer] telegram-purple/test/probetest.c:36:21: style: Variable 'info' can be declared as pointer to const [constVariablePointer] telegram-purple/test/loadtest.c:65:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_IO_IN [valueFlowBailoutIncompleteVar] telegram-purple/test/loadtest.c:83:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_INPUT_READ [valueFlowBailoutIncompleteVar] telegram-purple/test/loadtest.c:203:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] telegram-purple/test/loadtest.c:266:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] telegram-purple/test/loadtest.c:92:3: error: Memory leak: closure [memleak] telegram-purple/test/loadtest.c:285:3: error: Memory leak: loop [memleak] telegram-purple/test/loadtest.c:160:10: style: Variable 'new_paths' can be declared as pointer to const [constVariablePointer] telegram-purple/test/loadtest.c:173:10: style: Variable 'envvar' can be declared as pointer to const [constVariablePointer] telegram-purple/test/loadtest.c:221:10: style: Variable 'pos' can be declared as pointer to const [constVariablePointer] telegram-purple/test/loadtest.c:256:26: style: Parameter 'argv' can be declared as const array [constParameter] telegram-purple/test/loadtest.c:48:18: style: struct member 'TdfAccountRequestInfo::account' is never used. [unusedStructMember] telegram-purple/test/loadtest.c:49:9: style: struct member 'TdfAccountRequestInfo::ui_handle' is never used. [unusedStructMember] telegram-purple/test/loadtest.c:50:9: style: struct member 'TdfAccountRequestInfo::user' is never used. [unusedStructMember] telegram-purple/test/loadtest.c:51:12: style: struct member 'TdfAccountRequestInfo::userdata' is never used. [unusedStructMember] telegram-purple/test/loadtest.c:54:9: style: struct member 'TdfAccountRequestInfo::ref' is never used. [unusedStructMember] telegram-purple/telegram-base.c:42:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] telegram-purple/telegram-base.c:79:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] telegram-purple/telegram-base.c:132:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGLDCF_LOGGED_IN [valueFlowBailoutIncompleteVar] telegram-purple/telegram-base.c:146:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] telegram-purple/telegram-base.c:188:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED [valueFlowBailoutIncompleteVar] telegram-purple/telegram-base.c:198:66: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TG_SERVER_TEST_1 [valueFlowBailoutIncompleteVar] telegram-purple/telegram-base.c:223:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] telegram-purple/telegram-base.c:265:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGL_PEER_ENCR_CHAT [valueFlowBailoutIncompleteVar] telegram-purple/telegram-base.c:295:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] telegram-purple/telegram-base.c:355:75: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGLECF_CREATE [valueFlowBailoutIncompleteVar] telegram-purple/telegram-base.c:363:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] telegram-purple/telegram-base.c:385:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] telegram-purple/telegram-base.c:406:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_DIR_SEPARATOR_S [valueFlowBailoutIncompleteVar] telegram-purple/telegram-base.c:446:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_NOTIFY_MSG_INFO [valueFlowBailoutIncompleteVar] telegram-purple/telegram-base.c:501:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_NOTIFY_MSG_ERROR [valueFlowBailoutIncompleteVar] telegram-purple/tgl/auto-static-store.c:107:39: style: Parameter 's' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/auto-static-store.c:253:57: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/telegram-base.c:92:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:125:13: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:129:13: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:134:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:136:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:137:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:138:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:139:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:150:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:151:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:152:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:159:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:166:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:168:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:171:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:176:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:177:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:237:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:240:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:245:13: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:272:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:274:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:275:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:276:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:277:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:278:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:279:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:280:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:281:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:282:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:283:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:284:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:285:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:286:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:287:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:288:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:299:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:301:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:302:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:311:11: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/telegram-base.c:322:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:323:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:325:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:326:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:327:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:328:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:329:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:330:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:331:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:332:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:333:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:334:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:336:13: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:346:13: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:347:13: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:348:13: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:372:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:374:11: warning: Assert statement calls a function which may have desired side effects: 'read'. [assertWithSideEffect] telegram-purple/telegram-base.c:43:3: error: Mismatching allocation and deallocation: name [mismatchAllocDealloc] telegram-purple/telegram-base.c:40:10: note: Mismatching allocation and deallocation: name telegram-purple/telegram-base.c:43:3: note: Mismatching allocation and deallocation: name telegram-purple/telegram-base.c:80:3: error: Mismatching allocation and deallocation: name [mismatchAllocDealloc] telegram-purple/telegram-base.c:77:10: note: Mismatching allocation and deallocation: name telegram-purple/telegram-base.c:80:3: note: Mismatching allocation and deallocation: name telegram-purple/telegram-base.c:147:3: error: Mismatching allocation and deallocation: name [mismatchAllocDealloc] telegram-purple/telegram-base.c:145:10: note: Mismatching allocation and deallocation: name telegram-purple/telegram-base.c:147:3: note: Mismatching allocation and deallocation: name telegram-purple/telegram-base.c:224:3: error: Mismatching allocation and deallocation: name [mismatchAllocDealloc] telegram-purple/telegram-base.c:222:10: note: Mismatching allocation and deallocation: name telegram-purple/telegram-base.c:224:3: note: Mismatching allocation and deallocation: name telegram-purple/telegram-base.c:296:3: error: Mismatching allocation and deallocation: name [mismatchAllocDealloc] telegram-purple/telegram-base.c:294:10: note: Mismatching allocation and deallocation: name telegram-purple/telegram-base.c:296:3: note: Mismatching allocation and deallocation: name telegram-purple/telegram-base.c:364:3: error: Mismatching allocation and deallocation: name [mismatchAllocDealloc] telegram-purple/telegram-base.c:361:10: note: Mismatching allocation and deallocation: name telegram-purple/telegram-base.c:364:3: note: Mismatching allocation and deallocation: name telegram-purple/telegram-base.c:414:101: style:inconclusive: Function 'write_secret_chat_gw' argument 4 names different: declaration 'E' definition '_'. [funcArgNamesDifferent] telegram-purple/telegram-base.h:32:101: note: Function 'write_secret_chat_gw' argument 4 names different: declaration 'E' definition '_'. telegram-purple/telegram-base.c:414:101: note: Function 'write_secret_chat_gw' argument 4 names different: declaration 'E' definition '_'. telegram-purple/telegram-base.c:423:26: style:inconclusive: Function 'tgp_create_group_chat_by_usernames' argument 5 names different: declaration 'print_names' definition 'use_print_names'. [funcArgNamesDifferent] telegram-purple/telegram-base.h:39:82: note: Function 'tgp_create_group_chat_by_usernames' argument 5 names different: declaration 'print_names' definition 'use_print_names'. telegram-purple/telegram-base.c:423:26: note: Function 'tgp_create_group_chat_by_usernames' argument 5 names different: declaration 'print_names' definition 'use_print_names'. telegram-purple/telegram-base.c:69:42: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/telegram-base.c:120:31: style: Parameter 'DC' can be declared as pointer to const. However it seems that 'write_dc' is a callback function, if 'DC' is declared with const you might also need to cast function pointer(s). [constParameterCallback] telegram-purple/telegram-base.c:157:28: note: You might need to cast the function pointer here telegram-purple/telegram-base.c:120:31: note: Parameter 'DC' can be declared as pointer to const telegram-purple/telegram-base.c:121:26: style: Variable 'ex' can be declared as pointer to const [constVariablePointer] telegram-purple/telegram-base.c:185:43: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/telegram-base.c:454:62: style: Parameter 'sha1_key' can be declared as pointer to const [constParameterPointer] telegram-purple/telegram-base.c:455:7: style: Variable 'colors' can be declared as const array [constVariable] telegram-purple/telegram-base.c:497:48: style: Parameter 'TLS' can be declared as pointer to const. However it seems that 'tgp_notify_on_error_gw' is a callback function, if 'TLS' is declared with const you might also need to cast function pointer(s). [constParameterCallback] telegram-purple/telegram-base.c:444:9: note: You might need to cast the function pointer here telegram-purple/telegram-base.c:497:48: note: Parameter 'TLS' can be declared as pointer to const telegram-purple/tgl/tools.h:63:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] telegram-purple/tgl/tools.h:69:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] telegram-purple/tgl/tools.h:123:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] telegram-purple/tgl/mtproto-common.h:307:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_bool_true [valueFlowBailoutIncompleteVar] telegram-purple/telegram-base.c:464:28: style: Variable 'idx' is assigned a value that is never used. [unreadVariable] telegram-purple/tgl/mtproto-common.h:157:4: portability: Casting between signed int * and double * which have an incompatible binary data representation. [invalidPointerCast] telegram-purple/tgl/mtproto-common.h:337:15: portability: Casting between signed int * and double * which have an incompatible binary data representation. [invalidPointerCast] telegram-purple/tgl/auto-static.c:178:39: style: Parameter 's' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-common.h:225:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/mtproto-common.h:241:9: style: Variable 'r' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/mtproto-common.h:351:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/tools.h:75:38: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/tools.h:121:18: style: Variable 'bptr' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/mtproto-common.h:353:17: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/mtproto-common.h:353:23: portability: 'buf+256' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/crypto/aes_openssl.c:34:92: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/aes_openssl.c:39:92: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/bn_openssl.c:39:37: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/bn_openssl.c:47:29: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/bn_openssl.c:51:35: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/bn_openssl.c:59:103: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/bn_openssl.c:67:68: style: Parameter 'ret' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/bn_openssl.c:71:32: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/bn_openssl.c:83:28: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/bn_openssl.c:88:27: style: Parameter 'dv' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/bn_openssl.c:88:40: style: Parameter 'rem' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/bn_openssl.c:88:94: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/bn_openssl.c:92:31: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/bn_openssl.c:92:101: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/rsa_pem_openssl.c:88:33: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/rsa_pem_openssl.c:94:33: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/crypto/rsa_pem_openssl.c:100:31: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:542:37: style: Condition 'P->encr_chat.exchange_state!=tgl_sce_committed' is always true [knownConditionTrueFalse] telegram-purple/tgl/binlog.c:541:35: note: Assignment 'P->encr_chat.exchange_state=tgl_sce_none', assigned value is 0 telegram-purple/tgl/binlog.c:542:37: note: Condition 'P->encr_chat.exchange_state!=tgl_sce_committed' is always true telegram-purple/tgl/binlog.c:549:37: style: Condition 'P->encr_chat.exchange_state==tgl_sce_committed' is always false [knownConditionTrueFalse] telegram-purple/tgl/binlog.c:548:35: note: Assignment 'P->encr_chat.exchange_state=tgl_sce_none', assigned value is 0 telegram-purple/tgl/binlog.c:549:37: note: Condition 'P->encr_chat.exchange_state==tgl_sce_committed' is always false telegram-purple/tgl/binlog.c:97:50: style:inconclusive: Function 'bl_do_dc_signed' argument 2 names different: declaration 'id' definition 'num'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-binlog.h:34:50: note: Function 'bl_do_dc_signed' argument 2 names different: declaration 'id' definition 'num'. telegram-purple/tgl/binlog.c:97:50: note: Function 'bl_do_dc_signed' argument 2 names different: declaration 'id' definition 'num'. telegram-purple/tgl/binlog.c:133:74: style: Parameter 'prime' can be declared as const array [constParameter] telegram-purple/tgl/binlog.c:278:86: style: Parameter 'from_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:278:132: style: Parameter 'fwd_from_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:278:165: style: Parameter 'date' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:278:286: style: Parameter 'reply_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:382:91: style: Parameter 'from_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:382:115: style: Parameter 'to_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:382:127: style: Parameter 'date' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:509:84: style: Parameter 'exchange_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:509:119: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:560:60: style: Parameter 'access_hash' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:560:313: style: Parameter 'last_read_in' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:560:332: style: Parameter 'last_read_out' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:674:88: style: Parameter 'user_num' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:674:103: style: Parameter 'date' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:674:114: style: Parameter 'version' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:674:227: style: Parameter 'admin' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:674:239: style: Parameter 'last_read_in' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:674:258: style: Parameter 'last_read_out' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:788:65: style: Parameter 'access_hash' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:788:83: style: Parameter 'date' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:788:94: style: Parameter 'admin' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:788:106: style: Parameter 'user_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:788:121: style: Parameter 'key' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:788:132: style: Parameter 'g_key' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:788:145: style: Parameter 'first_key_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:788:164: style: Parameter 'state' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:788:198: style: Parameter 'in_seq_no' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:788:214: style: Parameter 'last_in_seq_no' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:788:235: style: Parameter 'out_seq_no' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:788:258: style: Parameter 'key_fingerprint' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:905:63: style: Parameter 'access_hash' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:905:81: style: Parameter 'date' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:905:245: style: Parameter 'about' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:905:272: style: Parameter 'participants_count' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:905:297: style: Parameter 'admins_count' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:905:316: style: Parameter 'kicked_count' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/binlog.c:905:335: style: Parameter 'last_read_in' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/generate.c:272:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:324:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:401:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:477:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:546:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:630:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:716:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:786:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:877:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:955:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:1039:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:1136:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:1165:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable methods [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:2057:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:2082:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:2103:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:2122:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:2184:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:2846:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:3023:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] telegram-purple/tgl/mtproto-client.c:362:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] telegram-purple/tgl/mtproto-client.c:427:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] telegram-purple/tgl/mtproto-client.c:557:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] telegram-purple/tgl/mtproto-client.c:829:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_vector [valueFlowBailoutIncompleteVar] telegram-purple/tgl/mtproto-client.c:1164:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __func__ [valueFlowBailoutIncompleteVar] telegram-purple/tgl/mtproto-client.c:1294:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOTCONN [valueFlowBailoutIncompleteVar] telegram-purple/tgl/mtproto-client.c:1315:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_vector [valueFlowBailoutIncompleteVar] telegram-purple/tgl/mtproto-client.c:370:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:383:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:476:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:787:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:813:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:828:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:829:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:842:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:854:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:877:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:888:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:895:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:904:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:912:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/mtproto-client.c:1112:23: style: The statement 'if (DC->server_salt!=enc->server_salt) DC->server_salt=enc->server_salt' is logically equivalent to 'DC->server_salt=enc->server_salt'. [duplicateConditionalAssign] telegram-purple/tgl/mtproto-client.c:1113:21: note: Assignment 'DC->server_salt=enc->server_salt' telegram-purple/tgl/mtproto-client.c:1112:23: note: Condition 'DC->server_salt!=enc->server_salt' is redundant telegram-purple/tgl/mtproto-client.c:1310:1: style:inconclusive: Function 'tree_get_min_long' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/mtproto-client.c:1310:1: note: Function 'tree_get_min_long' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/mtproto-client.c:1310:1: note: Function 'tree_get_min_long' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/mtproto-client.c:1426:76: style:inconclusive: Function 'tglmp_regenerate_temp_auth_key' argument 2 names different: declaration 'D' definition 'DC'. [funcArgNamesDifferent] telegram-purple/tgl/mtproto-client.h:53:76: note: Function 'tglmp_regenerate_temp_auth_key' argument 2 names different: declaration 'D' definition 'DC'. telegram-purple/tgl/mtproto-client.c:1426:76: note: Function 'tglmp_regenerate_temp_auth_key' argument 2 names different: declaration 'D' definition 'DC'. telegram-purple/tgl/mtproto-client.c:126:73: style: Parameter 'DC' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-client.c:672:47: style: Parameter 'DC' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-client.c:709:53: style: Parameter 'DC' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-client.c:732:89: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-client.c:761:81: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-client.c:887:41: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-client.c:887:65: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-client.c:894:50: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-client.c:894:74: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-client.c:903:54: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-client.c:903:78: style: Parameter 'c' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-client.c:141:15: style: struct member 'Anonymous1::auth_key_id' is never used. [unusedStructMember] telegram-purple/tgl/mtproto-common.c:69:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] telegram-purple/tgl/mtproto-common.c:155:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] telegram-purple/tgl/mtproto-common.c:175:36: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-common.c:279:104: style: Parameter 'N' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-common.c:279:116: style: Parameter 'E' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-common.c:307:104: style: Parameter 'N' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-common.c:307:116: style: Parameter 'D' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/mtproto-common.c:364:30: style: Parameter 'auth_key' can be declared as const array [constParameter] telegram-purple/tgl/mtproto-common.c:364:50: style: Parameter 'msg_key' can be declared as const array [constParameter] telegram-purple/tgl/tl-parser/portable_endian.h:136:0: error: #error platform not supported [preprocessorErrorDirective] telegram-purple/tgl/tl-parser/portable_endian.h:136:3: error: #error platform not supported [preprocessorErrorDirective] telegram-purple/tgl/queries-encrypted.c:632:63: error: There is an unknown macro here somewhere. Configuration is required. If INT64_PRINTF_MODIFIER is a macro then please configure it. [unknownMacro] telegram-purple/tgl/structures.c:276:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_user_empty [valueFlowBailoutIncompleteVar] telegram-purple/tgl/structures.c:375:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_bool_true [valueFlowBailoutIncompleteVar] telegram-purple/tgl/structures.c:417:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_encrypted_chat_empty [valueFlowBailoutIncompleteVar] telegram-purple/tgl/structures.c:516:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_chat_empty [valueFlowBailoutIncompleteVar] telegram-purple/tgl/structures.c:595:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channel_full [valueFlowBailoutIncompleteVar] telegram-purple/tgl/structures.c:810:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_photo_empty [valueFlowBailoutIncompleteVar] telegram-purple/tgl/structures.c:846:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_video_empty [valueFlowBailoutIncompleteVar] telegram-purple/tgl/structures.c:881:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_audio_empty [valueFlowBailoutIncompleteVar] telegram-purple/tgl/structures.c:943:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_document_empty [valueFlowBailoutIncompleteVar] telegram-purple/tgl/structures.c:1158:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_message_media_empty [valueFlowBailoutIncompleteVar] telegram-purple/tgl/structures.c:1231:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_message_media_empty [valueFlowBailoutIncompleteVar] telegram-purple/tgl/structures.c:1526:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_message_empty [valueFlowBailoutIncompleteVar] telegram-purple/tgl/structures.c:1742:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] telegram-purple/tgl/structures.c:1822:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_encrypted_file_empty [valueFlowBailoutIncompleteVar] telegram-purple/tgl/structures.c:1921:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_bot_info_empty [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:506:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_invoke_with_layer [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:559:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:567:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:575:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries-encrypted.c:100:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_decrypted_message_action_notify_layer [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries-encrypted.c:109:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_decrypted_message_action_set_message_t_t_l [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries-encrypted.c:173:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_send_encrypted_service [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries-encrypted.c:244:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_send_encrypted [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries-encrypted.c:303:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_read_encrypted_history [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries-encrypted.c:336:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_send_encrypted_file [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries-encrypted.c:451:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_decrypted_message_media_geo_point [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries-encrypted.c:588:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_accept_encryption [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries-encrypted.c:691:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_request_encryption [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries-encrypted.c:741:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_discard_encryption [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries-encrypted.c:750:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_dh_config [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries-encrypted.c:789:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_get_dh_config [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries-encrypted.c:800:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_get_dh_config [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:624:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_vector [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:853:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_help_get_config [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:860:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_help_get_config [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:870:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_bool_true [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:891:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_send_code [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:921:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_send_call [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:946:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:962:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_sign_in [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:972:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_sign_up [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:984:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_import_bot_authorization [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1022:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_contacts_get_contacts [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1056:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1085:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_send_message [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1165:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1257:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1279:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1316:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1384:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1416:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_read_history [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1451:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1528:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_messages [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1548:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1570:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1611:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_get_history [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1765:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1790:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_get_dialogs [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1835:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_input_peer_chat [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1867:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1902:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_edit_chat_photo [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:1948:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_send_media [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2069:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_upload_save_file_part [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2114:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_upload_save_file_part [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2123:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2238:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2292:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_update_profile [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2301:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_update_username [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2342:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_contacts_resolve_username [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2392:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2424:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2515:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2552:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2585:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2606:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2696:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_send_media [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2723:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2747:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_edit_chat_title [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2759:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_edit_title [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2773:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_join_channel [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2786:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_leave_channel [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2813:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_edit_about [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2826:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_update_username [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2839:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_edit_admin [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2893:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable user_id [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2908:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2929:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_get_participants [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:2988:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3029:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3069:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3106:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_users_get_full_user [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3191:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3269:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3354:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_upload_get_file [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3405:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3428:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3479:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_input_document_file_location [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3487:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_input_video_file_location [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3495:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_input_audio_file_location [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3559:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_import_authorization [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3575:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_export_authorization [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3615:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_contacts_import_contacts [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3647:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3717:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_messages [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3734:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3756:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_search_global [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3780:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3837:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_updates_difference_empty [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3936:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_updates_get_state [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3956:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_updates_get_difference [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:3979:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_updates_channel_difference_empty [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4056:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_updates_get_channel_difference [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4088:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_add_chat_user [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4102:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_delete_chat_user [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4118:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_invite_to_channel [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4134:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_kick_from_channel [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4155:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4170:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_create_chat [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4196:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_channels_create_channel [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4247:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4269:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4327:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_contacts_export_card [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4352:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_contacts_import_card [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4362:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_start_bot [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4392:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_set_typing [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4503:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ENOENT [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4527:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4578:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4600:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_import_chat_invite [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4612:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4662:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4686:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_update_password_settings [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4806:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_no_password [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4825:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_get_password [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4839:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4879:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_check_password [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4904:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EIO [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4914:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_no_password [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4944:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_get_password [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:4962:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_message_media_empty [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:5025:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:5043:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINVAL [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:5113:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_help_get_terms_of_service [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:5122:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_messages_migrate_chat [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:5161:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_auth_bind_temp_auth_key [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:5186:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_update_status [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:5545:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_change_phone [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:5578:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_account_send_change_phone_code [valueFlowBailoutIncompleteVar] telegram-purple/tgl/generate.c:2144:13: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2193:11: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2258:11: warning: Assert statement calls a function which may have desired side effects: 'read_combinator_left'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2259:11: warning: Assert statement calls a function which may have desired side effects: 'read_combinator_right'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2831:11: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2850:13: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2863:13: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2864:13: warning: Assert statement calls a function which may have desired side effects: 'read_combinators'. [assertWithSideEffect] telegram-purple/tgl/generate.c:2877:13: warning: Assert statement calls a function which may have desired side effects: 'get_int'. [assertWithSideEffect] telegram-purple/tgl/structures.c:1132:13: warning: Assert statement calls a function which may have desired side effects: 'tgl_message_get'. [assertWithSideEffect] telegram-purple/tgl/structures.c:1574:13: warning: Assert statement calls a function which may have desired side effects: 'tgl_message_get'. [assertWithSideEffect] telegram-purple/tgl/structures.c:1705:13: warning: Assert statement calls a function which may have desired side effects: 'tgl_message_get'. [assertWithSideEffect] telegram-purple/tgl/structures.c:1740:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/structures.c:1750:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/structures.c:2345:11: style: Condition 'N' is always true [knownConditionTrueFalse] telegram-purple/tgl/structures.c:2346:11: style: Condition 'NP' is always false [knownConditionTrueFalse] telegram-purple/tgl/structures.c:2342:32: note: Assignment 'NP=0', assigned value is 0 telegram-purple/tgl/structures.c:2346:11: note: Condition 'NP' is always false telegram-purple/tgl/generate.c:76:1: style:inconclusive: Function 'tree_get_min_tl_type' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/generate.c:76:1: note: Function 'tree_get_min_tl_type' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/generate.c:76:1: note: Function 'tree_get_min_tl_type' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/generate.c:77:1: style:inconclusive: Function 'tree_get_min_tl_combinator' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/generate.c:77:1: note: Function 'tree_get_min_tl_combinator' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/generate.c:77:1: note: Function 'tree_get_min_tl_combinator' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/generate.c:76:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/generate.c:77:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/generate.c:102:25: style: Variable 'c' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/generate.c:202:40: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/generate.c:206:41: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/generate.c:210:45: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/generate.c:214:43: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/generate.c:218:44: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/generate.c:266:38: style: Parameter 'var_num' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/generate.c:287:19: style: Variable 'T' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/generate.c:332:9: style: Variable 'fail' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/generate.c:1436:19: style: Variable 'T' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/generate.c:1641:37: style: Parameter 't' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/generate.c:1964:48: style: Parameter 't' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/generate.c:2562:35: style: Variable 'd' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/structures.c:82:1: style:inconclusive: Function 'tree_get_min_peer' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:82:1: note: Function 'tree_get_min_peer' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:82:1: note: Function 'tree_get_min_peer' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:83:1: style:inconclusive: Function 'tree_get_min_peer_by_name' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:83:1: note: Function 'tree_get_min_peer_by_name' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:83:1: note: Function 'tree_get_min_peer_by_name' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:84:1: style:inconclusive: Function 'tree_get_min_message' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:84:1: note: Function 'tree_get_min_message' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:84:1: note: Function 'tree_get_min_message' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:85:1: style:inconclusive: Function 'tree_get_min_random_id' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:85:1: note: Function 'tree_get_min_random_id' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:85:1: note: Function 'tree_get_min_random_id' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:86:1: style:inconclusive: Function 'tree_get_min_temp_id' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:86:1: note: Function 'tree_get_min_temp_id' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:86:1: note: Function 'tree_get_min_temp_id' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:87:1: style:inconclusive: Function 'tree_get_min_photo' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:87:1: note: Function 'tree_get_min_photo' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:87:1: note: Function 'tree_get_min_photo' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:88:1: style:inconclusive: Function 'tree_get_min_document' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:88:1: note: Function 'tree_get_min_document' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:88:1: note: Function 'tree_get_min_document' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:89:1: style:inconclusive: Function 'tree_get_min_webpage' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/structures.c:89:1: note: Function 'tree_get_min_webpage' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:89:1: note: Function 'tree_get_min_webpage' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/structures.c:367:93: style:inconclusive: Function 'tglf_fetch_alloc_user_full' argument 2 names different: declaration 'DS_U' definition 'DS_UF'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-fetch.h:26:93: note: Function 'tglf_fetch_alloc_user_full' argument 2 names different: declaration 'DS_U' definition 'DS_UF'. telegram-purple/tgl/structures.c:367:93: note: Function 'tglf_fetch_alloc_user_full' argument 2 names different: declaration 'DS_U' definition 'DS_UF'. telegram-purple/tgl/structures.c:1999:56: style:inconclusive: Function 'tgl_insert_empty_user' argument 2 names different: declaration 'id' definition 'uid'. [funcArgNamesDifferent] telegram-purple/tgl/tgl.h:373:56: note: Function 'tgl_insert_empty_user' argument 2 names different: declaration 'id' definition 'uid'. telegram-purple/tgl/structures.c:1999:56: note: Function 'tgl_insert_empty_user' argument 2 names different: declaration 'id' definition 'uid'. telegram-purple/tgl/structures.c:2007:56: style:inconclusive: Function 'tgl_insert_empty_chat' argument 2 names different: declaration 'id' definition 'cid'. [funcArgNamesDifferent] telegram-purple/tgl/tgl.h:374:56: note: Function 'tgl_insert_empty_chat' argument 2 names different: declaration 'id' definition 'cid'. telegram-purple/tgl/structures.c:2007:56: note: Function 'tgl_insert_empty_chat' argument 2 names different: declaration 'id' definition 'cid'. telegram-purple/tgl/structures.c:2464:79: style:inconclusive: Function 'tgl_message_get' argument 2 names different: declaration 'id' definition 'msg_id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl.h:283:79: note: Function 'tgl_message_get' argument 2 names different: declaration 'id' definition 'msg_id'. telegram-purple/tgl/structures.c:2464:79: note: Function 'tgl_message_get' argument 2 names different: declaration 'id' definition 'msg_id'. telegram-purple/tgl/structures.c:1600:19: style: Local variable 'to_id' shadows outer variable [shadowVariable] telegram-purple/tgl/structures.c:1531:17: note: Shadowed declaration telegram-purple/tgl/structures.c:1600:19: note: Shadow variable telegram-purple/tgl/generate.c:2989:28: portability: 'buf' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/structures.c:52:47: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:52:70: style: Parameter 'R' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:58:45: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:58:68: style: Parameter 'R' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:64:44: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:64:65: style: Parameter 'R' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:70:50: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:70:74: style: Parameter 'R' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:76:48: style: Parameter 'L' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:76:71: style: Parameter 'R' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:82:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:83:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:84:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:85:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:86:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:87:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:88:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:89:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:119:17: style: Variable 'P' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/structures.c:130:77: style: Parameter 'DS_SMA' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:168:53: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:621:19: style: Variable 'P' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/structures.c:1641:8: style: Variable 'e_key' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/structures.c:1838:40: style: Parameter 'M1' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:1838:64: style: Parameter 'M2' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:2371:82: style: Parameter 'id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:2464:79: style: Parameter 'msg_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:2489:47: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:2503:47: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:2517:50: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:2531:52: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:2545:47: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/structures.c:2559:49: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/generate.c:355:7: style: Variable 'y' is assigned a value that is never used. [unreadVariable] telegram-purple/tgl/generate.c:359:7: style: Variable 'y' is assigned a value that is never used. [unreadVariable] telegram-purple/tgl/tgl-net.c:270:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] telegram-purple/tgl/tgl-net.c:324:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] telegram-purple/tgl/tgl-net.c:371:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] telegram-purple/tgl/tgl-net.c:443:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] telegram-purple/tgl/tgl-net.c:522:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] telegram-purple/tgl/tgl-net.c:351:11: warning: Assert statement calls a function which may have desired side effects: 'tgln_write_out'. [assertWithSideEffect] telegram-purple/tgl/tgl-net.c:389:11: warning: Assert statement calls a function which may have desired side effects: 'tgln_write_out'. [assertWithSideEffect] telegram-purple/tgl/tgl-net.c:476:15: warning: Assert statement calls a function which may have desired side effects: 'tgln_read_in'. [assertWithSideEffect] telegram-purple/tgl/tgl-net.c:481:15: warning: Assert statement calls a function which may have desired side effects: 'tgln_read_in'. [assertWithSideEffect] telegram-purple/tgl/tgl-net.c:128:55: style:inconclusive: Function 'tgln_write_out' argument 2 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-net-inner.h:70:55: note: Function 'tgln_write_out' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgl/tgl-net.c:128:55: note: Function 'tgln_write_out' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgl/tgl-net.c:165:47: style:inconclusive: Function 'tgln_read_in' argument 2 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-net-inner.h:72:47: note: Function 'tgln_read_in' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgl/tgl-net.c:165:47: note: Function 'tgln_read_in' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgl/tgl-net.c:197:54: style:inconclusive: Function 'tgln_read_in_lookup' argument 2 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-net-inner.h:73:54: note: Function 'tgln_read_in_lookup' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgl/tgl-net.c:197:54: note: Function 'tgln_read_in_lookup' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgl/tgl-net.c:222:41: style: Parameter 'c' can be declared as pointer to const. However it seems that 'tgln_flush_out' is a callback function, if 'c' is declared with const you might also need to cast function pointer(s). [constParameterCallback] telegram-purple/tgl/tgl-net.c:578:16: note: You might need to cast the function pointer here telegram-purple/tgl/tgl-net.c:222:41: note: Parameter 'c' can be declared as pointer to const telegram-purple/tgl/tgl-net.c:542:50: style: Parameter 'c' can be declared as pointer to const. However it seems that 'get_dc' is a callback function, if 'c' is declared with const you might also need to cast function pointer(s). [constParameterCallback] telegram-purple/tgl/tgl-net.c:580:13: note: You might need to cast the function pointer here telegram-purple/tgl/tgl-net.c:542:50: note: Parameter 'c' can be declared as pointer to const telegram-purple/tgl/tgl-net.c:546:60: style: Parameter 'c' can be declared as pointer to const. However it seems that 'get_session' is a callback function, if 'c' is declared with const you might also need to cast function pointer(s). [constParameterCallback] telegram-purple/tgl/tgl-net.c:581:18: note: You might need to cast the function pointer here telegram-purple/tgl/tgl-net.c:546:60: note: Parameter 'c' can be declared as pointer to const telegram-purple/tgl/tgl-timers.c:40:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] telegram-purple/tgl/tgl-timers.c:39:21: note: Assuming allocation function fails telegram-purple/tgl/tgl-timers.c:39:21: note: Assignment 'p=malloc(sizeof(void*)*3)', assigned value is 0 telegram-purple/tgl/tgl-timers.c:40:3: note: Null pointer dereference telegram-purple/tgl/tgl-timers.c:41:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] telegram-purple/tgl/tgl-timers.c:39:21: note: Assuming allocation function fails telegram-purple/tgl/tgl-timers.c:39:21: note: Assignment 'p=malloc(sizeof(void*)*3)', assigned value is 0 telegram-purple/tgl/tgl-timers.c:41:3: note: Null pointer dereference telegram-purple/tgl/tgl-timers.c:42:3: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] telegram-purple/tgl/tgl-timers.c:39:21: note: Assuming allocation function fails telegram-purple/tgl/tgl-timers.c:39:21: note: Assignment 'p=malloc(sizeof(void*)*3)', assigned value is 0 telegram-purple/tgl/tgl-timers.c:42:3: note: Null pointer dereference telegram-purple/tgl/tgl.c:57:75: style: Parameter 'cb' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/tg-mime-types.c:29:24: style:inconclusive: Redundant condition: The condition '*c != '\n'' is redundant since '*c > ' '' is sufficient. [redundantCondition] telegram-purple/tgl/tg-mime-types.c:31:23: style:inconclusive: Redundant condition: The condition '*c != '\n'' is redundant since '*c > ' '' is sufficient. [redundantCondition] telegram-purple/tgl/tg-mime-types.c:46:25: style:inconclusive: Redundant condition: The condition '*c != '\n'' is redundant since '*c > ' '' is sufficient. [redundantCondition] telegram-purple/tgl/tl-parser/tlc.c:59:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_CREAT [valueFlowBailoutIncompleteVar] telegram-purple/tgl/tl-parser/tlc.c:70:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] telegram-purple/tgl/tl-parser/tlc.c:124:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable optarg [valueFlowBailoutIncompleteVar] telegram-purple/tgl/tl-parser/tlc.c:74:33: style: Parameter 'in_end' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/tl-parser/tlc.c:75:8: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/tl-parser/tlc.c:114:9: style: Variable 'vkext_file' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/tools.c:99:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] telegram-purple/tgl/tools.c:238:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAX_WBITS [valueFlowBailoutIncompleteVar] telegram-purple/tgl/tools.c:238:11: warning: Assert statement calls a function which may have desired side effects: 'inflateInit2'. [assertWithSideEffect] telegram-purple/tgl/tools.c:311:11: warning: Assert statement calls a function which may have desired side effects: 'clock_gettime'. [assertWithSideEffect] telegram-purple/tgl/tools.c:169:14: warning: Either the condition 'ptr' is redundant or there is possible null pointer dereference: ptr. [nullPointerRedundantCheck] telegram-purple/tgl/tools.c:170:7: note: Assuming that condition 'ptr' is not redundant telegram-purple/tgl/tools.c:169:14: note: Null pointer dereference telegram-purple/tgl/tools.c:189:4: warning: If memory allocation fails, then there is a possible null pointer dereference: (int*)p [nullPointerOutOfMemory] telegram-purple/tgl/tools.c:187:20: note: Assuming allocation function fails telegram-purple/tgl/tools.c:187:20: note: Assignment 'p=malloc(size+8+8)', assigned value is 0 telegram-purple/tgl/tools.c:189:4: note: Null pointer dereference telegram-purple/tgl/tools.c:190:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] telegram-purple/tgl/tools.c:187:20: note: Assuming allocation function fails telegram-purple/tgl/tools.c:187:20: note: Assignment 'p=malloc(size+8+8)', assigned value is 0 telegram-purple/tgl/tools.c:190:14: note: Null pointer addition telegram-purple/tgl/tools.c:191:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] telegram-purple/tgl/tools.c:187:20: note: Assuming allocation function fails telegram-purple/tgl/tools.c:187:20: note: Assignment 'p=malloc(size+8+8)', assigned value is 0 telegram-purple/tgl/tools.c:191:14: note: Null pointer addition telegram-purple/tgl/tools.c:192:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] telegram-purple/tgl/tools.c:187:20: note: Assuming allocation function fails telegram-purple/tgl/tools.c:187:20: note: Assignment 'p=malloc(size+8+8)', assigned value is 0 telegram-purple/tgl/tools.c:192:14: note: Null pointer addition telegram-purple/tgl/tools.c:196:12: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] telegram-purple/tgl/tools.c:187:20: note: Assuming allocation function fails telegram-purple/tgl/tools.c:187:20: note: Assignment 'p=malloc(size+8+8)', assigned value is 0 telegram-purple/tgl/tools.c:196:12: note: Null pointer addition telegram-purple/tgl/tools.c:297:32: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/tools.c:135:7: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:140:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:140:34: portability: 'ptr+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:141:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:142:32: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:142:36: portability: 'ptr+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:142:46: portability: 'ptr+4+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:150:16: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:150:20: portability: 'p+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:150:30: portability: 'p+4+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:190:14: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:191:14: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:191:24: portability: 'p+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:192:14: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:192:26: portability: 'p+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:192:30: portability: 'p+8+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:196:12: portability: 'p' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:260:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:261:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:261:34: portability: 'ptr+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:262:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:262:34: portability: 'ptr+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:262:38: portability: 'ptr+8+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:272:25: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:272:29: portability: 'ptr+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:273:22: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:273:31: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:273:35: portability: 'ptr+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:273:39: portability: 'ptr+8+l' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:283:7: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:288:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:288:34: portability: 'ptr+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:289:24: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:290:32: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:290:36: portability: 'ptr+4' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgl/tools.c:290:46: portability: 'ptr+4+8' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] telegram-purple/tgp-2prpl.c:61:73: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TLS [valueFlowBailoutIncompleteVar] telegram-purple/tgp-2prpl.c:89:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGL_PEER_CHANNEL [valueFlowBailoutIncompleteVar] telegram-purple/tgp-2prpl.c:103:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_MESSAGE_SYSTEM [valueFlowBailoutIncompleteVar] telegram-purple/tgp-2prpl.c:132:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_CONV_TYPE_IM [valueFlowBailoutIncompleteVar] telegram-purple/tgp-2prpl.c:170:3: warning: Return value of function g_file_get_contents() is not used. [ignoredReturnValue] telegram-purple/tgp-2prpl.c:83:78: style:inconclusive: Function 'tgp_chat_got_in' argument 3 names different: declaration 'who' definition 'from'. [funcArgNamesDifferent] telegram-purple/tgp-2prpl.h:40:78: note: Function 'tgp_chat_got_in' argument 3 names different: declaration 'who' definition 'from'. telegram-purple/tgp-2prpl.c:83:78: note: Function 'tgp_chat_got_in' argument 3 names different: declaration 'who' definition 'from'. telegram-purple/tgp-2prpl.c:176:58: style:inconclusive: Function 'p2tgl_imgstore_add_with_id_raw' argument 1 names different: declaration 'raw_rgba' definition 'raw_bgra'. [funcArgNamesDifferent] telegram-purple/tgp-2prpl.h:47:58: note: Function 'p2tgl_imgstore_add_with_id_raw' argument 1 names different: declaration 'raw_rgba' definition 'raw_bgra'. telegram-purple/tgp-2prpl.c:176:58: note: Function 'p2tgl_imgstore_add_with_id_raw' argument 1 names different: declaration 'raw_rgba' definition 'raw_bgra'. telegram-purple/tgp-2prpl.c:39:50: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:311:11: warning: Assert statement calls a function which may have desired side effects: 'fetch_int'. [assertWithSideEffect] telegram-purple/tgl/queries.c:3225:13: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/tgl/queries.c:3227:13: warning: Assert statement calls a function which may have desired side effects: 'write'. [assertWithSideEffect] telegram-purple/tgl/updates.c:167:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODE_peer_channel [valueFlowBailoutIncompleteVar] telegram-purple/tgl/updates.c:791:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable type [valueFlowBailoutIncompleteVar] telegram-purple/tgp-blist.c:52:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_NORMALIZE_DEFAULT_COMPOSE [valueFlowBailoutIncompleteVar] telegram-purple/tgp-blist.c:62:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_NORMALIZE_DEFAULT_COMPOSE [valueFlowBailoutIncompleteVar] telegram-purple/tgp-blist.c:74:63: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGL_PEER_UNKNOWN [valueFlowBailoutIncompleteVar] telegram-purple/tgp-blist.c:113:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGL_PEER_ENCR_CHAT [valueFlowBailoutIncompleteVar] telegram-purple/tgp-blist.c:125:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGL_PEER_USER [valueFlowBailoutIncompleteVar] telegram-purple/tgp-blist.c:58:1: error: Memory leak: name [memleak] telegram-purple/tgp-blist.c:136:52: style:inconclusive: Function 'tgp_blist_buddy_get_peer' argument 1 names different: declaration 'peer' definition 'buddy'. [funcArgNamesDifferent] telegram-purple/tgp-blist.h:50:52: note: Function 'tgp_blist_buddy_get_peer' argument 1 names different: declaration 'peer' definition 'buddy'. telegram-purple/tgp-blist.c:136:52: note: Function 'tgp_blist_buddy_get_peer' argument 1 names different: declaration 'peer' definition 'buddy'. telegram-purple/tgl/updates.c:640:18: style: Condition 'check_only>0' is always false [knownConditionTrueFalse] telegram-purple/tgl/updates.c:632:18: note: Assuming that condition 'check_only>0' is not redundant telegram-purple/tgl/updates.c:636:19: note: Assuming condition is false telegram-purple/tgl/updates.c:640:18: note: Condition 'check_only>0' is always false telegram-purple/tgl/updates.c:647:18: style: Condition 'check_only>0' is always false [knownConditionTrueFalse] telegram-purple/tgl/updates.c:632:18: note: Assuming that condition 'check_only>0' is not redundant telegram-purple/tgl/updates.c:636:19: note: Assuming condition is false telegram-purple/tgl/updates.c:647:18: note: Condition 'check_only>0' is always false telegram-purple/tgl/updates.c:669:18: style: Condition 'check_only>0' is always false [knownConditionTrueFalse] telegram-purple/tgl/updates.c:661:18: note: Assuming that condition 'check_only>0' is not redundant telegram-purple/tgl/updates.c:665:19: note: Assuming condition is false telegram-purple/tgl/updates.c:669:18: note: Condition 'check_only>0' is always false telegram-purple/tgl/updates.c:676:18: style: Condition 'check_only>0' is always false [knownConditionTrueFalse] telegram-purple/tgl/updates.c:661:18: note: Assuming that condition 'check_only>0' is not redundant telegram-purple/tgl/updates.c:665:19: note: Assuming condition is false telegram-purple/tgl/updates.c:676:18: note: Condition 'check_only>0' is always false telegram-purple/tgl/queries.c:119:1: style:inconclusive: Function 'tree_get_min_query' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/queries.c:119:1: note: Function 'tree_get_min_query' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/queries.c:119:1: note: Function 'tree_get_min_query' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/queries.c:261:78: style:inconclusive: Function 'tglq_send_query' argument 3 names different: declaration 'len' definition 'ints'. [funcArgNamesDifferent] telegram-purple/tgl/queries.h:58:78: note: Function 'tglq_send_query' argument 3 names different: declaration 'len' definition 'ints'. telegram-purple/tgl/queries.c:261:78: note: Function 'tglq_send_query' argument 3 names different: declaration 'len' definition 'ints'. telegram-purple/tgl/queries.c:1251:69: style:inconclusive: Function 'tgl_do_reply_message' argument 2 names different: declaration 'msg_id' definition '_reply_id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:31:69: note: Function 'tgl_do_reply_message' argument 2 names different: declaration 'msg_id' definition '_reply_id'. telegram-purple/tgl/queries.c:1251:69: note: Function 'tgl_do_reply_message' argument 2 names different: declaration 'msg_id' definition '_reply_id'. telegram-purple/tgl/queries.c:1278:61: style:inconclusive: Function 'tgl_do_send_text' argument 2 names different: declaration 'peer_id' definition 'id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:34:61: note: Function 'tgl_do_send_text' argument 2 names different: declaration 'peer_id' definition 'id'. telegram-purple/tgl/queries.c:1278:61: note: Function 'tgl_do_send_text' argument 2 names different: declaration 'peer_id' definition 'id'. telegram-purple/tgl/queries.c:1310:66: style:inconclusive: Function 'tgl_do_reply_text' argument 2 names different: declaration 'msg_id' definition '_reply_id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:36:66: note: Function 'tgl_do_reply_text' argument 2 names different: declaration 'msg_id' definition '_reply_id'. telegram-purple/tgl/queries.c:1310:66: note: Function 'tgl_do_reply_text' argument 2 names different: declaration 'msg_id' definition '_reply_id'. telegram-purple/tgl/queries.c:2232:70: style:inconclusive: Function 'tgl_do_reply_document' argument 2 names different: declaration 'msg_id' definition '_reply_id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:42:70: note: Function 'tgl_do_reply_document' argument 2 names different: declaration 'msg_id' definition '_reply_id'. telegram-purple/tgl/queries.c:2232:70: note: Function 'tgl_do_reply_document' argument 2 names different: declaration 'msg_id' definition '_reply_id'. telegram-purple/tgl/queries.c:2422:76: style:inconclusive: Function 'tgl_do_forward_messages' argument 3 names different: declaration 'size' definition 'n'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:50:84: note: Function 'tgl_do_forward_messages' argument 3 names different: declaration 'size' definition 'n'. telegram-purple/tgl/queries.c:2422:76: note: Function 'tgl_do_forward_messages' argument 3 names different: declaration 'size' definition 'n'. telegram-purple/tgl/queries.c:2422:103: style:inconclusive: Function 'tgl_do_forward_messages' argument 4 names different: declaration 'msg_ids' definition '_ids'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:50:114: note: Function 'tgl_do_forward_messages' argument 4 names different: declaration 'msg_ids' definition '_ids'. telegram-purple/tgl/queries.c:2422:103: note: Function 'tgl_do_forward_messages' argument 4 names different: declaration 'msg_ids' definition '_ids'. telegram-purple/tgl/queries.c:2509:67: style:inconclusive: Function 'tgl_do_forward_message' argument 2 names different: declaration 'id' definition 'peer_id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:46:75: note: Function 'tgl_do_forward_message' argument 2 names different: declaration 'id' definition 'peer_id'. telegram-purple/tgl/queries.c:2509:67: note: Function 'tgl_do_forward_message' argument 2 names different: declaration 'id' definition 'peer_id'. telegram-purple/tgl/queries.c:2509:94: style:inconclusive: Function 'tgl_do_forward_message' argument 3 names different: declaration 'msg_id' definition '_msg_id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:46:97: note: Function 'tgl_do_forward_message' argument 3 names different: declaration 'msg_id' definition '_msg_id'. telegram-purple/tgl/queries.c:2509:94: note: Function 'tgl_do_forward_message' argument 3 names different: declaration 'msg_id' definition '_msg_id'. telegram-purple/tgl/queries.c:2579:69: style:inconclusive: Function 'tgl_do_reply_contact' argument 2 names different: declaration 'reply_id' definition '_reply_id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:57:69: note: Function 'tgl_do_reply_contact' argument 2 names different: declaration 'reply_id' definition '_reply_id'. telegram-purple/tgl/queries.c:2579:69: note: Function 'tgl_do_reply_contact' argument 2 names different: declaration 'reply_id' definition '_reply_id'. telegram-purple/tgl/queries.c:2604:65: style:inconclusive: Function 'tgl_do_forward_media' argument 2 names different: declaration 'id' definition 'peer_id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:63:65: note: Function 'tgl_do_forward_media' argument 2 names different: declaration 'id' definition 'peer_id'. telegram-purple/tgl/queries.c:2604:65: note: Function 'tgl_do_forward_media' argument 2 names different: declaration 'id' definition 'peer_id'. telegram-purple/tgl/queries.c:2604:92: style:inconclusive: Function 'tgl_do_forward_media' argument 3 names different: declaration 'msg_id' definition '_msg_id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:63:87: note: Function 'tgl_do_forward_media' argument 3 names different: declaration 'msg_id' definition '_msg_id'. telegram-purple/tgl/queries.c:2604:92: note: Function 'tgl_do_forward_media' argument 3 names different: declaration 'msg_id' definition '_msg_id'. telegram-purple/tgl/queries.c:2690:65: style:inconclusive: Function 'tgl_do_send_location' argument 2 names different: declaration 'id' definition 'peer_id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:66:65: note: Function 'tgl_do_send_location' argument 2 names different: declaration 'id' definition 'peer_id'. telegram-purple/tgl/queries.c:2690:65: note: Function 'tgl_do_send_location' argument 2 names different: declaration 'id' definition 'peer_id'. telegram-purple/tgl/queries.c:2717:70: style:inconclusive: Function 'tgl_do_reply_location' argument 2 names different: declaration 'reply_id' definition '_reply_id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:69:70: note: Function 'tgl_do_reply_location' argument 2 names different: declaration 'reply_id' definition '_reply_id'. telegram-purple/tgl/queries.c:2717:70: note: Function 'tgl_do_reply_location' argument 2 names different: declaration 'reply_id' definition '_reply_id'. telegram-purple/tgl/queries.c:2745:79: style:inconclusive: Function 'tgl_do_rename_chat' argument 3 names different: declaration 'new_title' definition 'name'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:102:79: note: Function 'tgl_do_rename_chat' argument 3 names different: declaration 'new_title' definition 'name'. telegram-purple/tgl/queries.c:2745:79: note: Function 'tgl_do_rename_chat' argument 3 names different: declaration 'new_title' definition 'name'. telegram-purple/tgl/queries.c:2745:89: style:inconclusive: Function 'tgl_do_rename_chat' argument 4 names different: declaration 'new_title_len' definition 'name_len'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:102:94: note: Function 'tgl_do_rename_chat' argument 4 names different: declaration 'new_title_len' definition 'name_len'. telegram-purple/tgl/queries.c:2745:89: note: Function 'tgl_do_rename_chat' argument 4 names different: declaration 'new_title_len' definition 'name_len'. telegram-purple/tgl/queries.c:3403:82: style:inconclusive: Function 'tgl_do_load_file_location' argument 2 names different: declaration 'FL' definition 'P'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:269:82: note: Function 'tgl_do_load_file_location' argument 2 names different: declaration 'FL' definition 'P'. telegram-purple/tgl/queries.c:3403:82: note: Function 'tgl_do_load_file_location' argument 2 names different: declaration 'FL' definition 'P'. telegram-purple/tgl/queries.c:3778:119: style:inconclusive: Function 'tgl_do_msg_search' argument 7 names different: declaration 'query' definition 'pattern'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:279:127: note: Function 'tgl_do_msg_search' argument 7 names different: declaration 'query' definition 'pattern'. telegram-purple/tgl/queries.c:3778:119: note: Function 'tgl_do_msg_search' argument 7 names different: declaration 'query' definition 'pattern'. telegram-purple/tgl/queries.c:3778:132: style:inconclusive: Function 'tgl_do_msg_search' argument 8 names different: declaration 'query_len' definition 'pattern_len'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:279:138: note: Function 'tgl_do_msg_search' argument 8 names different: declaration 'query_len' definition 'pattern_len'. telegram-purple/tgl/queries.c:3778:132: note: Function 'tgl_do_msg_search' argument 8 names different: declaration 'query_len' definition 'pattern_len'. telegram-purple/tgl/queries.c:4263:66: style:inconclusive: Function 'tgl_do_delete_msg' argument 2 names different: declaration 'msg_id' definition '_msg_id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:282:66: note: Function 'tgl_do_delete_msg' argument 2 names different: declaration 'msg_id' definition '_msg_id'. telegram-purple/tgl/queries.c:4263:66: note: Function 'tgl_do_delete_msg' argument 2 names different: declaration 'msg_id' definition '_msg_id'. telegram-purple/tgl/queries.c:4521:67: style:inconclusive: Function 'tgl_do_get_message' argument 2 names different: declaration 'msg_id' definition '_msg_id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:285:67: note: Function 'tgl_do_get_message' argument 2 names different: declaration 'msg_id' definition '_msg_id'. telegram-purple/tgl/queries.c:4521:67: note: Function 'tgl_do_get_message' argument 2 names different: declaration 'msg_id' definition '_msg_id'. telegram-purple/tgl/queries.c:4592:76: style:inconclusive: Function 'tgl_do_import_chat_link' argument 3 names different: declaration 'link_len' definition 'len'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:126:76: note: Function 'tgl_do_import_chat_link' argument 3 names different: declaration 'link_len' definition 'len'. telegram-purple/tgl/queries.c:4592:76: note: Function 'tgl_do_import_chat_link' argument 3 names different: declaration 'link_len' definition 'len'. telegram-purple/tgl/queries.c:4823:155: style:inconclusive: Function 'tgl_do_set_password' argument 5 names different: declaration 'extra' definition 'callback_extra'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:15:155: note: Function 'tgl_do_set_password' argument 5 names different: declaration 'extra' definition 'callback_extra'. telegram-purple/tgl/queries.c:4823:155: note: Function 'tgl_do_set_password' argument 5 names different: declaration 'extra' definition 'callback_extra'. telegram-purple/tgl/queries.c:4951:75: style:inconclusive: Function 'tgl_do_send_broadcast' argument 3 names different: declaration 'id' definition 'peer_id'. [funcArgNamesDifferent] telegram-purple/tgl/tgl-queries.h:73:75: note: Function 'tgl_do_send_broadcast' argument 3 names different: declaration 'id' definition 'peer_id'. telegram-purple/tgl/queries.c:4951:75: note: Function 'tgl_do_send_broadcast' argument 3 names different: declaration 'id' definition 'peer_id'. telegram-purple/tgl/queries.c:5197:117: style:inconclusive: Function 'tgl_do_accept_exchange' argument 4 names different: declaration 'g_a' definition 'ga'. [funcArgNamesDifferent] telegram-purple/tgl/queries.h:75:117: note: Function 'tgl_do_accept_exchange' argument 4 names different: declaration 'g_a' definition 'ga'. telegram-purple/tgl/queries.c:5197:117: note: Function 'tgl_do_accept_exchange' argument 4 names different: declaration 'g_a' definition 'ga'. telegram-purple/tgl/queries.c:5207:94: style:inconclusive: Function 'tgl_do_commit_exchange' argument 3 names different: declaration 'g_a' definition 'gb'. [funcArgNamesDifferent] telegram-purple/tgl/queries.h:76:94: note: Function 'tgl_do_commit_exchange' argument 3 names different: declaration 'g_a' definition 'gb'. telegram-purple/tgl/queries.c:5207:94: note: Function 'tgl_do_commit_exchange' argument 3 names different: declaration 'g_a' definition 'gb'. telegram-purple/tgl/queries.c:1710:9: style: Local variable 'i' shadows outer variable [shadowVariable] telegram-purple/tgl/queries.c:1682:7: note: Shadowed declaration telegram-purple/tgl/queries.c:1710:9: note: Shadow variable telegram-purple/tgl/updates.c:799:1: style:inconclusive: Function 'tree_get_min_user' argument 1 names different: declaration 't' definition 'T'. [funcArgNamesDifferent] telegram-purple/tgl/updates.c:799:1: note: Function 'tree_get_min_user' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/updates.c:799:1: note: Function 'tree_get_min_user' argument 1 names different: declaration 't' definition 'T'. telegram-purple/tgl/updates.c:288:19: style: Variable 'UC' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/updates.c:297:19: style: Variable 'UC' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/updates.c:311:19: style: Variable 'C' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/updates.c:403:19: style: Variable 'C' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/updates.c:415:19: style: Variable 'C' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/updates.c:432:19: style: Variable 'P' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/updates.c:461:19: style: Variable 'U' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/updates.c:470:19: style: Variable 'P' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/updates.c:483:19: style: Variable 'P' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/updates.c:799:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgp-chat.c:29:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGL_PEER_CHANNEL [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:43:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGL_PEER_CHAT [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:67:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGL_PEER_CHAT [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:112:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGLCF_LEFT [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:144:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_CBFLAGS_NONE [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:190:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGL_PEER_CHAT [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:247:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_TYPING [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:271:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tgl_typing_typing [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:299:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable proto_chat_entry [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:355:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGL_PEER_CHAT [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:410:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGL_PEER_CHAT [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:434:55: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_ROOMLIST_FIELD_STRING [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:482:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:521:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable next [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:538:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:567:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable id [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:585:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable server_id [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:613:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGL_PEER_CHANNEL [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:645:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGL_UPDATE_CREATED [valueFlowBailoutIncompleteVar] telegram-purple/tgl/queries.c:119:1: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:400:24: style: Variable 'DC' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries.c:1129:34: style: Variable 'E' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries.c:1163:17: style: Variable 'P' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries.c:1251:69: style: Parameter '_reply_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:1310:66: style: Parameter '_reply_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:1449:15: style: Variable 'P' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries.c:1609:15: style: Variable 'C' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries.c:1740:29: style: Variable 'M' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries.c:1832:44: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:1899:71: style: Parameter 'f' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:1928:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries.c:1972:9: style: Variable 's' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries.c:2216:11: style: Variable 'mime_type' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries.c:2232:70: style: Parameter '_reply_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:2509:94: style: Parameter '_msg_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:2579:69: style: Parameter '_reply_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:2604:92: style: Parameter '_msg_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:2717:70: style: Parameter '_reply_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:3468:11: style: Variable 'r' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries.c:3514:11: style: Variable 'r' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries.c:4153:15: style: Variable 'U' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries.c:4263:66: style: Parameter '_msg_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:4350:64: style: Parameter 'card' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:4521:67: style: Parameter '_msg_id' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:5066:9: style: Variable 'str' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries.c:5159:113: style: Parameter 'data' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:5166:17: style: Variable 'q' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries.c:5192:49: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:5192:78: style: Parameter 'E' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:5197:48: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:5197:77: style: Parameter 'E' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:5197:117: style: Parameter 'ga' can be declared as const array [constParameter] telegram-purple/tgl/queries.c:5202:49: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:5202:78: style: Parameter 'E' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:5207:48: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:5207:77: style: Parameter 'E' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:5207:94: style: Parameter 'gb' can be declared as const array [constParameter] telegram-purple/tgl/queries.c:5212:47: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:5212:76: style: Parameter 'E' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries-encrypted.c:7:65: style: Parameter 'E' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries-encrypted.c:137:15: style: Variable 'P' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries-encrypted.c:284:15: style: Variable 'P' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries-encrypted.c:461:15: style: Variable 'P' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries-encrypted.c:497:15: style: Variable 'P' can be declared as pointer to const [constVariablePointer] telegram-purple/tgl/queries-encrypted.c:561:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] telegram-purple/tgp-ft.c:59:31: error: There is an unknown macro here somewhere. Configuration is required. If G_GINT64_MODIFIER is a macro then please configure it. [unknownMacro] telegram-purple/tgl/queries.c:2229:46: error: Uninitialized variables: x.peer_type, x.access_hash [uninitvar] telegram-purple/tgl/queries.c:2229:46: error: Uninitialized struct member: x.peer_type [uninitStructMember] telegram-purple/tgl/queries.c:2229:46: error: Uninitialized struct member: x.access_hash [uninitStructMember] telegram-purple/tgp-info.c:25:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable G_GINT64_FORMAT [valueFlowBailoutIncompleteVar] telegram-purple/tgp-info.c:45:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGL_PEER_USER [valueFlowBailoutIncompleteVar] telegram-purple/tgp-info.c:158:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGL_PEER_ENCR_CHAT [valueFlowBailoutIncompleteVar] telegram-purple/tgp-chat.c:303:10: style: Local variable 'info' shadows outer function [shadowFunction] telegram-purple/msglog.h:23:6: note: Shadowed declaration telegram-purple/tgp-chat.c:303:10: note: Shadow variable telegram-purple/tgp-chat.c:347:9: style: Variable 'value' can be declared as pointer to const [constVariablePointer] telegram-purple/tgp-info.c:39:3: warning: Return value of function g_file_get_contents() is not used. [ignoredReturnValue] telegram-purple/tgp-info.c:74:53: style: Condition 'parent' is always false [knownConditionTrueFalse] telegram-purple/tgp-info.c:64:24: note: Assignment 'parent=NULL', assigned value is 0 telegram-purple/tgp-info.c:74:53: note: Condition 'parent' is always false telegram-purple/tgp-info.c:186:26: warning: Either the condition 'O' is redundant or there is possible null pointer dereference: O. [nullPointerRedundantCheck] telegram-purple/tgp-info.c:158:7: note: Assuming that condition 'O' is not redundant telegram-purple/tgp-info.c:186:26: note: Null pointer dereference telegram-purple/tgp-info.c:94:25: style: Local variable 'info' shadows outer function [shadowFunction] telegram-purple/msglog.h:23:6: note: Shadowed declaration telegram-purple/tgp-info.c:94:25: note: Shadow variable telegram-purple/tgp-info.c:130:25: style: Local variable 'info' shadows outer function [shadowFunction] telegram-purple/msglog.h:23:6: note: Shadowed declaration telegram-purple/tgp-info.c:130:25: note: Shadow variable telegram-purple/tgp-msg.c:206:0: error: #error "Too outdated glib version!" [preprocessorErrorDirective] telegram-purple/tgp-msg.c:206:4: error: #error "Too outdated glib version!" [preprocessorErrorDirective] telegram-purple/tgp-net.c:281:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_CONNECTION_ERROR_NETWORK_ERROR [valueFlowBailoutIncompleteVar] telegram-purple/tgp-net.c:321:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_CONNECTION_ERROR_NETWORK_ERROR [valueFlowBailoutIncompleteVar] telegram-purple/tgp-net.c:364:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_CONNECTION_ERROR_NETWORK_ERROR [valueFlowBailoutIncompleteVar] telegram-purple/tgp-net.c:386:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] telegram-purple/tgp-net.c:464:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] telegram-purple/tgp-request.c:40:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED [valueFlowBailoutIncompleteVar] telegram-purple/tgp-request.c:60:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_CONNECTED [valueFlowBailoutIncompleteVar] telegram-purple/tgp-request.c:108:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED [valueFlowBailoutIncompleteVar] telegram-purple/tgp-request.c:125:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED [valueFlowBailoutIncompleteVar] telegram-purple/tgp-request.c:322:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGLCF_LEFT [valueFlowBailoutIncompleteVar] telegram-purple/tgp-request.c:368:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGLCF_LEFT [valueFlowBailoutIncompleteVar] telegram-purple/tgp-request.c:422:45: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgp-net.c:264:11: warning: Assert statement calls a function which may have desired side effects: 'tgln_write_out'. [assertWithSideEffect] telegram-purple/tgp-net.c:419:15: warning: Assert statement calls a function which may have desired side effects: 'tgln_read_in'. [assertWithSideEffect] telegram-purple/tgp-net.c:424:15: warning: Assert statement calls a function which may have desired side effects: 'tgln_read_in'. [assertWithSideEffect] telegram-purple/tgp-net.c:94:7: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:313:21: note: Calling function 'start_fail_timer', 1st argument 'c' value is 0 telegram-purple/tgp-net.c:94:7: note: Null pointer dereference telegram-purple/tgp-net.c:95:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:313:21: note: Calling function 'start_fail_timer', 1st argument 'c' value is 0 telegram-purple/tgp-net.c:94:8: note: Assuming condition is false telegram-purple/tgp-net.c:95:3: note: Null pointer dereference telegram-purple/tgp-net.c:96:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:313:21: note: Calling function 'start_fail_timer', 1st argument 'c' value is 0 telegram-purple/tgp-net.c:94:8: note: Assuming condition is false telegram-purple/tgp-net.c:96:3: note: Null pointer dereference telegram-purple/tgp-net.c:101:11: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] telegram-purple/tgp-net.c:100:40: note: Assuming allocation function fails telegram-purple/tgp-net.c:100:40: note: Assignment 'b=malloc(sizeof(*b))', assigned value is 0 telegram-purple/tgp-net.c:101:11: note: Null pointer dereference telegram-purple/tgp-net.c:102:3: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] telegram-purple/tgp-net.c:100:40: note: Assuming allocation function fails telegram-purple/tgp-net.c:100:40: note: Assignment 'b=malloc(sizeof(*b))', assigned value is 0 telegram-purple/tgp-net.c:102:3: note: Null pointer dereference telegram-purple/tgp-net.c:103:3: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] telegram-purple/tgp-net.c:100:40: note: Assuming allocation function fails telegram-purple/tgp-net.c:100:40: note: Assignment 'b=malloc(sizeof(*b))', assigned value is 0 telegram-purple/tgp-net.c:103:3: note: Null pointer dereference telegram-purple/tgp-net.c:103:12: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] telegram-purple/tgp-net.c:100:40: note: Assuming allocation function fails telegram-purple/tgp-net.c:100:40: note: Assignment 'b=malloc(sizeof(*b))', assigned value is 0 telegram-purple/tgp-net.c:103:12: note: Null pointer dereference telegram-purple/tgp-net.c:104:3: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] telegram-purple/tgp-net.c:100:40: note: Assuming allocation function fails telegram-purple/tgp-net.c:100:40: note: Assignment 'b=malloc(sizeof(*b))', assigned value is 0 telegram-purple/tgp-net.c:104:3: note: Null pointer dereference telegram-purple/tgp-net.c:104:13: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] telegram-purple/tgp-net.c:100:40: note: Assuming allocation function fails telegram-purple/tgp-net.c:100:40: note: Assignment 'b=malloc(sizeof(*b))', assigned value is 0 telegram-purple/tgp-net.c:104:13: note: Null pointer dereference telegram-purple/tgp-net.c:104:23: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] telegram-purple/tgp-net.c:100:40: note: Assuming allocation function fails telegram-purple/tgp-net.c:100:40: note: Assignment 'b=malloc(sizeof(*b))', assigned value is 0 telegram-purple/tgp-net.c:104:23: note: Null pointer dereference telegram-purple/tgp-net.c:289:11: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:289:11: note: Null pointer dereference telegram-purple/tgp-net.c:290:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:290:3: note: Null pointer dereference telegram-purple/tgp-net.c:293:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:293:3: note: Null pointer dereference telegram-purple/tgp-net.c:294:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:294:3: note: Null pointer dereference telegram-purple/tgp-net.c:296:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:296:3: note: Null pointer dereference telegram-purple/tgp-net.c:297:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:297:3: note: Null pointer dereference telegram-purple/tgp-net.c:298:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:298:3: note: Null pointer dereference telegram-purple/tgp-net.c:299:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:299:3: note: Null pointer dereference telegram-purple/tgp-net.c:301:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:301:3: note: Null pointer dereference telegram-purple/tgp-net.c:302:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:302:3: note: Null pointer dereference telegram-purple/tgp-net.c:303:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:303:3: note: Null pointer dereference telegram-purple/tgp-net.c:304:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:304:3: note: Null pointer dereference telegram-purple/tgp-net.c:306:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:306:3: note: Null pointer dereference telegram-purple/tgp-net.c:307:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:307:3: note: Null pointer dereference telegram-purple/tgp-net.c:308:3: warning: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:308:3: note: Null pointer dereference telegram-purple/tgp-net.c:310:3: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: c [nullPointerOutOfMemory] telegram-purple/tgp-net.c:288:33: note: Assuming allocation function fails telegram-purple/tgp-net.c:288:33: note: Assignment 'c=malloc(sizeof(*c))', assigned value is 0 telegram-purple/tgp-net.c:310:3: note: Null pointer dereference telegram-purple/tgp-net.c:103:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] telegram-purple/tgp-net.c:102:21: note: Assuming allocation function fails telegram-purple/tgp-net.c:102:21: note: Assignment 'b->start=malloc(size)', assigned value is 0 telegram-purple/tgp-net.c:103:21: note: Null pointer addition telegram-purple/tgp-net.c:113:55: style:inconclusive: Function 'tgln_write_out' argument 2 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] telegram-purple/tgp-net.h:70:55: note: Function 'tgln_write_out' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgp-net.c:113:55: note: Function 'tgln_write_out' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgp-net.c:150:47: style:inconclusive: Function 'tgln_read_in' argument 2 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] telegram-purple/tgp-net.h:72:47: note: Function 'tgln_read_in' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgp-net.c:150:47: note: Function 'tgln_read_in' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgp-net.c:182:54: style:inconclusive: Function 'tgln_read_in_lookup' argument 2 names different: declaration 'data' definition '_data'. [funcArgNamesDifferent] telegram-purple/tgp-net.h:73:54: note: Function 'tgln_read_in_lookup' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgp-net.c:182:54: note: Function 'tgln_read_in_lookup' argument 2 names different: declaration 'data' definition '_data'. telegram-purple/tgp-net.c:207:41: style: Parameter 'c' can be declared as pointer to const. However it seems that 'tgln_flush_out' is a callback function, if 'c' is declared with const you might also need to cast function pointer(s). [constParameterCallback] telegram-purple/tgp-net.c:531:16: note: You might need to cast the function pointer here telegram-purple/tgp-net.c:207:41: note: Parameter 'c' can be declared as pointer to const telegram-purple/tgp-net.c:484:50: style: Parameter 'c' can be declared as pointer to const. However it seems that 'get_dc' is a callback function, if 'c' is declared with const you might also need to cast function pointer(s). [constParameterCallback] telegram-purple/tgp-net.c:533:13: note: You might need to cast the function pointer here telegram-purple/tgp-net.c:484:50: note: Parameter 'c' can be declared as pointer to const telegram-purple/tgp-net.c:488:60: style: Parameter 'c' can be declared as pointer to const. However it seems that 'get_session' is a callback function, if 'c' is declared with const you might also need to cast function pointer(s). [constParameterCallback] telegram-purple/tgp-net.c:534:18: note: You might need to cast the function pointer here telegram-purple/tgp-net.c:488:60: note: Parameter 'c' can be declared as pointer to const telegram-purple/tgp-timers.c:41:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] telegram-purple/tgp-timers.c:40:32: note: Assuming allocation function fails telegram-purple/tgp-timers.c:40:32: note: Assignment 't=malloc(sizeof(*t))', assigned value is 0 telegram-purple/tgp-timers.c:41:3: note: Null pointer dereference telegram-purple/tgp-structs.c:52:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable tgl_peer_id_t [valueFlowBailoutIncompleteVar] telegram-purple/tgp-timers.c:42:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] telegram-purple/tgp-timers.c:40:32: note: Assuming allocation function fails telegram-purple/tgp-timers.c:40:32: note: Assignment 't=malloc(sizeof(*t))', assigned value is 0 telegram-purple/tgp-timers.c:42:3: note: Null pointer dereference telegram-purple/tgp-timers.c:43:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] telegram-purple/tgp-timers.c:40:32: note: Assuming allocation function fails telegram-purple/tgp-timers.c:40:32: note: Assignment 't=malloc(sizeof(*t))', assigned value is 0 telegram-purple/tgp-timers.c:43:3: note: Null pointer dereference telegram-purple/tgp-timers.c:44:3: warning: If memory allocation fails, then there is a possible null pointer dereference: t [nullPointerOutOfMemory] telegram-purple/tgp-timers.c:40:32: note: Assuming allocation function fails telegram-purple/tgp-timers.c:40:32: note: Assignment 't=malloc(sizeof(*t))', assigned value is 0 telegram-purple/tgp-timers.c:44:3: note: Null pointer dereference telegram-purple/tgp-structs.c:84:3: warning: If memory allocation fails, then there is a possible null pointer dereference: C [nullPointerOutOfMemory] telegram-purple/tgp-structs.c:83:38: note: Assuming allocation function fails telegram-purple/tgp-structs.c:83:38: note: Assignment 'C=malloc(sizeof(struct tgp_msg_sending))', assigned value is 0 telegram-purple/tgp-structs.c:84:3: note: Null pointer dereference telegram-purple/tgp-structs.c:85:3: warning: If memory allocation fails, then there is a possible null pointer dereference: C [nullPointerOutOfMemory] telegram-purple/tgp-structs.c:83:38: note: Assuming allocation function fails telegram-purple/tgp-structs.c:83:38: note: Assignment 'C=malloc(sizeof(struct tgp_msg_sending))', assigned value is 0 telegram-purple/tgp-structs.c:85:3: note: Null pointer dereference telegram-purple/tgp-structs.c:86:3: warning: If memory allocation fails, then there is a possible null pointer dereference: C [nullPointerOutOfMemory] telegram-purple/tgp-structs.c:83:38: note: Assuming allocation function fails telegram-purple/tgp-structs.c:83:38: note: Assignment 'C=malloc(sizeof(struct tgp_msg_sending))', assigned value is 0 telegram-purple/tgp-structs.c:86:3: note: Null pointer dereference telegram-purple/tgl/queries.c:1667:7: style: struct member 'get_dialogs_extra::max_id' is never used. [unusedStructMember] telegram-purple/tgp-utils.c:71:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TGLMF_SESSION_OUTBOUND [valueFlowBailoutIncompleteVar] telegram-purple/tgp-utils.c:25:25: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] telegram-purple/tgp-utils.c:37:10: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] telegram-purple/tgp-utils.c:40:55: style: Parameter 'status' can be declared as pointer to const [constParameterPointer] telegram-purple/tgp-utils.c:70:41: style: Parameter 'TLS' can be declared as pointer to const [constParameterPointer] telegram-purple/tgp-utils.c:70:66: style: Parameter 'M' can be declared as pointer to const [constParameterPointer] telegram-purple/tgl/queries.c:3125:7: style: struct member 'download::next' is never used. [unusedStructMember] telegram-purple/tgl/queries.c:5500:9: style: struct member 'change_phone_extra::first_name' is never used. [unusedStructMember] telegram-purple/tgl/queries.c:5501:9: style: struct member 'change_phone_extra::last_name' is never used. [unusedStructMember] telegram-purple/tgl/queries.c:5504:7: style: struct member 'change_phone_extra::first_name_len' is never used. [unusedStructMember] telegram-purple/tgl/queries.c:5505:7: style: struct member 'change_phone_extra::last_name_len' is never used. [unusedStructMember] diff: 2.17.0 telegram-purple/msglog.c:127:23: warning: If memory allocation fails, then there is a possible null pointer dereference: text [nullPointerOutOfMemory] telegram-purple/msglog.c:125:19: note: Assuming allocation function fails telegram-purple/msglog.c:125:19: note: Assignment 'text=g_strdup(print_flags_peer(flags))', assigned value is 0 telegram-purple/msglog.c:127:23: note: Null pointer dereference 2.17.0 telegram-purple/msglog.c:147:23: warning: If memory allocation fails, then there is a possible null pointer dereference: text [nullPointerOutOfMemory] telegram-purple/msglog.c:145:19: note: Assuming allocation function fails telegram-purple/msglog.c:145:19: note: Assignment 'text=g_strdup(print_flags_peer(flags))', assigned value is 0 telegram-purple/msglog.c:147:23: note: Null pointer dereference 2.17.0 telegram-purple/telegram-base.c:146:28: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] telegram-purple/telegram-base.c:145:25: note: Assuming allocation function fails telegram-purple/telegram-base.c:145:25: note: Assignment 'name=g_strdup_printf("%s/%s",TLS->base_path,"auth")', assigned value is 0 telegram-purple/telegram-base.c:146:28: note: Null pointer dereference 2.17.0 telegram-purple/telegram-base.c:223:28: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] telegram-purple/telegram-base.c:222:25: note: Assuming allocation function fails telegram-purple/telegram-base.c:222:25: note: Assignment 'name=g_strdup_printf("%s/%s",TLS->base_path,"auth")', assigned value is 0 telegram-purple/telegram-base.c:223:28: note: Null pointer dereference 2.17.0 telegram-purple/telegram-base.c:295:30: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] telegram-purple/telegram-base.c:294:25: note: Assuming allocation function fails telegram-purple/telegram-base.c:294:25: note: Assignment 'name=g_strdup_printf("%s/%s",TLS->base_path,"secret")', assigned value is 0 telegram-purple/telegram-base.c:295:30: note: Null pointer dereference 2.17.0 telegram-purple/telegram-base.c:363:30: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] telegram-purple/telegram-base.c:361:25: note: Assuming allocation function fails telegram-purple/telegram-base.c:361:25: note: Assignment 'name=g_strdup_printf("%s/%s",TLS->base_path,"secret")', assigned value is 0 telegram-purple/telegram-base.c:363:30: note: Null pointer dereference 2.17.0 telegram-purple/telegram-base.c:42:29: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] telegram-purple/telegram-base.c:40:25: note: Assuming allocation function fails telegram-purple/telegram-base.c:40:25: note: Assignment 'name=g_strdup_printf("%s/%s",TLS->base_path,"state")', assigned value is 0 telegram-purple/telegram-base.c:42:29: note: Null pointer dereference 2.17.0 telegram-purple/telegram-base.c:79:29: warning: If memory allocation fails, then there is a possible null pointer dereference: name [nullPointerOutOfMemory] telegram-purple/telegram-base.c:77:25: note: Assuming allocation function fails telegram-purple/telegram-base.c:77:25: note: Assignment 'name=g_strdup_printf("%s/%s",TLS->base_path,"state")', assigned value is 0 telegram-purple/telegram-base.c:79:29: note: Null pointer dereference head telegram-purple/tgl/tl-parser/portable_endian.h:136:3: error: #error platform not supported [preprocessorErrorDirective] 2.17.0 telegram-purple/tgl/tools.c:190:14: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] telegram-purple/tgl/tools.c:187:20: note: Assuming allocation function fails telegram-purple/tgl/tools.c:187:20: note: Assignment 'p=malloc(size+8+8)', assigned value is 0 telegram-purple/tgl/tools.c:190:14: note: Null pointer addition head telegram-purple/tgl/tools.c:190:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] telegram-purple/tgl/tools.c:187:20: note: Assuming allocation function fails telegram-purple/tgl/tools.c:187:20: note: Assignment 'p=malloc(size+8+8)', assigned value is 0 telegram-purple/tgl/tools.c:190:14: note: Null pointer addition 2.17.0 telegram-purple/tgl/tools.c:191:14: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] telegram-purple/tgl/tools.c:187:20: note: Assuming allocation function fails telegram-purple/tgl/tools.c:187:20: note: Assignment 'p=malloc(size+8+8)', assigned value is 0 telegram-purple/tgl/tools.c:191:14: note: Null pointer addition head telegram-purple/tgl/tools.c:191:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] telegram-purple/tgl/tools.c:187:20: note: Assuming allocation function fails telegram-purple/tgl/tools.c:187:20: note: Assignment 'p=malloc(size+8+8)', assigned value is 0 telegram-purple/tgl/tools.c:191:14: note: Null pointer addition 2.17.0 telegram-purple/tgl/tools.c:192:14: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] telegram-purple/tgl/tools.c:187:20: note: Assuming allocation function fails telegram-purple/tgl/tools.c:187:20: note: Assignment 'p=malloc(size+8+8)', assigned value is 0 telegram-purple/tgl/tools.c:192:14: note: Null pointer addition head telegram-purple/tgl/tools.c:192:14: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] telegram-purple/tgl/tools.c:187:20: note: Assuming allocation function fails telegram-purple/tgl/tools.c:187:20: note: Assignment 'p=malloc(size+8+8)', assigned value is 0 telegram-purple/tgl/tools.c:192:14: note: Null pointer addition 2.17.0 telegram-purple/tgl/tools.c:196:12: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] telegram-purple/tgl/tools.c:187:20: note: Assuming allocation function fails telegram-purple/tgl/tools.c:187:20: note: Assignment 'p=malloc(size+8+8)', assigned value is 0 telegram-purple/tgl/tools.c:196:12: note: Null pointer addition head telegram-purple/tgl/tools.c:196:12: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] telegram-purple/tgl/tools.c:187:20: note: Assuming allocation function fails telegram-purple/tgl/tools.c:187:20: note: Assignment 'p=malloc(size+8+8)', assigned value is 0 telegram-purple/tgl/tools.c:196:12: note: Null pointer addition head telegram-purple/tgl/tools.c:273:31: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] head telegram-purple/tgp-2prpl.c:170:3: warning: Return value of function g_file_get_contents() is not used. [ignoredReturnValue] head telegram-purple/tgp-info.c:39:3: warning: Return value of function g_file_get_contents() is not used. [ignoredReturnValue] head telegram-purple/tgp-msg.c:206:4: error: #error "Too outdated glib version!" [preprocessorErrorDirective] head telegram-purple/tgp-net.c:103:12: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] telegram-purple/tgp-net.c:100:40: note: Assuming allocation function fails telegram-purple/tgp-net.c:100:40: note: Assignment 'b=malloc(sizeof(*b))', assigned value is 0 telegram-purple/tgp-net.c:103:12: note: Null pointer dereference 2.17.0 telegram-purple/tgp-net.c:103:21: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] telegram-purple/tgp-net.c:102:21: note: Assuming allocation function fails telegram-purple/tgp-net.c:102:21: note: Assignment 'b->start=malloc(size)', assigned value is 0 telegram-purple/tgp-net.c:103:21: note: Null pointer addition head telegram-purple/tgp-net.c:103:21: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] telegram-purple/tgp-net.c:102:21: note: Assuming allocation function fails telegram-purple/tgp-net.c:102:21: note: Assignment 'b->start=malloc(size)', assigned value is 0 telegram-purple/tgp-net.c:103:21: note: Null pointer addition head telegram-purple/tgp-net.c:104:13: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] telegram-purple/tgp-net.c:100:40: note: Assuming allocation function fails telegram-purple/tgp-net.c:100:40: note: Assignment 'b=malloc(sizeof(*b))', assigned value is 0 telegram-purple/tgp-net.c:104:13: note: Null pointer dereference head telegram-purple/tgp-net.c:104:23: warning: If memory allocation fails, then there is a possible null pointer dereference: b [nullPointerOutOfMemory] telegram-purple/tgp-net.c:100:40: note: Assuming allocation function fails telegram-purple/tgp-net.c:100:40: note: Assignment 'b=malloc(sizeof(*b))', assigned value is 0 telegram-purple/tgp-net.c:104:23: note: Null pointer dereference DONE