Update lib/rocprofiler-sdk/hsa/queue.cpp (#788)

- fix heap-use-after-free
이 커밋은 다음에 포함됨:
Jonathan R. Madsen
2024-04-18 00:05:55 -05:00
커밋한 사람 GitHub
부모 81afb310ff
커밋 b7b2c294e0
+6
파일 보기
@@ -200,6 +200,12 @@ WriteInterceptor(const void* packets,
void* data,
hsa_amd_queue_intercept_packet_writer writer)
{
if(registration::get_fini_status() > 0)
{
writer(packets, pkt_count);
return;
}
using callback_record_t = Queue::queue_info_session_t::callback_record_t;
// unique sequence id for the dispatch