amdsmi icon indicating copy to clipboard operation
amdsmi copied to clipboard

Fix ASAN issue in DiscoverAmdgpuDevices

Open xw285cornell opened this issue 1 year ago • 0 comments

I ran a test that exercised this code in dev mode and ASAN found a memory access issue due to the iterator returned by lower_bound being dereferenced unconditionally. I believe the right fix is to check if the iterator is within the map and if not go to the else branch

xw285cornell avatar Jul 17 '24 04:07 xw285cornell