oneapi-src / oneapi-src/unified-runtime
Add support for detecting use-after-free in the validation layer (for all APIs)
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 57
- Forks
- 120
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 1
Description
The existing validation layer detects handle leaks and incorrect use of get/retain/release APIs for handle lifetime management. It's only capable of detecting use-after-free if it happens to be in one of the lifetime management calls.
Given the existing implementation that already tracks handles, the validation layer should be extended to also detect use-after-free and, in general, use of invalid handles across the entire API.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing validation layer and its handle-tracking implementation, then trace how get, retain, and release calls validate handle lifetime. Determine how validation is applied across the APIs; done means use-after-free and other invalid-handle uses are detected beyond lifetime-management calls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100