-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[L0] Check if buffer is freed before allowing a zehandle to be read
- Avoid use after free of buffers by tracking if a buffer has already been called with free() and verify that the parent of a sub buffer has not already been released before attempting to get ze handles from the parent. - In either case, the ze handle returned will be a nullptr along with the UR error UR_RESULT_ERROR_INVALID_NULL_HANDLE Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
- Loading branch information
Showing
2 changed files
with
34 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters