2025-05-06 06:18 ftp://ftp.de.debian.org/debian/pool/main/m/mgetty/mgetty_1.2.1.orig.tar.gz cppcheck-options: --library=posix --library=gnu --library=bsd --library=motif --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: 581f101 (2025-05-05 21:13:30 +0200) count: 864 862 elapsed-time: 3.9 4.0 head-timing-info: old-timing-info: head results: mgetty-1.2.1/callback/ct.c:5:15: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] mgetty-1.2.1/callback/ct.c:7:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/callback/conf_cb.c:61:31: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] mgetty-1.2.1/callback/conf_cb.c:57:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/callback/conf_cb.c:73:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/callback/conf_cb.c:160:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_NOISE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/callback/callback.c:263:32: debug: Function::addArguments found argument 'ttys' with varid 0. [varid0] mgetty-1.2.1/callback/callback.c:341:17: debug: Function::addArguments found argument 'fd' with varid 0. [varid0] mgetty-1.2.1/callback/callback.c:401:15: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] mgetty-1.2.1/callback/conf_cb.c:118:32: portability: Non reentrant function 'ttyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ttyname_r'. [prohibitedttynameCalled] mgetty-1.2.1/callback/callback.c:89:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_NOISE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/callback/callback.c:96:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_NOISE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/callback/callback.c:101:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_AUDIT [valueFlowBailoutIncompleteVar] mgetty-1.2.1/callback/callback.c:114:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATH [valueFlowBailoutIncompleteVar] mgetty-1.2.1/callback/callback.c:151:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_MESG [valueFlowBailoutIncompleteVar] mgetty-1.2.1/callback/callback.c:197:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_ERROR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/callback/callback.c:225:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/callback/callback.c:269:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXLINE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/callback/callback.c:345:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXLINE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/callback/callback.c:403:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXLINE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/clean_line.c:56:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ICANON [valueFlowBailoutIncompleteVar] mgetty-1.2.1/compat/mg.echo.c:73:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/compat/mg.echo.c:230:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mgetty-1.2.1/cnd.c:211:5: warning: %x in format string (no. 1) requires 'unsigned int *' but the argument type is 'signed int *'. [invalidScanfArgType_int] mgetty-1.2.1/cnd.c:275:14: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/cnd.c:308:18: style: Parameter 'var' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/compat/mg.echo.c:188:23: style: Variable 's' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/compat/newslock.c:19:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/compat/newslock.c:16:7: style: Parameter 'argv' can be declared as const array [constParameter] mgetty-1.2.1/callback/callback.c:487:74: warning: The address of variable 't_help' might be accessed at non-zero index. [objectIndex] mgetty-1.2.1/callback/callback.c:473:14: note: Address of variable taken here. mgetty-1.2.1/callback/callback.c:487:74: note: The address of variable 't_help' might be accessed at non-zero index. mgetty-1.2.1/callback/callback.c:116:11: style: Local variable 'DevID' shadows outer variable [shadowVariable] mgetty-1.2.1/callback/callback.c:80:8: note: Shadowed declaration mgetty-1.2.1/callback/callback.c:116:11: note: Shadow variable mgetty-1.2.1/callback/callback.c:116:11: style: Variable 'DevID' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/callback/callback.c:399:31: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/callback/callback.c:408:12: style: Variable 't_help' is not assigned a value. [unassignedVariable] mgetty-1.2.1/conf_sf.c:83:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/conf_sf.c:188:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFDIR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/conf_mg.c:196:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/conf_mg.c:311:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFDIR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/config.c:260:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable C_EMPTY [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/faxin.c:26:16: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] mgetty-1.2.1/config.c:346:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/faxin.c:16:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/faxin.c:28:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FAX_SPOOL_IN [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/faxin.c:47:14: portability: Non reentrant function 'ttyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ttyname_r'. [prohibitedttynameCalled] mgetty-1.2.1/contrib/g3hack.c:114:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3hack.c:179:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3tolj.c:430:1: portability: Omitted return type of function 'addtohash' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/g3tolj.c:466:1: portability: Omitted return type of function 'getfaxrow' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/g3tolj.c:678:1: portability: Omitted return type of function 'newpage' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/config.c:93:13: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/config.c:113:8: style: Variable 'r' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/config.c:303:21: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/contrib/g3tolj.c:324:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3tolj.c:410:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3tolj.c:440:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3tolj.c:459:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3tolj.c:512:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3tolj.c:755:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3tops.c:2:20: error: syntax error [syntaxError] mgetty-1.2.1/contrib/g3toxwd.c:483:1: portability: Omitted return type of function 'addtohash' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/g3toxwd.c:519:1: portability: Omitted return type of function 'getfaxrow' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/logparse.c:27:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3toxwd.c:353:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3toxwd.c:395:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3toxwd.c:406:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3toxwd.c:463:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3toxwd.c:493:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3toxwd.c:512:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3toxwd.c:565:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3toxwd.c:667:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3toxwd.c:778:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/logparse.c:14:26: style: Parameter 'argv' can be declared as const array [constParameter] mgetty-1.2.1/contrib/logparse.c:17:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/contrib/g3toxwd.c:465:6: warning: fprintf format string requires 1 parameter but 5 are given. [wrongPrintfScanfArgNum] mgetty-1.2.1/contrib/g3toxwd.c:493:6: warning: fprintf format string requires 0 parameters but 5 are given. [wrongPrintfScanfArgNum] mgetty-1.2.1/contrib/g3toxwd.c:512:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mgetty-1.2.1/contrib/g3toxwd.c:512:2: warning: fprintf format string requires 3 parameters but 5 are given. [wrongPrintfScanfArgNum] mgetty-1.2.1/contrib/g3toxwd.c:565:6: warning: fprintf format string requires 4 parameters but 5 are given. [wrongPrintfScanfArgNum] mgetty-1.2.1/contrib/g3toxwd.c:613:6: warning: fprintf format string requires 0 parameters but 5 are given. [wrongPrintfScanfArgNum] mgetty-1.2.1/contrib/g3toxwd.c:891:22: style: Variable 'bP' is reassigned a value before the old one has been used. [redundantAssignment] mgetty-1.2.1/contrib/g3toxwd.c:839:5: note: bP is assigned mgetty-1.2.1/contrib/g3toxwd.c:891:22: note: bP is overwritten mgetty-1.2.1/contrib/g3toxwd.c:891:14: style: Variable 'col' is reassigned a value before the old one has been used. [redundantAssignment] mgetty-1.2.1/contrib/g3toxwd.c:841:6: note: col is assigned mgetty-1.2.1/contrib/g3toxwd.c:891:14: note: col is overwritten mgetty-1.2.1/contrib/g3toxwd.c:511:13: style: Checking if unsigned expression 'pos' is less than zero. [unsignedLessThanZero] mgetty-1.2.1/contrib/g3toxwd.c:348:12: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/contrib/g3toxwd.c:365:12: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/contrib/g3toxwd.c:366:12: style: Parameter 'keyword' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/contrib/g3toxwd.c:527:17: style: Variable 'te' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/contrib/g3toxwd.c:724:34: style: Parameter 'fd' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/contrib/g3toxwd.c:724:44: style: Parameter 'writerow' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/contrib/g3toxwd.c:758:11: style: Variable 'usage' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/contrib/next-login/login.c:99:1: portability: Omitted return type of function 'main' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/next-login/login.c:502:1: portability: Omitted return type of function 'getloginname' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/next-login/login.c:530:1: portability: Omitted return type of function 'timedout' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/next-login/login.c:536:1: portability: Omitted return type of function 'rootterm' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/next-login/login.c:546:1: portability: Omitted return type of function 'motd' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/next-login/login.c:562:1: portability: Omitted return type of function 'sigint' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/next-login/login.c:567:1: portability: Omitted return type of function 'checknologin' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/next-login/login.c:579:1: portability: Omitted return type of function 'dolastlog' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/next-login/login.c:612:1: portability: Omitted return type of function 'badlogin' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/next-login/login.c:639:1: portability: Omitted return type of function 'getstr' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/next-login/login.c:656:1: portability: Omitted return type of function 'sleepexit' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/g3toxwd.c:838:7: style: Variable 'hval' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/contrib/g3toxwd.c:838:14: style: Variable 'wcol' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/contrib/g3toxwd.c:840:6: style: Variable 'wbP' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/contrib/g3toxwd.c:751:15: style: Unused variable: rows [unusedVariable] mgetty-1.2.1/contrib/g3toxwd.c:751:21: style: Unused variable: wrows [unusedVariable] mgetty-1.2.1/contrib/g3toxwd.c:755:9: style: Unused variable: format [unusedVariable] mgetty-1.2.1/contrib/g3toxwd.c:756:18: style: Unused variable: nzcol [unusedVariable] mgetty-1.2.1/contrib/next-login/login.c:113:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATHLEN [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/next-login/login.c:506:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable UT_NAMESIZE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/next-login/login.c:532:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/next-login/login.c:541:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TTY_SECURE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/next-login/login.c:552:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/next-login/login.c:572:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/next-login/login.c:618:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_NOTICE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/next-login/login.c:649:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/next-login/setenv.c:30:1: portability: Omitted return type of function 'setenv' defaults to int, this is not supported by ISO C99 and later standards. [returnImplicitInt] mgetty-1.2.1/contrib/next-login/setenv.c:68:4: style: Obsolescent function 'bcopy' called. It is recommended to use 'memcpy' or 'memmove' instead. [prohibitedbcopyCalled] mgetty-1.2.1/contrib/next-login/setenv.c:57:4: error: Common realloc mistake: 'environ' nulled but not freed upon failure [memleakOnRealloc] mgetty-1.2.1/contrib/next-login/setenv.c:31:24: style: Parameter 'value' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/contrib/pbmscale.c:119:1: error: syntax error: == == [syntaxError] mgetty-1.2.1/contrib/pbmsplit.c:22:17: error: No pair for character ('). Can't process file. File is either invalid or unicode, which is currently not supported. [syntaxError] mgetty-1.2.1/contrib/g3tolj.c:412:6: warning: fprintf format string requires 1 parameter but 5 are given. [wrongPrintfScanfArgNum] mgetty-1.2.1/contrib/g3tolj.c:440:6: warning: fprintf format string requires 0 parameters but 5 are given. [wrongPrintfScanfArgNum] mgetty-1.2.1/contrib/g3tolj.c:459:2: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] mgetty-1.2.1/contrib/g3tolj.c:459:2: warning: fprintf format string requires 3 parameters but 5 are given. [wrongPrintfScanfArgNum] mgetty-1.2.1/contrib/g3tolj.c:512:6: warning: fprintf format string requires 4 parameters but 5 are given. [wrongPrintfScanfArgNum] mgetty-1.2.1/contrib/g3tolj.c:560:6: warning: fprintf format string requires 0 parameters but 5 are given. [wrongPrintfScanfArgNum] mgetty-1.2.1/contrib/g3tolj.c:842:24: warning: If memory allocation fails, then there is a possible null pointer dereference: readrow [nullPointerOutOfMemory] mgetty-1.2.1/contrib/g3tolj.c:828:15: note: Assuming allocation function fails mgetty-1.2.1/contrib/g3tolj.c:828:15: note: Assignment 'readrow=(unsigned char*)malloc(1728)', assigned value is 0 mgetty-1.2.1/contrib/g3tolj.c:838:8: note: Assignment 'bP=readrow', assigned value is 0 mgetty-1.2.1/contrib/g3tolj.c:838:6: note: bP is assigned 'readrow' here. mgetty-1.2.1/contrib/g3tolj.c:842:24: note: Null pointer dereference mgetty-1.2.1/contrib/g3tolj.c:458:13: style: Checking if unsigned expression 'pos' is less than zero. [unsignedLessThanZero] mgetty-1.2.1/contrib/g3tolj.c:319:12: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/contrib/g3tolj.c:336:12: style: Parameter 'str' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/contrib/g3tolj.c:337:12: style: Parameter 'keyword' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/contrib/g3tolj.c:474:17: style: Variable 'te' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/contrib/g3tolj.c:695:43: style: Parameter 'writerow' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/contrib/g3tolj.c:732:11: style: Variable 'usage' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/contrib/pgx.c:51:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/g3tolj.c:725:15: style: Unused variable: rows [unusedVariable] mgetty-1.2.1/contrib/g3tolj.c:729:9: style: Unused variable: format [unusedVariable] mgetty-1.2.1/contrib/g3tolj.c:730:18: style: Unused variable: nzcol [unusedVariable] mgetty-1.2.1/contrib/ptylogin/ptylogin.c:159:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/ptylogin/ptylogin.c:223:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/ptylogin/ptylogin.c:336:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCSETAW [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/next-login/login.c:450:3: warning:inconclusive: The buffer 'term' may not be null-terminated after the call to strncpy(). [terminateStrncpy] mgetty-1.2.1/contrib/next-login/login.c:134:11: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mgetty-1.2.1/contrib/next-login/login.c:150:23: style: Obsolescent function 'index' called. It is recommended to use 'strchr' instead. [prohibitedindexCalled] mgetty-1.2.1/contrib/next-login/login.c:190:9: portability: Non reentrant function 'ttyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ttyname_r'. [prohibitedttynameCalled] mgetty-1.2.1/contrib/next-login/login.c:195:12: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] mgetty-1.2.1/contrib/next-login/login.c:224:13: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] mgetty-1.2.1/contrib/next-login/login.c:269:7: portability: Non reentrant function 'crypt' called. For threadsafe applications it is recommended to use the reentrant replacement function 'crypt_r'. [prohibitedcryptCalled] mgetty-1.2.1/contrib/next-login/login.c:297:10: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] mgetty-1.2.1/contrib/next-login/login.c:377:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] mgetty-1.2.1/contrib/next-login/login.c:387:10: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] mgetty-1.2.1/contrib/next-login/login.c:400:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] mgetty-1.2.1/contrib/next-login/login.c:418:12: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] mgetty-1.2.1/contrib/next-login/login.c:481:24: style: Obsolescent function 'rindex' called. It is recommended to use 'strrchr' instead. [prohibitedrindexCalled] mgetty-1.2.1/contrib/next-login/login.c:602:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] mgetty-1.2.1/do_chat.c:144:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/contrib/next-login/login.c:106:13: style: Variable 'ttp' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/contrib/next-login/login.c:107:16: style: Variable 'gr' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/contrib/next-login/login.c:112:8: style: Variable 'domain' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/contrib/next-login/login.c:112:17: style: Variable 'salt' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/contrib/next-login/login.c:539:17: style: Variable 't' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/contrib/next-login/login.c:640:14: style: Parameter 'err' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/do_stat.c:51:12: style: Variable 'snow' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/contrib/ptylogin/ptylogin.c:182:36: style: Parameter 'login_name' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/elsa/faxfile.c:45:31: debug: Function::addArguments found argument 'direct' with varid 0. [varid0] mgetty-1.2.1/elsa/faxfile.c:60:27: debug: Function::addArguments found argument 'name' with varid 0. [varid0] mgetty-1.2.1/elsa/faxfile.c:63:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] mgetty-1.2.1/elsa/faxfile.c:102:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_NOISE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/elsa/mlo.c:40:23: debug: Function::addArguments found argument 'tty' with varid 0. [varid0] mgetty-1.2.1/elsa/mlo.c:191:28: debug: Function::addArguments found argument 'fd' with varid 0. [varid0] mgetty-1.2.1/elsa/mlo.c:277:30: debug: Function::addArguments found argument 'fd' with varid 0. [varid0] mgetty-1.2.1/elsa/mlo.c:292:28: debug: Function::addArguments found argument 'fd' with varid 0. [varid0] mgetty-1.2.1/elsa/mlo.c:404:16: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] mgetty-1.2.1/elsa/mlo.c:42:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATH [valueFlowBailoutIncompleteVar] mgetty-1.2.1/elsa/mlo.c:126:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TIO_Q_BOTH [valueFlowBailoutIncompleteVar] mgetty-1.2.1/elsa/mlo.c:145:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_NOISE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/elsa/mlo.c:178:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/elsa/mlo.c:201:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] mgetty-1.2.1/elsa/mlo.c:303:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/elsa/mlo.c:399:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/elsa/mlo.c:409:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/elsa/xmodem.c:71:26: debug: Function::addArguments found argument 'fd' with varid 0. [varid0] mgetty-1.2.1/elsa/xmodem.c:197:27: debug: Function::addArguments found argument 'modem_fd' with varid 0. [varid0] mgetty-1.2.1/elsa/xmodem.c:97:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_NOISE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/elsa/xmodem.c:180:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_JUNK [valueFlowBailoutIncompleteVar] mgetty-1.2.1/elsa/xmodem.c:207:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_ERROR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/elsa/xmodem.c:92:13: style: Variable 'ok_seq' can be declared as const array [constVariable] mgetty-1.2.1/elsa/mlo.c:176:8: style: Variable 'l' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/elsa/mlo.c:397:33: style: Parameter 's' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/elsa/mlo.c:162:16: warning: The expression 'strcmp(l,"+GMM: \"MicroLink Office\"") != 0' is suspicious. It overlaps 'strcmp(l,"") == 0'. [overlappingStrcmp] mgetty-1.2.1/elsa/mlo.c:307:8: error: Uninitialized variable: outfd [uninitvar] mgetty-1.2.1/elsa/mlo.c:296:5: style: Variable 'outfd' is not assigned a value. [unassignedVariable] mgetty-1.2.1/fax/faxq-helper.c:98:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/fax/faxq-helper.c:108:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/fax/faxq-helper.c:141:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/fax/faxq-helper.c:178:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/fax/faxq-helper.c:209:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FAX_ALLOW [valueFlowBailoutIncompleteVar] mgetty-1.2.1/fax/faxq-helper.c:249:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/fax/faxq-helper.c:345:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/fax/faxq-helper.c:366:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/fax/faxq-helper.c:448:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/fax/faxq-helper.c:539:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/fax/faxq-helper.c:565:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/fax/faxq-helper.c:686:7: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/fax/faxq-helper.c:785:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] mgetty-1.2.1/fax/faxq-helper.c:854:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FAX_OUT_USER [valueFlowBailoutIncompleteVar] mgetty-1.2.1/faxrec.c:112:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USER_PROCESS [valueFlowBailoutIncompleteVar] mgetty-1.2.1/faxlib.c:136:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] mgetty-1.2.1/faxrec.c:274:19: warning: Either the condition 'p!=NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] mgetty-1.2.1/faxrec.c:268:12: note: Assuming that condition 'p!=NULL' is not redundant mgetty-1.2.1/faxrec.c:274:19: note: Null pointer addition mgetty-1.2.1/faxrec.c:350:12: style: Variable 'file' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/fax/faxq-helper.c:452:19: portability: Non reentrant function 'readdir' called. For threadsafe applications it is recommended to use the reentrant replacement function 'readdir_r'. [prohibitedreaddirCalled] mgetty-1.2.1/fax/faxq-helper.c:522:9: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mgetty-1.2.1/fax/faxq-helper.c:549:6: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mgetty-1.2.1/fax/faxq-helper.c:854:10: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] mgetty-1.2.1/fax/faxq-helper.c:870:10: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] mgetty-1.2.1/fax/faxq-helper.c:96:29: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/fax/faxq-helper.c:118:12: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/fax/faxq-helper.c:170:44: style: Parameter 'u' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/fax/faxq-helper.c:359:22: style: Parameter 'JID' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/fax/faxq-helper.c:505:36: style: Parameter 'dir' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/fax/faxq-helper.c:505:48: style: Parameter 'filelist' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/fax/faxq-helper.c:561:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/fax/faxq-helper.c:666:42: style: Parameter 'jobfile' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/fax/faxq-helper.c:669:18: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/fax/faxq-helper.c:835:21: style: Variable 'pw' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/faxrecp.c:127:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] mgetty-1.2.1/faxsend.c:165:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/faxsend.c:396:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] mgetty-1.2.1/faxrecp.c:165:6: error: Common realloc mistake: 'fax_file_names' nulled but not freed upon failure [memleakOnRealloc] mgetty-1.2.1/faxrecp.c:111:7: style: Local variable 'c' shadows outer variable [shadowVariable] mgetty-1.2.1/faxrecp.c:62:6: note: Shadowed declaration mgetty-1.2.1/faxrecp.c:111:7: note: Shadow variable mgetty-1.2.1/faxsend.c:204:6: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:329:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:371:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:439:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:528:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:630:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/faxinit.c:297:53: style: Parameter 'P' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:44:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:100:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:178:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:486:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:539:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:558:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:333:7: portability: %ld in format string (no. 2) requires 'long' but the argument type is 't32bits {aka unsigned int}'. [invalidPrintfArgType_sint] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:603:2: portability: %d in format string (no. 2) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:57:6: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:55: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:28: note: Assignment 'new=(struct pagenode*)xmalloc(sizeof(*new))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:57:6: note: Null pointer dereference mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:60:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:55: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:28: note: Assignment 'new=(struct pagenode*)xmalloc(sizeof(*new))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:60:5: note: Null pointer dereference mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:61:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:55: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:28: note: Assignment 'new=(struct pagenode*)xmalloc(sizeof(*new))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:61:5: note: Null pointer dereference mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:62:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:55: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:28: note: Assignment 'new=(struct pagenode*)xmalloc(sizeof(*new))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:62:5: note: Null pointer dereference mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:68:5: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:55: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:28: note: Assignment 'new=(struct pagenode*)xmalloc(sizeof(*new))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:68:5: note: Null pointer dereference mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:69:10: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:55: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:28: note: Assignment 'new=(struct pagenode*)xmalloc(sizeof(*new))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:69:10: note: Null pointer dereference mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:69:30: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:55: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:28: note: Assignment 'new=(struct pagenode*)xmalloc(sizeof(*new))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:69:30: note: Null pointer dereference mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:73:9: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:55: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:28: note: Assignment 'new=(struct pagenode*)xmalloc(sizeof(*new))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:73:9: note: Null pointer dereference mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:193:12: warning: If memory allocation fails, then there is a possible null pointer dereference: dir [nullPointerOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:192:33: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:192:8: note: Assignment 'dir=(unsigned char*)xmalloc(12*ndirent+4)', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:193:12: note: Null pointer dereference mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:597:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:594:37: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:594:12: note: Assignment 'Data=(unsigned char*)xmalloc(roundup)', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:597:24: note: Null pointer addition mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:598:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:594:37: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:594:12: note: Assignment 'Data=(unsigned char*)xmalloc(roundup)', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:598:24: note: Null pointer addition mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:82:21: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:89:21: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:95:60: style: Parameter 'tagname' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:118:9: warning: Uninitialized variable: ch [uninitvar] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:107:17: note: Assuming condition is false mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:118:9: note: Uninitialized variable: ch mgetty-1.2.1/frontends/X11/viewfax/g3hack.c:74:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/g3hack.c:152:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:629:10: warning:inconclusive: If memory allocation fails, then there is a possible null pointer dereference: pb++ [nullPointerOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:607:30: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:607:12: note: Assignment 'run0=(unsigned short*)xmalloc(2*((lastx+5)&~1)*sizeof(unsigned short))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:621:11: note: Assignment 'pb=run0', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:629:10: note: Null pointer dereference mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:490:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:489:30: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:489:12: note: Assignment 'run0=(unsigned short*)xmalloc(2*((lastx+5)&~1)*sizeof(unsigned short))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:490:17: note: Null pointer addition mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:608:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:607:30: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:607:12: note: Assignment 'run0=(unsigned short*)xmalloc(2*((lastx+5)&~1)*sizeof(unsigned short))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:608:17: note: Null pointer addition mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:629:10: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:607:30: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:607:12: note: Assignment 'run0=(unsigned short*)xmalloc(2*((lastx+5)&~1)*sizeof(unsigned short))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:621:11: note: Assignment 'pb=run0', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:629:10: note: Null pointer addition mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:352:11: style: Redundant initialization for 'lastx'. The initialized value is overwritten before it is read. [redundantInitialization] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:338:15: note: lastx is initialized mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:352:11: note: lastx is overwritten mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:404:11: style: Redundant initialization for 'lastx'. The initialized value is overwritten before it is read. [redundantInitialization] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:390:15: note: lastx is initialized mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:404:11: note: lastx is overwritten mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:326:18: style: Parameter 'what' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:342:14: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:347:20: style: Variable 'TabEnt' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:394:14: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:399:20: style: Variable 'TabEnt' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:477:14: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:483:20: style: Variable 'TabEnt' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:596:14: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:601:20: style: Variable 'TabEnt' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:708:14: style: Variable 'end' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/faxlib.c:171:11: warning: %hx in format string (no. 2) requires 'unsigned short *' but the argument type is 'signed short *'. [invalidScanfArgType_int] mgetty-1.2.1/faxlib.c:187:11: warning: %hx in format string (no. 2) requires 'unsigned short *' but the argument type is 'signed short *'. [invalidScanfArgType_int] mgetty-1.2.1/faxlib.c:84:32: style: Parameter 'id' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/faxlib.c:396:18: style: Parameter 'fax_id' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/faxlib.c:610:31: style: Parameter 'mclass' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/faxlib.c:716:16: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/g3/g3.c:211:26: debug: Function::addArguments found argument 'p' with varid 0. [varid0] mgetty-1.2.1/g3/g3.c:252:23: debug: Function::addArguments found argument 'p' with varid 0. [varid0] mgetty-1.2.1/g3/g3.c:269:26: debug: Function::addArguments found argument 'reverse' with varid 0. [varid0] mgetty-1.2.1/g3/g3.c:246:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/g32pbm.c:79:21: debug: Function::addArguments found argument 'res' with varid 0. [varid0] mgetty-1.2.1/g3/g32pbm.c:158:22: debug: Function::addArguments found argument 'cols' with varid 0. [varid0] mgetty-1.2.1/g3/g32pbm.c:215:16: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] mgetty-1.2.1/g3/g32pbm.c:514:20: debug: Function::addArguments found argument 'hcol' with varid 0. [varid0] mgetty-1.2.1/g3/g32pbm.c:547:19: debug: Function::addArguments found argument 'start' with varid 0. [varid0] mgetty-1.2.1/g3/g32pbm.c:554:19: debug: Function::addArguments found argument 'start' with varid 0. [varid0] mgetty-1.2.1/g3/g32pbm.c:576:18: debug: Function::addArguments found argument 'resolution' with varid 0. [varid0] mgetty-1.2.1/g3/g3cat.c:66:20: debug: Function::addArguments found argument 'code' with varid 0. [varid0] mgetty-1.2.1/g3/g3cat.c:196:16: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] mgetty-1.2.1/g3/g32pbm.c:102:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/g32pbm.c:182:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/g32pbm.c:244:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/g32pbm.c:602:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/g3cat.c:98:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/g3cat.c:129:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/g3cat.c:181:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/g3cat.c:190:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/g3cat.c:230:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/g3cat.c:179:40: style: Parameter 'program' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/g3/g3cat.c:187:34: style: Parameter 'file' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/g3/g32pbm.c:288:13: style: Local variable 'p' shadows outer variable [shadowVariable] mgetty-1.2.1/g3/g32pbm.c:219:18: note: Shadowed declaration mgetty-1.2.1/g3/g32pbm.c:288:13: note: Shadow variable mgetty-1.2.1/g3/g32pbm.c:446:14: style: Local variable 'p' shadows outer variable [shadowVariable] mgetty-1.2.1/g3/g32pbm.c:219:18: note: Shadowed declaration mgetty-1.2.1/g3/g32pbm.c:446:14: note: Shadow variable mgetty-1.2.1/g3/g32pbm.c:316:66: style: Argument '(max_rows=4300)*1728/8' to function malloc is always 928800. It does not matter what value 'max_rows' has. [knownArgument] mgetty-1.2.1/g3/g32pbm.c:165:26: style: Variable 'obyte' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/g3/g32pbm.c:288:13: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/g3/g32pbm.c:581:25: style: Variable 'lineanch' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/g3/g3split.c:20:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/g3split.c:28:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable PATH_MAX [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/pbm2g3.c:45:20: debug: Function::addArguments found argument 'code' with varid 0. [varid0] mgetty-1.2.1/g3/pbm2g3.c:211:28: debug: Function::addArguments found argument 'fd' with varid 0. [varid0] mgetty-1.2.1/g3/pbm2g3.c:324:24: debug: Function::addArguments found argument 'fd' with varid 0. [varid0] mgetty-1.2.1/g3/pbm2g3.c:394:16: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] mgetty-1.2.1/g3/g3split.c:18:23: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/g3/pbm2g3.c:83:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/pbm2g3.c:114:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/pbm2g3.c:204:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/pbm2g3.c:237:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/pbm2g3.c:348:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/pbm2g3.c:403:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:228:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:305:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:470:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:552:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XValue [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:727:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XValue [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1428:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1449:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable XYBitmap [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/pbm2g3.c:146:10: style: Local variable 'buf' shadows outer variable [shadowVariable] mgetty-1.2.1/g3/pbm2g3.c:35:22: note: Shadowed declaration mgetty-1.2.1/g3/pbm2g3.c:146:10: note: Shadow variable mgetty-1.2.1/g3/pbm2g3.c:178:10: style: Local variable 'buf' shadows outer variable [shadowVariable] mgetty-1.2.1/g3/pbm2g3.c:35:22: note: Shadowed declaration mgetty-1.2.1/g3/pbm2g3.c:178:10: note: Shadow variable mgetty-1.2.1/g3/pbm2g3.c:202:37: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/g3/pbm2g3.c:223:32: style: Variable 'r' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/g3/sff2g3.c:171:16: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] mgetty-1.2.1/g3/sff2g3.c:62:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/sff2g3.c:97:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/sff2g3.c:121:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/sff2g3.c:179:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3file.c:87:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3file.c:194:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/g3/sff2g3.c:316:18: style: Condition 'c>0' is always true [knownConditionTrueFalse] mgetty-1.2.1/g3/sff2g3.c:308:13: note: Assuming that condition 'c==0' is not redundant mgetty-1.2.1/g3/sff2g3.c:316:18: note: Condition 'c>0' is always true mgetty-1.2.1/g3/sff2g3.c:60:37: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/g3/sff2g3.c:112:26: style: Parameter 'path_base' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/g3/sff2g3.c:176:12: style: Variable 'in_file' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/getdisk.c:201:16: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/getdisk.c:233:14: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/gettydefs.c:22:14: style: Parameter 's' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/goodies.c:79:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable C_EMPTY [valueFlowBailoutIncompleteVar] mgetty-1.2.1/goodies.c:272:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/goodies.c:84:12: portability: Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. [prohibitedgetpwuidCalled] mgetty-1.2.1/goodies.c:86:12: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] mgetty-1.2.1/goodies.c:105:12: portability: Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. [prohibitedgetgrgidCalled] mgetty-1.2.1/goodies.c:107:12: portability: Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. [prohibitedgetgrnamCalled] mgetty-1.2.1/goodies.c:81:17: style: Variable 'pwd' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/goodies.c:102:17: style: Variable 'grp' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/goodies.c:267:20: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/io.c:106:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FD_SETSIZE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/io.c:163:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FD_SETSIZE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/locks.c:105:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/locks.c:202:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/locks.c:249:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/locks.c:294:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] mgetty-1.2.1/hyla_nsf.c:58:17: style: struct member 'NSFData::inverseStationIdOrder' is never used. [unusedStructMember] mgetty-1.2.1/locks.c:287:21: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/logfile.c:143:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/logfile.c:189:11: style: Parameter 's' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/login.c:129:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONFDIR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/logname.c:309:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/logname.c:182:24: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] mgetty-1.2.1/logname.c:132:17: style: Local variable 'CallerId' shadows outer variable [shadowVariable] mgetty-1.2.1/mgetty.h:336:14: note: Shadowed declaration mgetty-1.2.1/logname.c:132:17: note: Shadow variable mgetty-1.2.1/logname.c:182:19: style: Variable 'tm' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/login.c:209:16: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mgetty-1.2.1/login.c:212:19: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mgetty-1.2.1/login.c:215:22: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mgetty-1.2.1/login.c:250:8: portability: Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. [prohibitedgetpwnamCalled] mgetty-1.2.1/login.c:287:10: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mgetty-1.2.1/login.c:308:7: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] mgetty-1.2.1/mg_m_init.c:103:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/mg_m_init.c:251:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/mg_m_init.c:473:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/mgetty-launchd.c:114:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/mg_m_init.c:453:17: style: Parameter 'devname' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/mgetty-launchd.c:123:16: warning: If memory allocation fails, then there is a possible null pointer dereference: DevID [nullPointerOutOfMemory] mgetty-1.2.1/mgetty-launchd.c:122:19: note: Assuming allocation function fails mgetty-1.2.1/mgetty-launchd.c:122:19: note: Assignment 'DevID=strdup(Device)', assigned value is 0 mgetty-1.2.1/mgetty-launchd.c:123:16: note: Null pointer dereference mgetty-1.2.1/mgetty-launchd.c:124:14: warning: If memory allocation fails, then there is a possible null pointer dereference: DevID [nullPointerOutOfMemory] mgetty-1.2.1/mgetty-launchd.c:122:19: note: Assuming allocation function fails mgetty-1.2.1/mgetty-launchd.c:122:19: note: Assignment 'DevID=strdup(Device)', assigned value is 0 mgetty-1.2.1/mgetty-launchd.c:124:14: note: Null pointer dereference mgetty-1.2.1/mgetty-launchd.c:127:29: warning: If memory allocation fails, then there is a possible null pointer dereference: DevID [nullPointerOutOfMemory] mgetty-1.2.1/mgetty-launchd.c:122:19: note: Assuming allocation function fails mgetty-1.2.1/mgetty-launchd.c:122:19: note: Assignment 'DevID=strdup(Device)', assigned value is 0 mgetty-1.2.1/mgetty-launchd.c:127:29: note: Null pointer dereference mgetty-1.2.1/mgetty-launchd.c:150:13: style: Variable 'last_start' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/mgetty-launchd.c:80:24: style: Unused variable: now [unusedVariable] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:669:8: error: Array 'Images[10]' accessed at index 10, which is out of bounds. [arrayIndexOutOfBounds] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:670:19: error: Array 'Images[10]' accessed at index 10, which is out of bounds. [arrayIndexOutOfBounds] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:668:5: note: After for loop, oz has value 10 mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:670:19: note: Array index out of bounds mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1013:18: warning: Either the condition 'oz<10' is redundant or the array 'Images[10]' is accessed at index 10, which is out of bounds. [arrayIndexOutOfBoundsCond] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1012:14: note: Assuming that condition 'oz<10' is not redundant mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1013:18: note: Array index out of bounds mgetty-1.2.1/mksed.c:16:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FAX_SPOOL [valueFlowBailoutIncompleteVar] mgetty-1.2.1/mgetty.c:157:49: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VARRUNDIR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/mgetty.c:280:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USER_PROCESS [valueFlowBailoutIncompleteVar] mgetty-1.2.1/mgetty.c:345:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_IGN [valueFlowBailoutIncompleteVar] mgetty-1.2.1/mgetty.c:1236:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable C_EMPTY [valueFlowBailoutIncompleteVar] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:482:37: warning: Either the condition 'children' is redundant or there is possible null pointer dereference: children. [nullPointerRedundantCheck] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:487:10: note: Assuming that condition 'children' is not redundant mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:482:37: note: Null pointer dereference mgetty-1.2.1/modem.c:118:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] mgetty-1.2.1/modem.c:147:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/modem.c:197:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] mgetty-1.2.1/modem.c:116:21: warning: Either the condition 'l==NULL' is redundant or there is possible null pointer dereference: l. [nullPointerRedundantCheck] mgetty-1.2.1/modem.c:120:12: note: Assuming that condition 'l==NULL' is not redundant mgetty-1.2.1/modem.c:116:21: note: Null pointer dereference mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:670:11: style: Variable 'Image' is reassigned a value before the old one has been used. [redundantAssignment] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:667:11: note: Image is assigned mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:670:11: note: Image is overwritten mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:269:31: style:inconclusive: Function 'suffix' argument 2 names different: declaration 'str' definition 'prefix'. [funcArgNamesDifferent] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:63:44: note: Function 'suffix' argument 2 names different: declaration 'str' definition 'prefix'. mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:269:31: note: Function 'suffix' argument 2 names different: declaration 'str' definition 'prefix'. mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1250:19: style:inconclusive: Function 'FlipImage' argument 1 names different: declaration 'xi' definition 'Image'. [funcArgNamesDifferent] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:53:34: note: Function 'FlipImage' argument 1 names different: declaration 'xi' definition 'Image'. mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1250:19: note: Function 'FlipImage' argument 1 names different: declaration 'xi' definition 'Image'. mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1275:21: style:inconclusive: Function 'MirrorImage' argument 1 names different: declaration 'xi' definition 'Image'. [funcArgNamesDifferent] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:54:36: note: Function 'MirrorImage' argument 1 names different: declaration 'xi' definition 'Image'. mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1275:21: note: Function 'MirrorImage' argument 1 names different: declaration 'xi' definition 'Image'. mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:295:13: style: Variable 'r' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:374:17: style: Variable 'Data' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:407:16: style: Parameter 'cmd' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:419:8: style: Variable 'prev' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:744:20: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1202:11: style: Variable 'pb1' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1323:6: error: Uninitialized variable: d0 [legacyUninitvar] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1343:6: error: Uninitialized variable: d0 [legacyUninitvar] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1344:6: error: Uninitialized variable: d1 [legacyUninitvar] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1345:6: error: Uninitialized variable: d2 [legacyUninitvar] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1346:6: error: Uninitialized variable: d3 [legacyUninitvar] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1387:6: error: Uninitialized variable: d0 [legacyUninitvar] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:1346:21: style: Variable 't' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/ring.c:295:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BUFSIZ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/ring.c:35:5: error: Memory leak: p [memleak] mgetty-1.2.1/ring.c:32:31: style: Parameter 'in' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/ring.c:43:8: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/ring.c:192:38: style: Parameter 'p' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/sendfax.c:118:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/sendfax.c:170:59: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mgetty-1.2.1/sendfax.c:391:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/mgetty.c:1234:10: style: Condition 'rp' is always false [knownConditionTrueFalse] mgetty-1.2.1/mgetty.c:1202:10: note: Assignment 'rp=NULL', assigned value is 0 mgetty-1.2.1/mgetty.c:1234:10: note: Condition 'rp' is always false mgetty-1.2.1/t/t_config.c:21:15: debug: Function::addArguments found argument 'argc' with varid 0. [varid0] mgetty-1.2.1/t/t_config.c:34:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/mgetty.c:1126:14: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/t/t_g3f_c.c:55:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/t/t_g3f_c.c:35:30: style: Parameter 's' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/t/t_g3f_c.c:49:35: style: Parameter 'fax_id' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/t/t_ring.c:101:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/t/t_ring.c:121:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CallerId [valueFlowBailoutIncompleteVar] mgetty-1.2.1/t/t_ring.c:101:5: style: Statements following noreturn function 'raise()' will never be executed. [unreachableCode] mgetty-1.2.1/t/t_ring.c:84:30: style: Parameter 's' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tap/atsms.c:90:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/atsms.c:103:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_MESG [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/atsms.c:267:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/atsms.c:332:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/atsms.c:536:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/atsms.c:637:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SIG_DFL [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/atsms.c:644:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/atsms.c:666:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable LOG_DIR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/atsms.c:732:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_WARN [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/atsms.c:742:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/sendfax.c:153:11: portability: Non reentrant function 'ttyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ttyname_r'. [prohibitedttynameCalled] mgetty-1.2.1/sendfax.c:291:13: warning: Either the condition 'p!=NULL' is redundant or there is pointer arithmetic with NULL pointer. [nullPointerArithmeticRedundantCheck] mgetty-1.2.1/sendfax.c:288:9: note: Assuming that condition 'p!=NULL' is not redundant mgetty-1.2.1/sendfax.c:291:13: note: Null pointer addition mgetty-1.2.1/tap/tap.c:75:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_JUNK [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/tap.c:108:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_MESG [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/tap.c:178:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_MESG [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/tap.c:219:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ERROR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/tap.c:256:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_WARN [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/tap.c:265:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_JUNK [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/tap.c:284:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/tap.c:358:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_MESG [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/tap.c:407:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_MESG [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/tap.c:427:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_MESG [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/tap.c:552:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable L_ERROR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/tap.c:601:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/sendfax.c:112:17: style: Parameter 'program' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/sendfax.c:317:32: style: Parameter 'cid' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tio.c:139:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCGETA [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:165:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCSETA [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:210:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:229:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:253:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CBAUD [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:277:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IXON [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:297:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IGNCR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:313:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BRKINT [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:359:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VQUIT [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:404:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ICRNL [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:460:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CLOCAL [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:538:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable IXON [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:724:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CBAUD [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:782:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCFLSH [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:823:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCXONC [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:848:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCSBRK [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:913:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TCSBRK [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tio.c:956:16: style: The comparison 'flags != -1' is always false. [knownConditionTrueFalse] mgetty-1.2.1/tio.c:953:12: note: 'flags' is assigned value '-1' here. mgetty-1.2.1/tio.c:956:16: note: The comparison 'flags != -1' is always false. mgetty-1.2.1/tio.c:250:19: style: Parameter 't' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tio.c:426:19: style: Parameter 't' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tio.c:73:11: style: struct member 'speedtab::speed' is never used. [unusedStructMember] mgetty-1.2.1/tio.c:981:9: style: Unused variable: mctl [unusedVariable] mgetty-1.2.1/tap/atsms.c:755:21: warning: Either the condition 'l==NULL' is redundant or there is possible null pointer dereference: l. [nullPointerRedundantCheck] mgetty-1.2.1/tap/atsms.c:759:12: note: Assuming that condition 'l==NULL' is not redundant mgetty-1.2.1/tap/atsms.c:755:21: note: Null pointer dereference mgetty-1.2.1/tools/ltest.c:34:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FALSE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/atsms.c:92:51: style: Parameter 'sim_pin' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tap/atsms.c:97:7: style: Variable 'p' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/tap/atsms.c:251:60: style: Parameter 'report_file' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tap/atsms.c:256:12: style: Variable 'err_msg' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/tap/atsms.c:258:25: style: Variable 'q' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/tap/atsms.c:314:25: style: Parameter 'sms_text' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tap/atsms.c:478:13: style: Variable 'np' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/tap/atsms.c:641:25: style: Parameter 'program' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tap/atsms.c:641:41: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tools/ltest.c:106:11: portability: Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. [prohibitedlocaltimeCalled] mgetty-1.2.1/tools/ltest.c:139:46: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] mgetty-1.2.1/tools/ltest.c:143:50: style: Clarify calculation precedence for '&' and '?'. [clarifyCalculation] mgetty-1.2.1/tools/ltest.c:27:30: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tools/microcom.c:34:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tools/microcom.c:46:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tools/mid.c:48:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tools/mid.c:61:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FAIL [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tools/mid.c:143:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tools/mid.c:152:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MAXPATH [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/tap.c:96:5: error: Found an exit path from function with non-void return type that has missing return statement [missingReturn] mgetty-1.2.1/tools/microcom.c:30:30: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tools/microcom.c:32:25: style: Parameter 'prog' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tap/tap.c:532:48: style: Condition 'final_handshake(fd,prov[pt].proto)<0' is always false [knownConditionTrueFalse] mgetty-1.2.1/tap/tap.c:532:25: note: Calling function 'final_handshake' returns 0 mgetty-1.2.1/tap/tap.c:532:48: note: Condition 'final_handshake(fd,prov[pt].proto)<0' is always false mgetty-1.2.1/tap/tap.c:171:5: portability: %d in format string (no. 3) requires 'int' but the argument type is 'size_t {aka unsigned long}'. [invalidPrintfArgType_sint] mgetty-1.2.1/tap/tap.c:55:35: style: Parameter 'field1' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tap/tap.c:55:50: style: Parameter 'field2' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tap/tap.c:164:37: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tap/tap.c:191:38: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tools/vhangup.c:29:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/tap/tap.c:191:48: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tap/tap.c:275:42: style: Parameter 'r' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tap/tap.c:275:52: style: Parameter 'text' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tap/tap.c:157:11: style: Variable 'count' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/tools/mid.c:43:30: style: Parameter 'string' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tools/mid.c:140:25: style: Parameter 'program' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tools/mid.c:140:41: style: Parameter 'msg' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/tools/mid.c:154:8: style: Variable 'mailaddr' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/utmp.c:134:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable INIT_PROCESS [valueFlowBailoutIncompleteVar] mgetty-1.2.1/utmp.c:240:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable USER_PROCESS [valueFlowBailoutIncompleteVar] mgetty-1.2.1/utmp.c:179:10: warning: Repositioning operation performed on a file opened in append mode has no effect. [seekOnAppendedFile] mgetty-1.2.1/utmp.c:121:25: style: Parameter 'line' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/utmp.c:234:19: style: Variable 'utmp' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/libmgsm/lpc.c:321:6: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] mgetty-1.2.1/voice/libmgsm/lpc.c:100:19: style: Variable 'sp' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/libmgsm/lpc.c:321:6: style: Variable 'LAR' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/libmgsm/rpe.c:116:32: style: Parameter 'x' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libmgsm/rpe.c:256:31: style: Parameter 'xM' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libmgsm/rpe.c:349:39: style: Parameter 'xMc' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libmgsm/rpe.c:387:34: style: Parameter 'xMp' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libmgsm/rpe.c:209:14: style: Variable 'EM' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/libmgsm/long_term.c:156:47: style: Parameter 'd' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libmgsm/long_term.c:834:42: style: Parameter 'dp' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libpvf/au.c:365:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/au.c:389:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/au.c:494:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/au.c:516:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/au.c:533:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/au.c:555:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/fft.c:101:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/au.c:101:21: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] mgetty-1.2.1/voice/libpvf/au.c:359:34: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] mgetty-1.2.1/voice/libpvf/au.c:73:17: style: Variable 'exp_lut' can be declared as const array [constVariable] mgetty-1.2.1/voice/libpvf/au.c:146:17: style: Variable 'exp_lut' can be declared as const array [constVariable] mgetty-1.2.1/voice/libpvf/au.c:169:27: style: Variable 'ulaw_to_alaw' can be declared as const array [constVariable] mgetty-1.2.1/voice/libpvf/au.c:209:27: style: Variable 'alaw_to_ulaw' can be declared as const array [constVariable] mgetty-1.2.1/voice/libmgsm/short_term.c:23:51: style: Parameter 'LARc' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libmgsm/short_term.c:91:31: style: Parameter 'LARpp_j_1' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libmgsm/short_term.c:132:33: style: Parameter 'LARpp_j' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libpvf/linear.c:50:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/lib.c:27:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/lib.c:59:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/lib.c:92:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/lib.c:111:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/lib.c:123:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/lib.c:139:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/lib.c:155:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/lib.c:165:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/lib.c:175:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/lib.c:186:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/lib.c:268:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/lib.c:390:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/lib.c:232:11: warning: Invalid putc() argument nr 1. The value is -128 but the valid values are '0:'. [invalidFunctionArg] mgetty-1.2.1/voice/libpvf/lib.c:230:19: note: Assignment 'data=-0x80', assigned value is -128 mgetty-1.2.1/voice/libpvf/lib.c:232:11: note: Invalid argument mgetty-1.2.1/voice/libpvf/lib.c:131:22: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] mgetty-1.2.1/voice/libpvf/lib.c:147:22: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] mgetty-1.2.1/voice/libpvf/lib.c:106:48: style: Parameter 'header_out' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libpvf/rockwell.c:608:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/rockwell.c:625:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/rockwell.c:739:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/rockwell.c:753:54: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/multitech.c:92:12: style: Variable 'inp' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/libpvf/multitech.c:195:18: style: Variable 'inp' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/libpvf/usr.c:181:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/voc.c:89:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/voc.c:40:27: style: Variable 'voc_blk' can be declared as const array [constVariable] mgetty-1.2.1/voice/libpvf/voc.c:109:16: style: Variable 'blocksize' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/libpvf/voc.c:110:12: style: Variable 'count' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/libpvf/wav.c:128:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/wav.c:276:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/wav.c:431:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/wav.c:566:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libpvf/wav.c:508:26: warning: Invalid putc() argument nr 1. The value is -32768 but the valid values are '0:'. [invalidFunctionArg] mgetty-1.2.1/voice/libpvf/wav.c:506:34: note: Assignment '*ptr=-0x8000', assigned value is -32768 mgetty-1.2.1/voice/libpvf/wav.c:508:26: note: Invalid argument mgetty-1.2.1/voice/libpvf/wav.c:124:12: style: Condition '!*endptr' is always false [knownConditionTrueFalse] mgetty-1.2.1/voice/libpvf/wav.c:113:25: note: Assignment 'littlendian=1', assigned value is 1 mgetty-1.2.1/voice/libpvf/wav.c:124:12: note: Condition '!*endptr' is always false mgetty-1.2.1/voice/libpvf/wav.c:127:14: style: Condition '0&&!ft->seekable' is always false [knownConditionTrueFalse] mgetty-1.2.1/voice/libpvf/wav.c:360:10: style: Condition '!*endptr' is always false [knownConditionTrueFalse] mgetty-1.2.1/voice/libpvf/wav.c:356:25: note: Assignment 'littlendian=1', assigned value is 1 mgetty-1.2.1/voice/libpvf/wav.c:360:10: note: Condition '!*endptr' is always false mgetty-1.2.1/voice/libpvf/wav.c:257:6: warning: %ld in format string (no. 4) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] mgetty-1.2.1/voice/libpvf/wav.c:261:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] mgetty-1.2.1/voice/libpvf/wav.c:344:6: warning: %ld in format string (no. 4) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] mgetty-1.2.1/voice/libpvf/wav.c:347:6: warning: %ld in format string (no. 1) requires 'long' but the argument type is 'unsigned long'. [invalidPrintfArgType_sint] mgetty-1.2.1/voice/libpvf/wav.c:454:20: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] mgetty-1.2.1/voice/libpvf/wav.c:409:10: style: Local variable 'bytespersample' shadows outer variable [shadowVariable] mgetty-1.2.1/voice/libpvf/wav.c:44:16: note: Shadowed declaration mgetty-1.2.1/voice/libpvf/wav.c:409:10: note: Shadow variable mgetty-1.2.1/voice/libpvf/wav.c:114:12: style: Variable 'endptr' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/libpvf/wav.c:357:12: style: Variable 'endptr' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/libpvf/zyxel-o56k.c:72:7: style: Variable 'xn1' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/libpvf/zyxel-o56k.c:75:12: style: Variable 'codeword' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/libpvf/zyxel-o56k.c:146:7: style: Variable 'xn1' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/libpvf/zyxel.c:40:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/access.c:36:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/access.c:56:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/check_system.c:27:12: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] mgetty-1.2.1/voice/libutil/config.c:35:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CONF_DIR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/make_path.c:12:36: style: Parameter 'path' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libutil/make_path.c:12:48: style: Parameter 'name' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libutil/no_modem.c:14:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:20:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:26:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:32:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:38:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:44:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:50:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:56:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:62:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:68:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:74:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:80:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:86:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:92:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:98:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:104:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:110:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:116:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:122:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:128:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:134:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:140:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:146:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/no_modem.c:14:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:20:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:26:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:32:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:38:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:44:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:50:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:56:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:62:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:68:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:74:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:80:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:86:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:92:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:98:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:104:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:110:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:116:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:122:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:128:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:134:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:140:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/no_modem.c:146:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libutil/test_wildmat.c:23:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libutil/strsep.c:12:48: style: Parameter 'delim' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libpvf/usr.c:635:32: portability: Shifting a negative value is technically undefined behaviour [shiftNegativeLHS] mgetty-1.2.1/voice/libpvf/usr.c:337:22: style: Parameter 'table' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libpvf/usr.c:414:25: style: Parameter 'state_ptr' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libpvf/usr.c:432:25: style: Parameter 'state_ptr' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libpvf/usr.c:74:29: style: Variable 'sample' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/libpvf/usr.c:959:29: style: Variable 'sample' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/libpvf/usr.c:960:27: style: Variable 'code' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/libutil/wildmat.c:105:17: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] mgetty-1.2.1/voice/libvoice/Cirrus_Logic.c:169:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mgetty-1.2.1/voice/libvoice/Cirrus_Logic.c:174:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mgetty-1.2.1/voice/libvoice/Compaq_VS.c:48:18: style: Variable 'frequency2' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/libvoice/Cirrus_Logic.c:54:29: style: Parameter 'buf' can be declared as pointer to const [constParameterPointer] mgetty-1.2.1/voice/libvoice/Cirrus_Logic.c:267:44: style: Parameter 'mode' can be declared as pointer to const. However it seems that 'Cirrus_Logic_switch_to_data_fax' is a callback function, if 'mode' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mgetty-1.2.1/voice/libvoice/Cirrus_Logic.c:351:7: note: You might need to cast the function pointer here mgetty-1.2.1/voice/libvoice/Cirrus_Logic.c:267:44: note: Parameter 'mode' can be declared as pointer to const mgetty-1.2.1/voice/libvoice/Elsa.c:32:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mgetty-1.2.1/voice/libvoice/Elsa.c:57:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mgetty-1.2.1/voice/libvoice/IS_101.c:438:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libvoice/IS_101.c:580:47: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libvoice/IS_101.c:686:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINTR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libvoice/IS_101.c:775:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libvoice/IS_101.c:781:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libvoice/IS_101.c:971:6: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libvoice/IS_101.c:438:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libvoice/IS_101.c:775:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libvoice/IS_101.c:781:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libvoice/IS_101.c:971:6: error: Buffer is accessed out of bounds: POS [bufferAccessOutOfBounds] mgetty-1.2.1/voice/libvoice/IS_101.c:40:36: style:inconclusive: Function 'IS_101_beep' argument 2 names different: declaration 'duration' definition 'length'. [funcArgNamesDifferent] mgetty-1.2.1/voice/include/IS_101.h:41:44: note: Function 'IS_101_beep' argument 2 names different: declaration 'duration' definition 'length'. mgetty-1.2.1/voice/libvoice/IS_101.c:40:36: note: Function 'IS_101_beep' argument 2 names different: declaration 'duration' definition 'length'. mgetty-1.2.1/voice/libvoice/IS_101.c:146:28: style:inconclusive: Function 'IS_101_handle_dle' argument 1 names different: declaration 'code' definition 'data'. [funcArgNamesDifferent] mgetty-1.2.1/voice/include/IS_101.h:43:36: note: Function 'IS_101_handle_dle' argument 1 names different: declaration 'code' definition 'data'. mgetty-1.2.1/voice/libvoice/IS_101.c:146:28: note: Function 'IS_101_handle_dle' argument 1 names different: declaration 'code' definition 'data'. mgetty-1.2.1/voice/libvoice/IS_101.c:880:21: style:inconclusive: Function 'IS_101_wait' argument 1 names different: declaration 'timeout' definition 'wait_timeout'. [funcArgNamesDifferent] mgetty-1.2.1/voice/include/IS_101.h:62:29: note: Function 'IS_101_wait' argument 1 names different: declaration 'timeout' definition 'wait_timeout'. mgetty-1.2.1/voice/libvoice/IS_101.c:880:21: note: Function 'IS_101_wait' argument 1 names different: declaration 'timeout' definition 'wait_timeout'. mgetty-1.2.1/voice/libvoice/IS_101.c:59:23: style: Parameter 'number' can be declared as pointer to const. However it seems that 'IS_101_dial' is a callback function, if 'number' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mgetty-1.2.1/voice/libvoice/IS_101.c:1046:7: note: You might need to cast the function pointer here mgetty-1.2.1/voice/libvoice/IS_101.c:59:23: note: Parameter 'number' can be declared as pointer to const mgetty-1.2.1/voice/libvoice/IS_101.c:815:37: style: Parameter 'mode' can be declared as pointer to const. However it seems that 'IS_101_switch_to_data_fax' is a callback function, if 'mode' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mgetty-1.2.1/voice/libvoice/IS_101.c:1062:7: note: You might need to cast the function pointer here mgetty-1.2.1/voice/libvoice/IS_101.c:815:37: note: Parameter 'mode' can be declared as pointer to const mgetty-1.2.1/voice/libvoice/IS_101.c:961:39: style: Parameter 'rmd_name' can be declared as pointer to const. However it seems that 'IS_101_check_rmd_adequation' is a callback function, if 'rmd_name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mgetty-1.2.1/voice/libvoice/IS_101.c:1067:7: note: You might need to cast the function pointer here mgetty-1.2.1/voice/libvoice/IS_101.c:961:39: note: Parameter 'rmd_name' can be declared as pointer to const mgetty-1.2.1/voice/libvoice/Multitech_2834.c:225:52: style: Parameter 'mode' can be declared as pointer to const. However it seems that 'Multitech_2834_switch_to_data_fax' is a callback function, if 'mode' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mgetty-1.2.1/voice/libvoice/Multitech_2834.c:344:7: note: You might need to cast the function pointer here mgetty-1.2.1/voice/libvoice/Multitech_2834.c:225:52: note: Parameter 'mode' can be declared as pointer to const mgetty-1.2.1/voice/libvoice/Multitech_5600ZDXv.c:107:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable __FUNCTION__ [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libvoice/Multitech_5600ZDXv.c:50:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mgetty-1.2.1/voice/libvoice/Multitech_5600ZDXv.c:67:3: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mgetty-1.2.1/voice/libvoice/Multitech_5634ZPX.c:254:48: style: Parameter 'mode' can be declared as pointer to const. However it seems that 'Multitech_5634ZPX_switch_to_data_fax' is a callback function, if 'mode' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mgetty-1.2.1/voice/libvoice/Multitech_5634ZPX.c:372:7: note: You might need to cast the function pointer here mgetty-1.2.1/voice/libvoice/Multitech_5634ZPX.c:254:48: note: Parameter 'mode' can be declared as pointer to const mgetty-1.2.1/voice/libvoice/Multitech_5634.c:252:52: style: Parameter 'mode' can be declared as pointer to const. However it seems that 'Multitech_5634_switch_to_data_fax' is a callback function, if 'mode' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mgetty-1.2.1/voice/libvoice/Multitech_5634.c:370:7: note: You might need to cast the function pointer here mgetty-1.2.1/voice/libvoice/Multitech_5634.c:252:52: note: Parameter 'mode' can be declared as pointer to const mgetty-1.2.1/voice/libvoice/Sierra.c:48:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mgetty-1.2.1/voice/libvoice/Rockwell.c:48:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mgetty-1.2.1/voice/libvoice/Rockwell.c:93:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mgetty-1.2.1/voice/libvoice/Supra.c:29:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mgetty-1.2.1/voice/libvoice/Supra.c:54:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mgetty-1.2.1/voice/libvoice/Supra56ePRO.c:31:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mgetty-1.2.1/voice/libvoice/Supra56ePRO.c:56:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mgetty-1.2.1/voice/libvoice/UMC.c:41:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mgetty-1.2.1/voice/libvoice/UMC.c:59:6: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] mgetty-1.2.1/voice/libvoice/UMC.c:222:34: style: Parameter 'mode' can be declared as pointer to const. However it seems that 'UMC_switch_to_data_fax' is a callback function, if 'mode' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mgetty-1.2.1/voice/libvoice/UMC.c:304:7: note: You might need to cast the function pointer here mgetty-1.2.1/voice/libvoice/UMC.c:222:34: note: Parameter 'mode' can be declared as pointer to const mgetty-1.2.1/voice/libvoice/US_Robotics.c:318:42: style: Parameter 'mode' can be declared as pointer to const. However it seems that 'USR_switch_to_data_fax' is a callback function, if 'mode' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mgetty-1.2.1/voice/libvoice/US_Robotics.c:454:7: note: You might need to cast the function pointer here mgetty-1.2.1/voice/libvoice/US_Robotics.c:318:42: note: Parameter 'mode' can be declared as pointer to const mgetty-1.2.1/voice/libvoice/V253modem.c:493:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINTR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libvoice/V253modem.c:436:37: style: Parameter 'rmd_name' can be declared as pointer to const. However it seems that 'V253_check_rmd_adequation' is a callback function, if 'rmd_name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mgetty-1.2.1/voice/libvoice/V253modem.c:685:6: note: You might need to cast the function pointer here mgetty-1.2.1/voice/libvoice/V253modem.c:436:37: note: Parameter 'rmd_name' can be declared as pointer to const mgetty-1.2.1/voice/libvoice/V253modem.c:566:17: style: Variable 'got_DLE_ETX' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/libvoice/ZyXEL_1496.c:212:43: style: Parameter 'rmd_name' can be declared as pointer to const. However it seems that 'ZyXEL_1496_check_rmd_adequation' is a callback function, if 'rmd_name' is declared with const you might also need to cast function pointer(s). [constParameterCallback] mgetty-1.2.1/voice/libvoice/ZyXEL_1496.c:293:7: note: You might need to cast the function pointer here mgetty-1.2.1/voice/libvoice/ZyXEL_1496.c:212:43: note: Parameter 'rmd_name' can be declared as pointer to const mgetty-1.2.1/voice/libvoice/ZyXEL_Omni56K.c:177:8: style: Variable 'resp' can be declared as const array [constVariable] mgetty-1.2.1/voice/libvoice/command.c:12:40: style:inconclusive: Function 'voice_command' argument 2 names different: declaration 'expected_answers' definition 'expected_answer'. [funcArgNamesDifferent] mgetty-1.2.1/voice/include/voice.h:123:47: note: Function 'voice_command' argument 2 names different: declaration 'expected_answers' definition 'expected_answer'. mgetty-1.2.1/voice/libvoice/command.c:12:40: note: Function 'voice_command' argument 2 names different: declaration 'expected_answers' definition 'expected_answer'. mgetty-1.2.1/voice/libvoice/device_mode_names.c:13:34: style:inconclusive: Function 'voice_device_mode_name' argument 1 names different: declaration 'i' definition 'device_number'. [funcArgNamesDifferent] mgetty-1.2.1/voice/include/voice.h:228:41: note: Function 'voice_device_mode_name' argument 1 names different: declaration 'i' definition 'device_number'. mgetty-1.2.1/voice/libvoice/device_mode_names.c:13:34: note: Function 'voice_device_mode_name' argument 1 names different: declaration 'i' definition 'device_number'. mgetty-1.2.1/voice/libvoice/event.c:293:6: warning: Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [uselessAssignmentPtrArg] mgetty-1.2.1/voice/libvoice/init.c:42:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable VMIN [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libvoice/open.c:47:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDWR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libvoice/mode.c:65:29: style:inconclusive: Function 'enter_data_fax_mode' argument 1 names different: declaration 'mode' definition 'answer_mode'. [funcArgNamesDifferent] mgetty-1.2.1/voice/include/voice.h:165:36: note: Function 'enter_data_fax_mode' argument 1 names different: declaration 'mode' definition 'answer_mode'. mgetty-1.2.1/voice/libvoice/mode.c:65:29: note: Function 'enter_data_fax_mode' argument 1 names different: declaration 'mode' definition 'answer_mode'. mgetty-1.2.1/voice/libvoice/open.c:68:18: warning: If memory allocation fails, then there is a possible null pointer dereference: DevID [nullPointerOutOfMemory] mgetty-1.2.1/voice/libvoice/open.c:67:25: note: Assuming allocation function fails mgetty-1.2.1/voice/libvoice/open.c:67:25: note: Assignment 'DevID=malloc(strlen(p)+1)', assigned value is 0 mgetty-1.2.1/voice/libvoice/open.c:68:18: note: Null pointer dereference mgetty-1.2.1/voice/libvoice/open.c:69:19: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] mgetty-1.2.1/voice/libvoice/open.c:67:25: note: Assuming allocation function fails mgetty-1.2.1/voice/libvoice/open.c:67:25: note: Assignment 'DevID=malloc(strlen(p)+1)', assigned value is 0 mgetty-1.2.1/voice/libvoice/open.c:69:11: note: Assignment 'p=DevID', assigned value is 0 mgetty-1.2.1/voice/libvoice/open.c:69:19: note: Null pointer dereference mgetty-1.2.1/voice/libvoice/open.c:15:12: style: Variable 'voice_tty_start' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/libvoice/read.c:75:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EINTR [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libvoice/read.c:96:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libvoice/read.c:75:23: style: Condition 'result<0' is always true [knownConditionTrueFalse] mgetty-1.2.1/voice/libvoice/read.c:72:22: note: Assuming that condition 'result>=0' is not redundant mgetty-1.2.1/voice/libvoice/read.c:75:23: note: Condition 'result<0' is always true mgetty-1.2.1/voice/libvoice/write.c:68:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libvoice/write.c:94:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libvoice/shell.c:54:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/autopvf.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/autopvf.c:33:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/autopvf.c:35:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/autopvf.c:36:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/basictopvf.c:19:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/basictopvf.c:35:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/basictopvf.c:37:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/basictopvf.c:38:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/lintopvf.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/lintopvf.c:41:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvfamp.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvfamp.c:35:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/libvoice/shell.c:349:21: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mgetty-1.2.1/voice/libvoice/shell.c:368:21: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mgetty-1.2.1/voice/libvoice/shell.c:419:21: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mgetty-1.2.1/voice/libvoice/shell.c:504:21: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mgetty-1.2.1/voice/libvoice/shell.c:572:21: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mgetty-1.2.1/voice/libvoice/shell.c:604:21: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mgetty-1.2.1/voice/libvoice/shell.c:652:21: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] mgetty-1.2.1/voice/pvftools/lintopvf.c:43:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/lintopvf.c:44:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/libvoice/shell.c:190:6: warning: If memory allocation fails, then there is a possible null pointer dereference: shell_arguments [nullPointerOutOfMemory] mgetty-1.2.1/voice/libvoice/shell.c:188:39: note: Assuming allocation function fails mgetty-1.2.1/voice/libvoice/shell.c:188:24: note: Assignment 'shell_arguments=(char**)malloc((3+arg_index)*sizeof(char*))', assigned value is 0 mgetty-1.2.1/voice/libvoice/shell.c:190:6: note: Null pointer dereference mgetty-1.2.1/voice/libvoice/shell.c:201:16: warning: If memory allocation fails, then there is a possible null pointer dereference: shell_arguments [nullPointerOutOfMemory] mgetty-1.2.1/voice/libvoice/shell.c:188:39: note: Assuming allocation function fails mgetty-1.2.1/voice/libvoice/shell.c:188:24: note: Assignment 'shell_arguments=(char**)malloc((3+arg_index)*sizeof(char*))', assigned value is 0 mgetty-1.2.1/voice/libvoice/shell.c:201:16: note: Null pointer dereference mgetty-1.2.1/voice/libvoice/shell.c:204:6: warning: If memory allocation fails, then there is a possible null pointer dereference: shell_arguments [nullPointerOutOfMemory] mgetty-1.2.1/voice/libvoice/shell.c:188:39: note: Assuming allocation function fails mgetty-1.2.1/voice/libvoice/shell.c:188:24: note: Assignment 'shell_arguments=(char**)malloc((3+arg_index)*sizeof(char*))', assigned value is 0 mgetty-1.2.1/voice/libvoice/shell.c:204:6: note: Null pointer dereference mgetty-1.2.1/voice/pvftools/pvfamp.c:37:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvfamp.c:38:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvfcut.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvfcut.c:38:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvfecho.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvfecho.c:36:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvffft.c:18:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvffft.c:38:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvfcut.c:148:6: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] mgetty-1.2.1/voice/pvftools/pvfcut.c:40:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvfcut.c:41:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvffft.c:39:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvfecho.c:146:6: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] mgetty-1.2.1/voice/pvftools/pvfecho.c:44:10: style: Local variable 'delay' shadows outer function [shadowFunction] mgetty-1.2.1/mgetty.h:271:6: note: Shadowed declaration mgetty-1.2.1/voice/pvftools/pvfecho.c:44:10: note: Shadow variable mgetty-1.2.1/voice/pvftools/pvfecho.c:38:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvfecho.c:39:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvffile.c:16:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvffile.c:29:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvffile.c:30:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvffilter.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvffilter.c:36:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvffile.c:84:14: style: Variable 'data' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/pvftools/pvfmix.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvfmix.c:36:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvffilter.c:38:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvffilter.c:39:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvffilter.c:146:16: style: Variable 'u[p]' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/pvftools/pvfmix.c:39:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvfmix.c:40:12: style: Variable 'name2_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvfmix.c:41:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvfnoise.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvfnoise.c:35:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvfnoise.c:36:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvfreverse.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvfreverse.c:34:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvfreverse.c:131:6: error: Common realloc mistake: 'buffer' nulled but not freed upon failure [memleakOnRealloc] mgetty-1.2.1/voice/pvftools/pvfreverse.c:36:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvfreverse.c:37:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvfsine.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvfsine.c:36:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvfsine.c:37:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvfspeed.c:18:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvfspeed.c:39:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvftoau.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvftoau.c:32:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvfspeed.c:41:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvfspeed.c:42:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvftoau.c:34:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvftoau.c:35:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvftobasic.c:20:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvftobasic.c:32:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvftobasic.c:34:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvftobasic.c:35:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvftolin.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvftolin.c:36:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvftolin.c:38:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvftolin.c:39:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvftovoc.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvftovoc.c:29:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvftovoc.c:31:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvftovoc.c:32:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvftormd.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvftormd.c:31:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvftormd.c:71:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvftowav.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvftowav.c:32:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvftowav.c:34:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvftowav.c:35:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/rmdfile.c:16:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/rmdfile.c:27:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/pvftormd.c:77:12: style: Local variable 'modem_type' shadows outer variable [shadowVariable] mgetty-1.2.1/fax_lib.h:20:19: note: Shadowed declaration mgetty-1.2.1/voice/pvftools/pvftormd.c:77:12: note: Shadow variable mgetty-1.2.1/voice/pvftools/pvftormd.c:73:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvftormd.c:74:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/rmdfile.c:28:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/pvftormd.c:77:12: style: Variable 'modem_type' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/rmdfile.c:34:18: style: Variable 'option' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/pvftools/usrgsm.c:103:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/usrgsm.c:163:21: style: Condition 'GSM_to_USR(r,g)' is always false [knownConditionTrueFalse] mgetty-1.2.1/voice/pvftools/usrgsm.c:163:21: note: Calling function 'GSM_to_USR' returns 0 mgetty-1.2.1/voice/pvftools/usrgsm.c:163:21: note: Condition 'GSM_to_USR(r,g)' is always false mgetty-1.2.1/voice/pvftools/usrgsm.c:64:9: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/usrgsm.c:52:6: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mgetty-1.2.1/voice/pvftools/usrgsm.c:52:13: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mgetty-1.2.1/voice/pvftools/usrgsm.c:65:6: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mgetty-1.2.1/voice/pvftools/usrgsm.c:65:13: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] mgetty-1.2.1/voice/pvftools/usrgsm.c:97:12: style: Variable 'nelem' is assigned a value that is never used. [unreadVariable] mgetty-1.2.1/voice/pvftools/rmdtopvf.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/rmdtopvf.c:33:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/rmdtopvf.c:62:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/voctopvf.c:17:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/voctopvf.c:33:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/voctopvf.c:35:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/voctopvf.c:36:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/wavtopvf.c:18:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/wavtopvf.c:35:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/pvftools/wavtopvf.c:37:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/wavtopvf.c:38:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/rmdtopvf.c:68:12: style: Local variable 'modem_type' shadows outer variable [shadowVariable] mgetty-1.2.1/fax_lib.h:20:19: note: Shadowed declaration mgetty-1.2.1/voice/pvftools/rmdtopvf.c:68:12: note: Shadow variable mgetty-1.2.1/voice/pvftools/rmdtopvf.c:64:12: style: Variable 'name_in' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/rmdtopvf.c:65:12: style: Variable 'name_out' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/pvftools/rmdtopvf.c:68:12: style: Variable 'modem_type' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/vm/usage.c:15:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/vm/main.c:62:77: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EOF [valueFlowBailoutIncompleteVar] mgetty-1.2.1/voice/vm/main.c:359:21: warning: If memory allocation fails, then there is a possible null pointer dereference: shell_arguments [nullPointerOutOfMemory] mgetty-1.2.1/voice/vm/main.c:355:49: note: Assuming allocation function fails mgetty-1.2.1/voice/vm/main.c:355:34: note: Assignment 'shell_arguments=(char**)malloc((argc-optind+1)*sizeof(char*))', assigned value is 0 mgetty-1.2.1/voice/vm/main.c:359:21: note: Null pointer dereference mgetty-1.2.1/voice/vm/main.c:361:16: warning: If memory allocation fails, then there is a possible null pointer dereference: shell_arguments [nullPointerOutOfMemory] mgetty-1.2.1/voice/vm/main.c:355:49: note: Assuming allocation function fails mgetty-1.2.1/voice/vm/main.c:355:34: note: Assignment 'shell_arguments=(char**)malloc((argc-optind+1)*sizeof(char*))', assigned value is 0 mgetty-1.2.1/voice/vm/main.c:361:16: note: Null pointer dereference mgetty-1.2.1/voice/vm/main.c:36:12: style: Variable 'command' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/vm/main.c:434:12: style: Variable 'filefrommodem_name' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/vm/main.c:435:12: style: Variable 'filetomodem_name' can be declared as pointer to const [constVariablePointer] mgetty-1.2.1/voice/vgetty/answer.c:65:21: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] mgetty-1.2.1/voice/vgetty/answer.c:77:26: warning: fscanf() without field width limits can crash with huge input data. [invalidscanf] mgetty-1.2.1/voice/vgetty/answer.c:30:11: style: Local variable 'answer_mode' shadows outer variable [shadowVariable] mgetty-1.2.1/voice/include/voice.h:98:12: note: Shadowed declaration mgetty-1.2.1/voice/vgetty/answer.c:30:11: note: Shadow variable mgetty-1.2.1/voice/vgetty/answer.c:384:15: style: Local variable 'result' shadows outer variable [shadowVariable] mgetty-1.2.1/voice/vgetty/answer.c:249:10: note: Shadowed declaration mgetty-1.2.1/voice/vgetty/answer.c:384:15: note: Shadow variable diff: 2.17.0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:490:17: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:489:30: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:489:12: note: Assignment 'run0=(unsigned short*)xmalloc(2*((lastx+5)&~1)*sizeof(unsigned short))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:490:17: note: Null pointer addition head mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:490:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:489:30: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:489:12: note: Assignment 'run0=(unsigned short*)xmalloc(2*((lastx+5)&~1)*sizeof(unsigned short))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:490:17: note: Null pointer addition 2.17.0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:608:17: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:607:30: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:607:12: note: Assignment 'run0=(unsigned short*)xmalloc(2*((lastx+5)&~1)*sizeof(unsigned short))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:608:17: note: Null pointer addition head mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:608:17: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:607:30: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:607:12: note: Assignment 'run0=(unsigned short*)xmalloc(2*((lastx+5)&~1)*sizeof(unsigned short))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:608:17: note: Null pointer addition 2.17.0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:629:10: error:inconclusive: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:607:30: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:607:12: note: Assignment 'run0=(unsigned short*)xmalloc(2*((lastx+5)&~1)*sizeof(unsigned short))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:621:11: note: Assignment 'pb=run0', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:629:10: note: Null pointer addition head mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:629:10: error:inconclusive: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:607:30: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:607:12: note: Assignment 'run0=(unsigned short*)xmalloc(2*((lastx+5)&~1)*sizeof(unsigned short))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:621:11: note: Assignment 'pb=run0', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxexpand.c:629:10: note: Null pointer addition 2.17.0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:597:24: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:594:37: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:594:12: note: Assignment 'Data=(unsigned char*)xmalloc(roundup)', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:597:24: note: Null pointer addition head mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:597:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:594:37: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:594:12: note: Assignment 'Data=(unsigned char*)xmalloc(roundup)', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:597:24: note: Null pointer addition 2.17.0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:598:24: error: If memory allocation fail: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:594:37: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:594:12: note: Assignment 'Data=(unsigned char*)xmalloc(roundup)', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:598:24: note: Null pointer addition head mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:598:24: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:594:37: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:594:12: note: Assignment 'Data=(unsigned char*)xmalloc(roundup)', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:598:24: note: Null pointer addition head mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:69:30: warning: If memory allocation fails, then there is a possible null pointer dereference: new [nullPointerOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:55: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:55:28: note: Assignment 'new=(struct pagenode*)xmalloc(sizeof(*new))', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/faxinput.c:69:30: note: Null pointer dereference 2.17.0 mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:430:9: warning: If memory allocation fails, then there is a possible null pointer dereference: syscmd [nullPointerOutOfMemory] mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:427:18: note: Assuming allocation function fails mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:427:18: note: Assignment 'syscmd=xmalloc(size)', assigned value is 0 mgetty-1.2.1/frontends/X11/viewfax/viewfax.c:430:9: note: Null pointer dereference head mgetty-1.2.1/voice/pvftools/usrgsm.c:52:13: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] head mgetty-1.2.1/voice/pvftools/usrgsm.c:65:13: portability: 'ptr' is of type 'void *'. When using void pointers in calculations, the behaviour is undefined. [arithOperationsOnVoidPointer] DONE