Commit 517761d
authored
[SYCL] Fix use-after-free for MockHandler::getKernelName() (#18801)
In current implementation, std::string is returned from getKernelName().
For preview, caller of getKernelName() creates std::string_view from the
returned temporary string. This sting_view is used after the temporary
string is destroyed. In the fix for preview std::string_view is
returned, that points to same kernel name as handler::MKernel.1 parent 911dedf commit 517761d
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
257 | 259 | | |
258 | 260 | | |
259 | 261 | | |
| |||
0 commit comments