Skip to content

Potential nulltpr dereference in graph_impl #16332

@AlexeySachkov

Description

@AlexeySachkov

if (NewEvent != nullptr) {
NewEvent->setSubmissionTime();
NewEvent->setHostEnqueueTime();
}
ur_result_t Res =
Queue->getAdapter()
->call_nocheck<
sycl::detail::UrApiKind::urCommandBufferEnqueueExp>(
CommandBuffer, Queue->getHandleRef(), 0, nullptr, &UREvent);
NewEvent->setHandle(UREvent);

if on 1014 implies that NewEvent could be nullptr. However, we directly dereference it on 1023.

Either 1023 dereference should be made conditional, or if on 1014 should be turned into an assertion.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions