Skip to content

[SYCL][Coverity] Fix invalid iterator coverity hit #17944

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

ianayl
Copy link
Contributor

@ianayl ianayl commented Apr 9, 2025

In ProgramManager::removeImages, we cleanup our KernelName2KernelID mapping, before using that exact mapping retrieve KernelIDs in order to clean up our KernelIDs2BinImage mapping. This PR cleans up m_KernelID2BinImage mapping before cleaning up m_KernelName2KernelIDs maping.

This is inteded to fix a hit raised by Coverity.

@ianayl ianayl temporarily deployed to WindowsCILock April 9, 2025 20:43 — with GitHub Actions Inactive
@ianayl ianayl temporarily deployed to WindowsCILock April 9, 2025 21:07 — with GitHub Actions Inactive
@ianayl ianayl temporarily deployed to WindowsCILock April 9, 2025 21:07 — with GitHub Actions Inactive
@ianayl ianayl marked this pull request as ready for review April 10, 2025 15:19
@ianayl ianayl requested a review from a team as a code owner April 10, 2025 15:19
@ianayl ianayl requested a review from cperkinsintel April 10, 2025 15:19
@ianayl
Copy link
Contributor Author

ianayl commented Apr 11, 2025

@intel/llvm-gatekeepers PR is ready, thanks in advance for merge!

@againull againull merged commit 06290b2 into intel:sycl Apr 11, 2025
24 checks passed
KornevNikita pushed a commit that referenced this pull request May 27, 2025
In `ProgramManager::removeImages`, we cleanup our KernelName2KernelID
mapping, before using that exact mapping retrieve KernelIDs in order to
clean up our KernelIDs2BinImage mapping. This PR cleans up
`m_KernelID2BinImage` mapping before cleaning up
`m_KernelName2KernelIDs` maping.

This is inteded to fix a hit raised by Coverity.
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.

3 participants