intel / intel/llvm

Potential UB in diagnostics for LTO mode.

Open
#21,282 0 comments 0 reactions 1 assignee Claimed by @srividya-sundaram View on GitHub
confirmed
Dominant language
LLVM
Stars
1.5k
Forks
854
Avg merge
3d 17h
Merged PRs (30d)
137

Description

https://github.com/intel/llvm/blob/2705b67a216fda7b32648a2f42d3c2d69d4b6fe3/clang/lib/Driver/ToolChains/Clang.cpp#L6000-L6023

The pattern used in this code doesn't the pointer returned by `Args.getLastArg(options::OPT_foffload_lto, options::OPT_foffload_lto_EQ)` before dereferencing. This can be source of UB.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.