Skip to content

[SYCL] Fix Coverity issues in SYCLBIN image validation - #23646

Draft
sarnex wants to merge 1 commit into
intel:syclfrom
sarnex:offcov
Draft

sarnex wants to merge 1 commit into
intel:syclfrom
sarnex:offcov

Conversation

@sarnex

@sarnex sarnex commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

We shouldn't add 64-bit potentially large numbers to prevent overflow. Rework the checks and add some new ones suggested by an LLM.

CMPLRLLVM-73559

Signed-off-by: Nick Sarnie <nick.sarnie@intel.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AMHeader->MetadataOffset, AMHeader->MetadataSize);

// Read the IR modules of the current abstract module.
if (static_cast<uint64_t>(AMHeader->IRModuleOffset) +

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

addition here and in the next diff are fine because these fields are 32-bit

This branch has not been deployed

No deployments
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.

1 participant