Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/csmith-2.3.0/runtime/windows/stdint.h Examining data/csmith-2.3.0/runtime/safe_abbrev.h Examining data/csmith-2.3.0/runtime/stdint_ia64.h Examining data/csmith-2.3.0/runtime/platform_generic.h Examining data/csmith-2.3.0/runtime/platform_avr.h Examining data/csmith-2.3.0/runtime/random_inc.h Examining data/csmith-2.3.0/runtime/stdint_msp430.h Examining data/csmith-2.3.0/runtime/platform_msp430.h Examining data/csmith-2.3.0/runtime/custom_stdint_x86.h Examining data/csmith-2.3.0/runtime/csmith.h Examining data/csmith-2.3.0/runtime/stdint_ia32.h Examining data/csmith-2.3.0/runtime/custom_limits.h Examining data/csmith-2.3.0/runtime/stdint_avr.h Examining data/csmith-2.3.0/runtime/volatile_runtime.c Examining data/csmith-2.3.0/runtime/volatile_runtime.h Examining data/csmith-2.3.0/runtime/csmith_minimal.h Examining data/csmith-2.3.0/src/DefaultOutputMgr.cpp Examining data/csmith-2.3.0/src/Error.cpp Examining data/csmith-2.3.0/src/StringUtils.cpp Examining data/csmith-2.3.0/src/FunctionInvocationBinary.cpp Examining data/csmith-2.3.0/src/DeltaMonitor.h Examining data/csmith-2.3.0/src/StatementReturn.h Examining data/csmith-2.3.0/src/DepthSpec.cpp Examining data/csmith-2.3.0/src/Sequence.h Examining data/csmith-2.3.0/src/SafeOpFlags.h Examining data/csmith-2.3.0/src/Probabilities.h Examining data/csmith-2.3.0/src/ExtensionValue.h Examining data/csmith-2.3.0/src/SequenceLineParser.h Examining data/csmith-2.3.0/src/CrestExtension.h Examining data/csmith-2.3.0/src/DFSOutputMgr.h Examining data/csmith-2.3.0/src/Function.cpp Examining data/csmith-2.3.0/src/CFGEdge.h Examining data/csmith-2.3.0/src/ReducerOutputMgr.cpp Examining data/csmith-2.3.0/src/Function.h Examining data/csmith-2.3.0/src/StatementFor.h Examining data/csmith-2.3.0/src/StatementIf.cpp Examining data/csmith-2.3.0/src/Reducer.h Examining data/csmith-2.3.0/src/SimpleDeltaRndNumGenerator.cpp Examining data/csmith-2.3.0/src/SplatExtension.cpp Examining data/csmith-2.3.0/src/SequenceFactory.h Examining data/csmith-2.3.0/src/Type.cpp Examining data/csmith-2.3.0/src/Statement.cpp Examining data/csmith-2.3.0/src/Bookkeeper.cpp Examining data/csmith-2.3.0/src/CoverageTestExtension.h Examining data/csmith-2.3.0/src/rand48/rand48.h Examining data/csmith-2.3.0/src/rand48/lrand48.c Examining data/csmith-2.3.0/src/rand48/_rand48.c Examining data/csmith-2.3.0/src/rand48/srand48.c Examining data/csmith-2.3.0/src/AbsProgramGenerator.h Examining data/csmith-2.3.0/src/DepthSpec.h Examining data/csmith-2.3.0/src/OutputMgr.h Examining data/csmith-2.3.0/src/FunctionInvocationUser.cpp Examining data/csmith-2.3.0/src/DFSOutputMgr.cpp Examining data/csmith-2.3.0/src/AbsRndNumGenerator.cpp Examining data/csmith-2.3.0/src/Expression.cpp Examining data/csmith-2.3.0/src/DFSRndNumGenerator.h Examining data/csmith-2.3.0/src/CompatibleChecker.h Examining data/csmith-2.3.0/src/DFSProgramGenerator.cpp Examining data/csmith-2.3.0/src/KleeExtension.h Examining data/csmith-2.3.0/src/DFSRndNumGenerator.cpp Examining data/csmith-2.3.0/src/FactMgr.h Examining data/csmith-2.3.0/src/ReducerOutputMgr.h Examining data/csmith-2.3.0/src/Expression.h Examining data/csmith-2.3.0/src/CommonMacros.h Examining data/csmith-2.3.0/src/ExpressionComma.h Examining data/csmith-2.3.0/src/FunctionInvocationUnary.h Examining data/csmith-2.3.0/src/VectorFilter.cpp Examining data/csmith-2.3.0/src/AbsProgramGenerator.cpp Examining data/csmith-2.3.0/src/ExpressionVariable.h Examining data/csmith-2.3.0/src/Probabilities.cpp Examining data/csmith-2.3.0/src/FunctionInvocationUser.h Examining data/csmith-2.3.0/src/Error.h Examining data/csmith-2.3.0/src/Variable.h Examining data/csmith-2.3.0/src/ExpressionVariable.cpp Examining data/csmith-2.3.0/src/Finalization.h Examining data/csmith-2.3.0/src/SimpleDeltaSequence.cpp Examining data/csmith-2.3.0/src/LinearSequence.h Examining data/csmith-2.3.0/src/MspFilters.cpp Examining data/csmith-2.3.0/src/ExpressionComma.cpp Examining data/csmith-2.3.0/src/VariableSelector.cpp Examining data/csmith-2.3.0/src/ExtensionMgr.cpp Examining data/csmith-2.3.0/src/FactUnion.cpp Examining data/csmith-2.3.0/src/CFGEdge.cpp Examining data/csmith-2.3.0/src/PartialExpander.cpp Examining data/csmith-2.3.0/src/Effect.cpp Examining data/csmith-2.3.0/src/StatementIf.h Examining data/csmith-2.3.0/src/FactUnion.h Examining data/csmith-2.3.0/src/ArrayVariable.h Examining data/csmith-2.3.0/src/RandomProgramGenerator.cpp Examining data/csmith-2.3.0/src/Sequence.cpp Examining data/csmith-2.3.0/src/CVQualifiers.cpp Examining data/csmith-2.3.0/src/DefaultRndNumGenerator.cpp Examining data/csmith-2.3.0/src/CGOptions.cpp Examining data/csmith-2.3.0/src/ExpressionAssign.cpp Examining data/csmith-2.3.0/src/DefaultProgramGenerator.h Examining data/csmith-2.3.0/src/StatementAssign.cpp Examining data/csmith-2.3.0/src/KleeExtension.cpp Examining data/csmith-2.3.0/src/ExpressionFuncall.h Examining data/csmith-2.3.0/src/StatementExpr.cpp Examining data/csmith-2.3.0/src/util.h Examining data/csmith-2.3.0/src/random.cpp Examining data/csmith-2.3.0/src/FunctionInvocation.cpp Examining data/csmith-2.3.0/src/Bookkeeper.h Examining data/csmith-2.3.0/src/StatementReturn.cpp Examining data/csmith-2.3.0/src/Block.cpp Examining data/csmith-2.3.0/src/RandomNumber.cpp Examining data/csmith-2.3.0/src/Constant.h Examining data/csmith-2.3.0/src/DefaultProgramGenerator.cpp Examining data/csmith-2.3.0/src/Common.h Examining data/csmith-2.3.0/src/Constant.cpp Examining data/csmith-2.3.0/src/FunctionInvocationUnary.cpp Examining data/csmith-2.3.0/src/StatementAssign.h Examining data/csmith-2.3.0/src/MspFilters.h Examining data/csmith-2.3.0/src/Lhs.cpp Examining data/csmith-2.3.0/src/StatementContinue.h Examining data/csmith-2.3.0/src/Variable.cpp Examining data/csmith-2.3.0/src/FactPointTo.cpp Examining data/csmith-2.3.0/src/CGContext.h Examining data/csmith-2.3.0/src/StatementFor.cpp Examining data/csmith-2.3.0/src/FactPointTo.h Examining data/csmith-2.3.0/src/CGContext.cpp Examining data/csmith-2.3.0/src/Lhs.h Examining data/csmith-2.3.0/src/CoverageTestExtension.cpp Examining data/csmith-2.3.0/src/StatementGoto.h Examining data/csmith-2.3.0/src/StatementArrayOp.cpp Examining data/csmith-2.3.0/src/Fact.cpp Examining data/csmith-2.3.0/src/Filter.h Examining data/csmith-2.3.0/src/random.h Examining data/csmith-2.3.0/src/StatementBreak.h Examining data/csmith-2.3.0/src/StatementContinue.cpp Examining data/csmith-2.3.0/src/Reducer.cpp Examining data/csmith-2.3.0/src/VectorFilter.h Examining data/csmith-2.3.0/src/Statement.h Examining data/csmith-2.3.0/src/AbsExtension.h Examining data/csmith-2.3.0/src/StringUtils.h Examining data/csmith-2.3.0/src/util.cpp Examining data/csmith-2.3.0/src/StatementArrayOp.h Examining data/csmith-2.3.0/src/StatementExpr.h Examining data/csmith-2.3.0/src/RandomNumber.h Examining data/csmith-2.3.0/src/Enumerator.h Examining data/csmith-2.3.0/src/platform.h Examining data/csmith-2.3.0/src/DFSProgramGenerator.h Examining data/csmith-2.3.0/src/Finalization.cpp Examining data/csmith-2.3.0/src/SplatExtension.h Examining data/csmith-2.3.0/src/Effect.h Examining data/csmith-2.3.0/src/FunctionInvocation.h Examining data/csmith-2.3.0/src/Filter.cpp Examining data/csmith-2.3.0/src/FactMgr.cpp Examining data/csmith-2.3.0/src/CrestExtension.cpp Examining data/csmith-2.3.0/src/ExtensionValue.cpp Examining data/csmith-2.3.0/src/Fact.h Examining data/csmith-2.3.0/src/DefaultOutputMgr.h Examining data/csmith-2.3.0/src/SafeOpFlags.cpp Examining data/csmith-2.3.0/src/PartialExpander.h Examining data/csmith-2.3.0/src/git_version.h Examining data/csmith-2.3.0/src/Block.h Examining data/csmith-2.3.0/src/DefaultRndNumGenerator.h Examining data/csmith-2.3.0/src/AbsExtension.cpp Examining data/csmith-2.3.0/src/ArrayVariable.cpp Examining data/csmith-2.3.0/src/ProbabilityTable.h Examining data/csmith-2.3.0/src/CompatibleChecker.cpp Examining data/csmith-2.3.0/src/SimpleDeltaSequence.h Examining data/csmith-2.3.0/src/ExpressionAssign.h Examining data/csmith-2.3.0/src/StatementGoto.cpp Examining data/csmith-2.3.0/src/VariableSelector.h Examining data/csmith-2.3.0/src/LinearSequence.cpp Examining data/csmith-2.3.0/src/OutputMgr.cpp Examining data/csmith-2.3.0/src/FunctionInvocationBinary.h Examining data/csmith-2.3.0/src/Type.h Examining data/csmith-2.3.0/src/DeltaMonitor.cpp Examining data/csmith-2.3.0/src/CVQualifiers.h Examining data/csmith-2.3.0/src/StatementBreak.cpp Examining data/csmith-2.3.0/src/AbsRndNumGenerator.h Examining data/csmith-2.3.0/src/ExpressionFuncall.cpp Examining data/csmith-2.3.0/src/SimpleDeltaRndNumGenerator.h Examining data/csmith-2.3.0/src/SequenceFactory.cpp Examining data/csmith-2.3.0/src/ExtensionMgr.h Examining data/csmith-2.3.0/src/CGOptions.h Examining data/csmith-2.3.0/src/platform.cpp FINAL RESULTS: data/csmith-2.3.0/runtime/csmith_minimal.h:34:12: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int printf (const char *, ...); data/csmith-2.3.0/runtime/platform_avr.h:59:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define printf(...) data/csmith-2.3.0/runtime/platform_avr.h:60:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define fprintf(...) data/csmith-2.3.0/runtime/platform_generic.h:37:12: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. extern int printf (const char *, ...); data/csmith-2.3.0/runtime/platform_msp430.h:59:9: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define printf(...) data/csmith-2.3.0/runtime/platform_msp430.h:60:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define fprintf(...) data/csmith-2.3.0/src/CGContext.cpp:585:39: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. CGContext::allow_const(Effect::Access access) const data/csmith-2.3.0/src/CGContext.cpp:587:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return access != Effect::WRITE; data/csmith-2.3.0/src/CGContext.h:152:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. bool allow_const(Effect::Access access) const; data/csmith-2.3.0/src/CVQualifiers.cpp:216:66: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. CVQualifiers::random_qualifiers(bool no_volatile, Effect::Access access, const CGContext &cg_context) const data/csmith-2.3.0/src/CVQualifiers.cpp:252:72: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. CVQualifiers::random_loose_qualifiers(bool no_volatile, Effect::Access access, const CGContext &cg_context) const data/csmith-2.3.0/src/CVQualifiers.cpp:285:63: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. CVQualifiers::random_qualifiers(const Type* t, Effect::Access access, data/csmith-2.3.0/src/CVQualifiers.cpp:288:30: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return random_qualifiers(t, access, cg_context, no_volatile, RegularConstProb, RegularVolatileProb); data/csmith-2.3.0/src/CVQualifiers.cpp:314:63: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. CVQualifiers::random_qualifiers(const Type* t, Effect::Access access, const CGContext &cg_context, bool no_volatile, data/csmith-2.3.0/src/CVQualifiers.cpp:354:19: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. bool const_ok = (access != Effect::WRITE); data/csmith-2.3.0/src/CVQualifiers.cpp:656:39: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. CVQualifiers::restrict(Effect::Access access, const CGContext& cg_context) data/csmith-2.3.0/src/CVQualifiers.h:60:31: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. void restrict(Effect::Access access, const CGContext& cg_context); data/csmith-2.3.0/src/CVQualifiers.h:69:66: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. CVQualifiers random_qualifiers(bool no_volatile, Effect::Access access, const CGContext &cg_context) const; data/csmith-2.3.0/src/CVQualifiers.h:70:72: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. CVQualifiers random_loose_qualifiers(bool no_volatile, Effect::Access access, const CGContext &cg_context) const; data/csmith-2.3.0/src/CVQualifiers.h:73:70: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static CVQualifiers random_qualifiers(const Type* t, Effect::Access access, data/csmith-2.3.0/src/CVQualifiers.h:75:70: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static CVQualifiers random_qualifiers(const Type* t, Effect::Access access, data/csmith-2.3.0/src/VariableSelector.cpp:236:88: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. VariableSelector::is_eligible_var(const Variable* var, int deref_level, Effect::Access access, const CGContext& cg_context) data/csmith-2.3.0/src/VariableSelector.cpp:303:136: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. VariableSelector::has_eligible_volatile_var(const vector<Variable *>& vars, const Type* type, const CVQualifiers* qfer, Effect::Access access, const CGContext& cg_context) data/csmith-2.3.0/src/VariableSelector.cpp:314:41: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (is_eligible_var(var, deref_level, access, cg_context) && var->is_volatile()) { data/csmith-2.3.0/src/VariableSelector.cpp:407:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. Effect::Access access, data/csmith-2.3.0/src/VariableSelector.cpp:427:46: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. has_eligible_volatile_var(vars, type, qfer, access, cg_context); data/csmith-2.3.0/src/VariableSelector.cpp:444:42: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (is_eligible_var((*i), deref_level, access, cg_context)) { data/csmith-2.3.0/src/VariableSelector.cpp:501:56: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. VariableSelector::create_and_initialize(Effect::Access access, const CGContext &cg_context, const Type* t, data/csmith-2.3.0/src/VariableSelector.cpp:511:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. init = make_init_value(access, cg_context, t, qfer, blk); data/csmith-2.3.0/src/VariableSelector.cpp:516:26: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. init = make_init_value(access, cg_context, t, qfer, blk); data/csmith-2.3.0/src/VariableSelector.cpp:531:52: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. VariableSelector::GenerateNewGlobal(Effect::Access access, const CGContext &cg_context, const Type* t, const CVQualifiers* qfer) data/csmith-2.3.0/src/VariableSelector.cpp:535:46: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ? CVQualifiers::random_qualifiers(t, access, cg_context, false) data/csmith-2.3.0/src/VariableSelector.cpp:540:40: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. Variable* var = create_and_initialize(access, cg_context, t, &var_qfer, 0, name); data/csmith-2.3.0/src/VariableSelector.cpp:559:60: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. VariableSelector::GenerateNewNonArrayGlobal(Effect::Access access, const CGContext &cg_context, const Type* t, const CVQualifiers* qfer) data/csmith-2.3.0/src/VariableSelector.cpp:563:46: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ? CVQualifiers::random_qualifiers(t, access, cg_context, false) data/csmith-2.3.0/src/VariableSelector.cpp:569:43: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. const Expression *init = make_init_value(access, cg_context, t, qfer, NULL); data/csmith-2.3.0/src/VariableSelector.cpp:587:61: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. VariableSelector::eager_create_global_struct(Effect::Access access, const CGContext &cg_context, data/csmith-2.3.0/src/VariableSelector.cpp:598:21: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. GenerateNewGlobal(access, cg_context, t, qfer); data/csmith-2.3.0/src/VariableSelector.cpp:604:22: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. GenerateNewGlobal(access, cg_context, t, &qfer1); data/csmith-2.3.0/src/VariableSelector.cpp:607:22: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. GenerateNewGlobal(access, cg_context, t, qfer); data/csmith-2.3.0/src/VariableSelector.cpp:614:32: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return choose_var(GlobalList, access, cg_context, type, qfer, mt, invalid_vars); data/csmith-2.3.0/src/VariableSelector.cpp:618:74: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. VariableSelector::eager_create_local_struct(Block &block, Effect::Access access, const CGContext &cg_context, data/csmith-2.3.0/src/VariableSelector.cpp:629:33: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. GenerateNewParentLocal(block, access, cg_context, t, qfer); data/csmith-2.3.0/src/VariableSelector.cpp:635:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. GenerateNewParentLocal(block, access, cg_context, t, &qfer1); data/csmith-2.3.0/src/VariableSelector.cpp:638:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. GenerateNewParentLocal(block, access, cg_context, t, qfer); data/csmith-2.3.0/src/VariableSelector.cpp:648:38: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return choose_var(block.local_vars, access, cg_context, type, qfer, mt, invalid_vars); data/csmith-2.3.0/src/VariableSelector.cpp:655:47: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. VariableSelector::SelectGlobal(Effect::Access access, const CGContext &cg_context, const Type* type, const CVQualifiers* qfer, eMatchType mt, const vector<const Variable*>& invalid_vars) data/csmith-2.3.0/src/VariableSelector.cpp:657:41: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. Variable* var = choose_var(GlobalList, access, cg_context, type, qfer, mt, invalid_vars); data/csmith-2.3.0/src/VariableSelector.cpp:661:55: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. var = VariableSelector::eager_create_global_struct(access, cg_context, type, qfer, mt, invalid_vars); data/csmith-2.3.0/src/VariableSelector.cpp:674:28: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return GenerateNewGlobal(access, cg_context, t, qfer); data/csmith-2.3.0/src/VariableSelector.cpp:818:50: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. VariableSelector::make_init_value(Effect::Access access, const CGContext &cg_context, const Type* t, const CVQualifiers* qf, Block* b) data/csmith-2.3.0/src/VariableSelector.cpp:843:26: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. var = choose_var(vars, access, cg_context, type, &qfer, eExact, dummy, true, true); data/csmith-2.3.0/src/VariableSelector.cpp:848:26: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. var = choose_var(vars, access, cg_context, type, &qfer, eExact, dummy, true); data/csmith-2.3.0/src/VariableSelector.cpp:859:71: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. CVQualifiers qfer_deref = qfer.random_loose_qualifiers(no_volatile, access, cg_context); data/csmith-2.3.0/src/VariableSelector.cpp:895:24: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. Effect::Access access, data/csmith-2.3.0/src/VariableSelector.cpp:904:28: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return GenerateNewGlobal(access, cg_context, t, qfer); data/csmith-2.3.0/src/VariableSelector.cpp:913:46: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ? CVQualifiers::random_qualifiers(t, access, cg_context, true) data/csmith-2.3.0/src/VariableSelector.cpp:916:20: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. var_qfer.restrict(access, cg_context); data/csmith-2.3.0/src/VariableSelector.cpp:920:40: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. Variable* var = create_and_initialize(access, cg_context, t, &var_qfer, blk, name); data/csmith-2.3.0/src/VariableSelector.cpp:966:52: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. VariableSelector::SelectParentLocal(Effect::Access access, data/csmith-2.3.0/src/VariableSelector.cpp:991:72: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. Variable *var = VariableSelector::eager_create_local_struct(*block, access, cg_context, type, qfer, mt, invalid_vars); data/csmith-2.3.0/src/VariableSelector.cpp:998:41: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return GenerateNewParentLocal(*block, access, cg_context, t, qfer); data/csmith-2.3.0/src/VariableSelector.cpp:1009:48: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. Variable* var = choose_var(block->local_vars, access, cg_context, t, qfer, mt, invalid_vars); data/csmith-2.3.0/src/VariableSelector.cpp:1014:62: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. var = VariableSelector::eager_create_local_struct(*block, access, cg_context, type, qfer, mt, invalid_vars); data/csmith-2.3.0/src/VariableSelector.cpp:1020:40: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. var = GenerateNewParentLocal(*block, access, cg_context, t, qfer); data/csmith-2.3.0/src/VariableSelector.cpp:1059:52: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. VariableSelector::SelectParentParam(Effect::Access access, data/csmith-2.3.0/src/VariableSelector.cpp:1068:28: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return SelectParentLocal(access, cg_context, type, qfer, mt, invalid_vars); data/csmith-2.3.0/src/VariableSelector.cpp:1069:43: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. Variable* var = choose_var(parent.param, access, cg_context, type, qfer, mt, invalid_vars); data/csmith-2.3.0/src/VariableSelector.cpp:1071:39: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. return var ? var : SelectParentLocal(access, cg_context, type, qfer, mt, invalid_vars); data/csmith-2.3.0/src/VariableSelector.cpp:1076:54: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. VariableSelector::GenerateNewVariable(Effect::Access access, data/csmith-2.3.0/src/VariableSelector.cpp:1099:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. var = GenerateNewGlobal(access, cg_context, t, qfer); data/csmith-2.3.0/src/VariableSelector.cpp:1116:54: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. var = GenerateNewParentLocal(*(func.stack[index]), access, cg_context, t, qfer); data/csmith-2.3.0/src/VariableSelector.cpp:1172:41: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. VariableSelector::select(Effect::Access access, data/csmith-2.3.0/src/VariableSelector.cpp:1192:22: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. var = SelectGlobal(access, cg_context, type, qfer, mt, invalid_vars); data/csmith-2.3.0/src/VariableSelector.cpp:1196:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. var = SelectParentLocal(access, cg_context, type, qfer, mt, invalid_vars); data/csmith-2.3.0/src/VariableSelector.cpp:1200:27: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. var = SelectParentParam(access, cg_context, type, qfer, mt, invalid_vars); data/csmith-2.3.0/src/VariableSelector.cpp:1205:29: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. var = GenerateNewVariable(access, cg_context, type, qfer); data/csmith-2.3.0/src/VariableSelector.cpp:1234:55: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. VariableSelector::select_deref_pointer(Effect::Access access, const CGContext &cg_context, const Type* type, const CVQualifiers* qfer, const vector<const Variable*>& invalid_vars) data/csmith-2.3.0/src/VariableSelector.cpp:1250:35: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. Variable* var = choose_var(vars, access, cg_context, type, qfer, eDereference, invalid_vars); data/csmith-2.3.0/src/VariableSelector.cpp:1260:48: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. ? CVQualifiers::random_qualifiers(ptr_type, access, cg_context, true) data/csmith-2.3.0/src/VariableSelector.cpp:1270:56: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. var = VariableSelector::eager_create_global_struct(access, cg_context, ptr_type, data/csmith-2.3.0/src/VariableSelector.cpp:1280:28: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. var = GenerateNewGlobal(access, cg_context, ptr_type, &ptr_qfer); data/csmith-2.3.0/src/VariableSelector.cpp:1285:73: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. Variable *var = VariableSelector::eager_create_local_struct(*block, access, data/csmith-2.3.0/src/VariableSelector.cpp:1295:41: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. var = GenerateNewParentLocal(*block, access, cg_context, ptr_type, &ptr_qfer); data/csmith-2.3.0/src/VariableSelector.cpp:1459:54: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. VariableSelector::select_must_use_var(Effect::Access access, CGContext &cg_context, const Type* type, const CVQualifiers* qfer) data/csmith-2.3.0/src/VariableSelector.h:68:41: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static Variable* select(Effect::Access access, const CGContext &cg_context, data/csmith-2.3.0/src/VariableSelector.h:75:70: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static Variable* choose_var(vector<Variable *> vars, Effect::Access access, data/csmith-2.3.0/src/VariableSelector.h:78:55: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static Variable *select_deref_pointer(Effect::Access access, const CGContext &cg_context, const Type* type, data/csmith-2.3.0/src/VariableSelector.h:84:52: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static Expression* make_init_value(Effect::Access access, const CGContext &cg_context, const Type* t, const CVQualifiers* qfer, Block* b); data/csmith-2.3.0/src/VariableSelector.h:86:60: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static const Variable* select_must_use_var(Effect::Access access, CGContext &cg_context, const Type* type, const CVQualifiers* qfer); data/csmith-2.3.0/src/VariableSelector.h:113:61: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static Variable* eager_create_global_struct(Effect::Access access, const CGContext &cg_context, data/csmith-2.3.0/src/VariableSelector.h:117:74: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static Variable* eager_create_local_struct(Block &block, Effect::Access access, const CGContext &cg_context, data/csmith-2.3.0/src/VariableSelector.h:121:47: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static Variable* SelectGlobal(Effect::Access access, const CGContext &cg_context, const Type* type, data/csmith-2.3.0/src/VariableSelector.h:124:52: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static Variable* SelectParentLocal(Effect::Access access, const CGContext &cg_context, const Type* type, data/csmith-2.3.0/src/VariableSelector.h:127:52: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static Variable* SelectParentParam(Effect::Access access, const CGContext &cg_context, const Type* type, data/csmith-2.3.0/src/VariableSelector.h:130:54: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static Variable* GenerateNewVariable(Effect::Access access, const CGContext &cg_context, const Type* type, const CVQualifiers* qfer); data/csmith-2.3.0/src/VariableSelector.h:132:52: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static Variable* GenerateNewGlobal(Effect::Access access, const CGContext &cg_context, const Type* t, const CVQualifiers* qfer); data/csmith-2.3.0/src/VariableSelector.h:134:60: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static Variable* GenerateNewNonArrayGlobal(Effect::Access access, const CGContext &cg_context, const Type* t, const CVQualifiers* qfer); data/csmith-2.3.0/src/VariableSelector.h:136:71: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static Variable* GenerateNewParentLocal(Block &block, Effect::Access access, const CGContext &cg_context, const Type* type, const CVQualifiers* qfer); data/csmith-2.3.0/src/VariableSelector.h:148:131: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static bool has_eligible_volatile_var(const vector<Variable *>& vars, const Type* type, const CVQualifiers* qfer, Effect::Access access, const CGContext& cg_context); data/csmith-2.3.0/src/VariableSelector.h:150:83: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static bool is_eligible_var(const Variable* var, int deref_level, Effect::Access access, const CGContext& cg_context); data/csmith-2.3.0/src/VariableSelector.h:152:57: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. static Variable * create_and_initialize(Effect::Access access, const CGContext &cg_context, const Type* t, data/csmith-2.3.0/src/AbsRndNumGenerator.cpp:49:14: [3] (random) lrand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. extern long lrand48(void); data/csmith-2.3.0/src/AbsRndNumGenerator.cpp:135:9: [3] (random) lrand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. return lrand48(); data/csmith-2.3.0/src/rand48/lrand48.c:19:1: [3] (random) lrand48: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. lrand48(void) data/csmith-2.3.0/runtime/random_inc.h:73:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __failed_checks[N_WRAP+1]; data/csmith-2.3.0/runtime/random_inc.h:74:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char __executed_checks[N_WRAP+1]; data/csmith-2.3.0/runtime/random_inc.h:109:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. void* memcpy(void* dest, const void* src, size_t count) { data/csmith-2.3.0/src/DefaultProgramGenerator.cpp:100:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ofile.open("wrapper.h"); data/csmith-2.3.0/src/CGOptions.cpp:351:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (line.substr(0, strlen(int_str)) == int_str) { data/csmith-2.3.0/src/CGOptions.cpp:352:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). string s = line.substr(strlen(int_str)); data/csmith-2.3.0/src/CGOptions.cpp:356:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (line.substr(0, strlen(ptr_str)) == ptr_str) { data/csmith-2.3.0/src/CGOptions.cpp:357:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). string s = line.substr(strlen(ptr_str)); data/csmith-2.3.0/src/Fact.cpp:126:19: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (fact->equal(*facts[i])) { data/csmith-2.3.0/src/Fact.cpp:193:27: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (new_fact->equal(*facts[i])) { data/csmith-2.3.0/src/Fact.h:85:15: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. virtual bool equal(const Fact& fact) const { return this == &fact; }; data/csmith-2.3.0/src/FactMgr.cpp:695:11: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (!f->equal(*prev_f)) { data/csmith-2.3.0/src/FactMgr.cpp:717:12: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (!f->equal(*prev_f)) { data/csmith-2.3.0/src/FactPointTo.cpp:565:14: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. FactPointTo::equal(const Fact& f) const data/csmith-2.3.0/src/FactPointTo.h:90:15: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. virtual bool equal(const Fact& fact) const; data/csmith-2.3.0/src/FactUnion.cpp:205:12: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. FactUnion::equal(const Fact& f) const data/csmith-2.3.0/src/FactUnion.cpp:266:7: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (equal(fu)) return true; data/csmith-2.3.0/src/FactUnion.h:71:15: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. virtual bool equal(const Fact& fact) const; data/csmith-2.3.0/src/StatementArrayOp.cpp:138:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read); data/csmith-2.3.0/src/StatementFor.cpp:183:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). assert(read); ANALYSIS SUMMARY: Hits = 125 Lines analyzed = 43932 in approximately 0.94 seconds (46531 lines/second) Physical Source Lines of Code (SLOC) = 29353 Hits@level = [0] 24 [1] 16 [2] 4 [3] 3 [4] 102 [5] 0 Hits@level+ = [0+] 149 [1+] 125 [2+] 109 [3+] 105 [4+] 102 [5+] 0 Hits/KSLOC@level+ = [0+] 5.07614 [1+] 4.25851 [2+] 3.71342 [3+] 3.57715 [4+] 3.47494 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.