Update lib/rocprofiler-sdk/hsa/queue.cpp (#788)
- fix heap-use-after-free
Este commit está contenido en:
cometido por
GitHub
padre
81afb310ff
commit
b7b2c294e0
@@ -200,6 +200,12 @@ WriteInterceptor(const void* packets,
|
|||||||
void* data,
|
void* data,
|
||||||
hsa_amd_queue_intercept_packet_writer writer)
|
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;
|
using callback_record_t = Queue::queue_info_session_t::callback_record_t;
|
||||||
|
|
||||||
// unique sequence id for the dispatch
|
// unique sequence id for the dispatch
|
||||||
|
|||||||
Referencia en una nueva incidencia
Block a user