ROCclr icon indicating copy to clipboard operation
ROCclr copied to clipboard

`kind` may be used uninitialized if preceding `amd::Comgr::index_list_metadata` call fails.

Open Artem-B opened this issue 5 years ago • 1 comments

kind may be used uninitialized if preceding amd::Comgr::index_list_metadata call fails.

https://github.com/ROCm-Developer-Tools/ROCclr/blob/ca35d38e98c3bf91da23707820060d1f68dd6e95/device/devkernel.cpp#L1313

  amd_comgr_metadata_kind_t kind;
  status = amd::Comgr::index_list_metadata(argsMeta, i, &argsNode);
  if (status == AMD_COMGR_STATUS_SUCCESS) {
    hsaArgsNode = true;
    // kind is set only if status==success.  ----->   vvvv
    status = amd::Comgr::get_metadata_kind(argsNode, &kind); 
  }
  if (kind != AMD_COMGR_METADATA_KIND_MAP) { // <-- kind may not be initialized.

Artem-B avatar Apr 22 '20 21:04 Artem-B

We received the info, we are working on it.

kjayapra-amd avatar May 20 '20 19:05 kjayapra-amd