Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Conversation

@rafbiels
Copy link
Contributor

@rafbiels rafbiels commented May 6, 2025

Fix incorrect dereference and assignment causing a segfault. Also use the templated malloc_device to avoid C-style casting and make the code clearer.

The code creates an uninitialised pointer and intends to assign a value to this pointer (location of newly allocated memory). However, it was previously trying to assign the value to the pointed-to location not the pointer itself, hence it was dereferencing the uninitialised pointer.

Fix incorrect dereference and assignment causing a segfault.
@ghost
Copy link

ghost commented May 6, 2025

Greetings @rafbiels , I will take a look at this pull request and test it out internally. I will let you know if it is good to merge.

@ghost
Copy link

ghost commented May 8, 2025

Internal testing looks good, merging the PR

@ghost ghost merged commit 2b14791 into oneapi-src:main May 8, 2025
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant