Page MenuHomePhabricator

[OpenMP][OMPT] Add two missing nullpointer checks in ompt-multiplex.h
AcceptedPublic

Authored by protze.joachim on Oct 29 2021, 4:58 AM.

Details

Reviewers
hbae
jdoerfert
Summary

In the functions ompt_multiplex_get_own_ompt_data
and ompt_multiplex_get_client_ompt_data in addition to
data being NULL, also the void pointer field "ptr" of
"data" could be NULL, leading to a subsequent
segfault.
This patch add the corresponding checks.

Patch prepared by Semih Burak

Diff Detail

Event Timeline

protze.joachim created this revision.Oct 29 2021, 4:58 AM
protze.joachim requested review of this revision.Oct 29 2021, 4:58 AM
This revision is now accepted and ready to land.Oct 29 2021, 12:44 PM