2025-09-14 02:52 ftp://ftp.de.debian.org/debian/pool/main/libr/librandom123/librandom123_1.14.0~rc2+dfsg.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=openssl --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.12.43+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: fea194b (2025-09-13 13:40:14 +0200) count: 93 93 elapsed-time: 0.9 2.3 head-timing-info: old-timing-info: head results: random123-1.14.0-rc2/examples/example_seeds.h:45:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/examples/example_seeds.h:66:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/examples/pi_aes.cpp:86:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/examples/pi_gsl.c:53:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsl_rng_cbrng [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/examples/pi_microurng.cpp:95:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/examples/pi_opencl.c:41:31: error: syntax error [syntaxError] random123-1.14.0-rc2/examples/simplepp.cpp:38:57: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXAMPLE_SEED1_U64 [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/examples/pi_uniform.cpp:48:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EXAMPLE_SEED1_U64 [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/kat_opencl.c:59:24: error: syntax error [syntaxError] random123-1.14.0-rc2/tests/util.h:95:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util.h:102:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util.h:149:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util.h:150:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/kat_main.h:95:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/rngNxW.h:33:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/rngNxW.h:34:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/rngNxW.h:35:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/rngNxW.h:36:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/kat_main.h:245:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdin [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util.h:129:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable digits [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/time_boxmuller.cpp:124:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/time_boxmuller.cpp:76:2: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/kat_cpp.cpp:104:89: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable digits [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util.h:79:12: warning: If memory allocation fails, then there is a possible null pointer dereference: p [nullPointerOutOfMemory] random123-1.14.0-rc2/tests/util.h:78:29: note: Assuming allocation function fails random123-1.14.0-rc2/tests/util.h:78:15: note: Assignment 'p=(char*)malloc(strlen(s)+1)', assigned value is 0 random123-1.14.0-rc2/tests/util.h:79:12: note: Null pointer dereference random123-1.14.0-rc2/tests/util.h:78:15: style: C-style pointer casting [cstyleCast] random123-1.14.0-rc2/tests/time_boxmuller.cpp:75:10: style: C-style pointer casting [cstyleCast] random123-1.14.0-rc2/tests/time_boxmuller.cpp:68:83: style: Parameter 'out_fname' can be declared as pointer to const [constParameterPointer] random123-1.14.0-rc2/tests/util.h:68:19: warning: Uninitialized variable: *d [uninitvar] random123-1.14.0-rc2/tests/time_boxmuller.cpp:84:18: note: Calling function 'timer', 1st argument '&cur_time' value is random123-1.14.0-rc2/tests/util.h:68:19: note: Uninitialized variable: *d random123-1.14.0-rc2/tests/time_opencl.c:159:24: error: syntax error [syntaxError] random123-1.14.0-rc2/tests/rngNxW.h:33:1: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] random123-1.14.0-rc2/tests/rngNxW.h:34:1: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] random123-1.14.0-rc2/tests/rngNxW.h:35:1: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] random123-1.14.0-rc2/tests/rngNxW.h:36:1: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] random123-1.14.0-rc2/tests/kat_main.h:145:5: warning: sscanf() without field width limits can crash with huge input data. [invalidscanf] random123-1.14.0-rc2/tests/kat_main.h:199:10: style: Variable 'zeros' can be declared as const array [constVariable] random123-1.14.0-rc2/tests/timers.cpp:84:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/timers.cpp:194:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/kat_main.h:267:13: style: C-style pointer casting [cstyleCast] random123-1.14.0-rc2/tests/kat_main.h:277:14: style: C-style pointer casting [cstyleCast] random123-1.14.0-rc2/tests/util_expandtpl.h:47:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:48:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:62:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:63:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable v [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:47:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable philox4x32_rounds [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:48:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable philox4x32_rounds [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:62:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable threefry4x32_rounds [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:63:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable threefry4x32_rounds [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:47:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:48:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:62:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:63:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/time_serial.c:137:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/ut_Engine.cpp:243:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/ut_Engine.cpp:89:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/timers.cpp:223:18: style: Local variable 'c' shadows outer variable [shadowVariable] random123-1.14.0-rc2/tests/timers.cpp:210:14: note: Shadowed declaration random123-1.14.0-rc2/tests/timers.cpp:223:18: note: Shadow variable random123-1.14.0-rc2/tests/ut_Engine.cpp:81:10: performance:inconclusive: Technically the member function 'DummySeedSeq::generate' can be static (but you may consider moving to unnamed namespace). [functionStatic] random123-1.14.0-rc2/tests/ut_Engine.cpp:209:21: style: Condition 'knownanswer!=0' is always true [knownConditionTrueFalse] random123-1.14.0-rc2/tests/ut_Engine.cpp:208:61: note: Calling function 'kat1000 < Engine < Philox4x32 > >' returns 1721865298 random123-1.14.0-rc2/tests/ut_Engine.cpp:208:61: note: Assignment 'knownanswer=kat1000 < Engine < Philox4x32 > >()', assigned value is 1721865298 random123-1.14.0-rc2/tests/ut_Engine.cpp:209:21: note: Condition 'knownanswer!=0' is always true random123-1.14.0-rc2/tests/ut_Engine.cpp:209:21: style: Condition 'knownanswer!=0' is always true [knownConditionTrueFalse] random123-1.14.0-rc2/tests/ut_Engine.cpp:208:61: note: Calling function 'kat1000 < Engine < Threefry4x32 > >' returns 874101813 random123-1.14.0-rc2/tests/ut_Engine.cpp:208:61: note: Assignment 'knownanswer=kat1000 < Engine < Threefry4x32 > >()', assigned value is 874101813 random123-1.14.0-rc2/tests/ut_Engine.cpp:209:21: note: Condition 'knownanswer!=0' is always true random123-1.14.0-rc2/tests/ut_ReinterpretCtr.cpp:48:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/ut_aes.cpp:50:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/time_thread.c:80:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:47:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:48:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:62:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:63:1: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/time_thread.c:215:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/ut_features.cpp:62:0: error: #error "No R123_USE_X86INTRIN_H" [preprocessorErrorDirective] random123-1.14.0-rc2/tests/ut_features.cpp:62:2: error: #error "No R123_USE_X86INTRIN_H" [preprocessorErrorDirective] random123-1.14.0-rc2/tests/ut_gsl.c:52:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable gsl_rng_cbrng [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/ut_carray.cpp:101:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/ut_gsl.c:86:16: style: Local variable 'x' shadows outer variable [shadowVariable] random123-1.14.0-rc2/tests/ut_gsl.c:47:25: note: Shadowed declaration random123-1.14.0-rc2/tests/ut_gsl.c:86:16: note: Shadow variable random123-1.14.0-rc2/tests/ut_gsl.c:70:49: warning: Conversion of string literal "sum must be reasonably close to 0.5*number of trials" to bool always evaluates to true. [incorrectStringBooleanError] random123-1.14.0-rc2/tests/ut_gsl.c:93:49: warning: Conversion of string literal "sum must be reasonably close to 0.5*number of trials" to bool always evaluates to true. [incorrectStringBooleanError] random123-1.14.0-rc2/tests/ut_ua.cpp:53:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable cout [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/ut_uniform.cpp:103:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable static_size [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/ut_carray.cpp:83:10: performance:inconclusive: Technically the member function 'dummySeedSeq::generate' can be static (but you may consider moving to unnamed namespace). [functionStatic] random123-1.14.0-rc2/tests/ut_uniform_IEEEkat.cpp:190:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable digits [valueFlowBailoutIncompleteVar] random123-1.14.0-rc2/tests/util_expandtpl.h:47:1: style:inconclusive: Boolean expression '(hC)[xi].v[xj]==0' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] random123-1.14.0-rc2/tests/util_expandtpl.h:48:1: style:inconclusive: Boolean expression '(hC)[xi].v[xj]==0' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] random123-1.14.0-rc2/tests/util_expandtpl.h:62:1: style:inconclusive: Boolean expression '(hC)[xi].v[xj]==0' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] random123-1.14.0-rc2/tests/util_expandtpl.h:63:1: style:inconclusive: Boolean expression '(hC)[xi].v[xj]==0' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] random123-1.14.0-rc2/tests/time_serial.c:130:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] random123-1.14.0-rc2/tests/util_expandtpl.h:47:1: style: Parameter 'octrs' can be declared as pointer to const [constParameterPointer] random123-1.14.0-rc2/tests/util_expandtpl.h:48:1: style: Parameter 'octrs' can be declared as pointer to const [constParameterPointer] random123-1.14.0-rc2/tests/util_expandtpl.h:62:1: style: Parameter 'octrs' can be declared as pointer to const [constParameterPointer] random123-1.14.0-rc2/tests/util_expandtpl.h:63:1: style: Parameter 'octrs' can be declared as pointer to const [constParameterPointer] random123-1.14.0-rc2/tests/util.h:68:19: warning: Uninitialized variable: *d [uninitvar] random123-1.14.0-rc2/tests/util_expandtpl.h:63:1: note: Calling function 'timer', 1st argument '&cur_time' value is random123-1.14.0-rc2/tests/util.h:68:19: note: Uninitialized variable: *d random123-1.14.0-rc2/tests/ut_uniform_IEEEkat.cpp:158:30: performance: Function parameter 's' should be passed by const reference. [passedByValue] random123-1.14.0-rc2/tests/util_expandtpl.h:47:1: style:inconclusive: Boolean expression 'td.octrs[xi].v[xj]==0' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] random123-1.14.0-rc2/tests/util_expandtpl.h:48:1: style:inconclusive: Boolean expression 'td.octrs[xi].v[xj]==0' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] random123-1.14.0-rc2/tests/util_expandtpl.h:62:1: style:inconclusive: Boolean expression 'td.octrs[xi].v[xj]==0' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] random123-1.14.0-rc2/tests/util_expandtpl.h:63:1: style:inconclusive: Boolean expression 'td.octrs[xi].v[xj]==0' is used in bitwise operation. Did you mean '&&'? [bitwiseOnBoolean] random123-1.14.0-rc2/tests/time_thread.c:208:11: style: Variable 'cp' can be declared as pointer to const [constVariablePointer] diff: DONE