Skip to content

46 ci integrate coretrace stack analyzer into GitHub actions sarif code scanning#47

Merged
SizzleUnrlsd merged 46 commits intomainfrom
46-ci-integrate-coretrace-stack-analyzer-into-github-actions-sarif-code-scanning
Feb 24, 2026
Merged

46 ci integrate coretrace stack analyzer into GitHub actions sarif code scanning#47
SizzleUnrlsd merged 46 commits intomainfrom
46-ci-integrate-coretrace-stack-analyzer-into-github-actions-sarif-code-scanning

Conversation

@SizzleUnrlsd
Copy link
Copy Markdown
Contributor

No description provided.

@github-advanced-security
Copy link
Copy Markdown

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

}

return false;
}

Check warning

Code scanning / coretrace-stack-analyzer

ResourceLifetime.IncompleteInterproc Warning

[ !!Warn ] inter-procedural resource analysis incomplete: handle 'visited' may be acquired by an unmodeled/external callee before release ↳ no matching resource model rule or cross-TU summary was found for at least one related call ↳ include callee definitions in inputs or extend --resource-model to improve precision
}
}
}
}

Check warning

Code scanning / coretrace-stack-analyzer

ResourceLifetime.IncompleteInterproc Warning

[ !!Warn ] inter-procedural resource analysis incomplete: handle 'localSlotsContainingTrackedAddr' may be acquired by an unmodeled/external callee before release ↳ no matching resource model rule or cross-TU summary was found for at least one related call ↳ include callee definitions in inputs or extend --resource-model to improve precision
}

return sig;
}

Check warning

Code scanning / coretrace-stack-analyzer

ResourceLifetime.IncompleteInterproc Warning

[ !!Warn ] inter-procedural resource analysis incomplete: handle 'seen' may be acquired by an unmodeled/external callee before release ↳ no matching resource model rule or cross-TU summary was found for at least one related call ↳ include callee definitions in inputs or extend --resource-model to improve precision
MemMove
};
MemKind kind = MemKind::None;
auto classifyByName = [&](StringRef calleeName) -> MemKind

Check warning

Code scanning / coretrace-stack-analyzer

UninitializedLocalVariable Warning

[ !!Warn ] local variable 'classifyByName' is never initialized ↳ declared without initializer and no definite write was found in this function

bool sawUserDebugVar = false;
bool sawArtificialDebugVar = false;
for (DbgDeclareInst* declareInst : findDbgDeclares(const_cast<AllocaInst*>(AI)))

Check warning

Code scanning / coretrace-stack-analyzer

ResourceLifetime.IncompleteInterproc Warning

[ !!Warn ] inter-procedural resource analysis incomplete: handle 'ref.tmp' may be acquired by an unmodeled/external callee before release ↳ no matching resource model rule or cross-TU summary was found for at least one related call ↳ include callee definitions in inputs or extend --resource-model to improve precision
}

static void
collectParamEscapeFacts(llvm::Function& F, llvm::Argument& arg,

Check notice

Code scanning / coretrace-stack-analyzer

ConstParameterNotModified.Reference Note

[ !Info! ] ConstParameterNotModified.Reference: parameter 'arg' in function 'ctrace::stack::analysis::(anonymous namespace)::collectParamEscapeFacts(llvm::Function&, llvm::Argument&, std::function<bool (llvm::Function const&)> const&, ctrace::stack::analysis::IndirectTargetResolver&, std::unordered_map<llvm::Function const*, unsigned int, std::hash<llvm::Function const*>, std::equal_to<llvm::Function const*>, std::allocator<std::pair<llvm::Function const* const, unsigned int> > > const&, ctrace::stack::analysis::StackEscapeModel const&, ctrace::stack::analysis::StackEscapeRuleMatcher&, ctrace::stack::analysis::ParamEscapeFacts&)' is never used to modify the referred object ↳ current type: Argument &arg ↳ suggested type: const Argument &arg
}

static void
collectParamEscapeFacts(llvm::Function& F, llvm::Argument& arg,

Check notice

Code scanning / coretrace-stack-analyzer

ConstParameterNotModified.Reference Note

[ !Info! ] ConstParameterNotModified.Reference: parameter 'F' in function 'ctrace::stack::analysis::(anonymous namespace)::collectParamEscapeFacts(llvm::Function&, llvm::Argument&, std::function<bool (llvm::Function const&)> const&, ctrace::stack::analysis::IndirectTargetResolver&, std::unordered_map<llvm::Function const*, unsigned int, std::hash<llvm::Function const*>, std::equal_to<llvm::Function const*>, std::allocator<std::pair<llvm::Function const* const, unsigned int> > > const&, ctrace::stack::analysis::StackEscapeModel const&, ctrace::stack::analysis::StackEscapeRuleMatcher&, ctrace::stack::analysis::ParamEscapeFacts&)' is never used to modify the referred object ↳ current type: Function &F ↳ suggested type: const Function &F
const ReturnedPointerArgAliasMap& returnedArgAliases,
unsigned depth = 0)
{
if (!ptr)

Check notice

Code scanning / coretrace-stack-analyzer

None Note

[ !Info! ] recursive or mutually recursive function detected
}

template <typename IsRecursiveCallee>
static bool detectInfiniteRecursionByDominance(llvm::Function& F,

Check notice

Code scanning / coretrace-stack-analyzer

ConstParameterNotModified.ReferenceRvaluePreferValue Note

[ !Info! ] ConstParameterNotModified.ReferenceRvaluePreferValue: parameter 'isRecursiveCallee' in function 'bool ctrace::stack::analysis::(anonymous namespace)::detectInfiniteRecursionByDominance<ctrace::stack::analysis::detectInfiniteRecursionComponent(std::vector<llvm::Function const*, std::allocator<llvm::Function const*> > const&)::$_0>(llvm::Function&, ctrace::stack::analysis::detectInfiniteRecursionComponent(std::vector<llvm::Function const*, std::allocator<llvm::Function const*> > const&)::$_0&&)' is an rvalue reference and is never used to modify the referred object ↳ consider passing by value (<anonymous type> isRecursiveCallee) or const reference (const <anonymous type> &isRecursiveCallee) ↳ current type: <anonymous type> &&isRecursiveCallee
}

template <typename IsRecursiveCallee>
static bool detectInfiniteRecursionByDominance(llvm::Function& F,

Check notice

Code scanning / coretrace-stack-analyzer

ConstParameterNotModified.ReferenceRvaluePreferValue Note

[ !Info! ] ConstParameterNotModified.ReferenceRvaluePreferValue: parameter 'isRecursiveCallee' in function 'bool ctrace::stack::analysis::(anonymous namespace)::detectInfiniteRecursionByDominance<ctrace::stack::analysis::detectInfiniteSelfRecursion(llvm::Function&)::$_0>(llvm::Function&, ctrace::stack::analysis::detectInfiniteSelfRecursion(llvm::Function&)::$_0&&)' is an rvalue reference and is never used to modify the referred object ↳ consider passing by value (<anonymous type> isRecursiveCallee) or const reference (const <anonymous type> &isRecursiveCallee) ↳ current type: <anonymous type> &&isRecursiveCallee
@SizzleUnrlsd SizzleUnrlsd merged commit ccc2431 into main Feb 24, 2026
9 checks passed
@SizzleUnrlsd SizzleUnrlsd deleted the 46-ci-integrate-coretrace-stack-analyzer-into-github-actions-sarif-code-scanning branch February 24, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: Integrate coretrace-stack-analyzer into GitHub Actions (SARIF + Code Scanning)

1 participant