SWDEV-500201 - UUID deduction logic ends up accessing empty map/nullptr on Phoenix2 APU as it finds GFX-XX which is ignored in logic.

Change-Id: Ieed60dc4665d2b87ea994834457b026a3f58cb49
Dieser Commit ist enthalten in:
Jaydeep Patel
2024-12-02 12:32:50 +00:00
committet von Rakesh Roy
Ursprung 22485fc93f
Commit 9be5380d40
+6 -4
Datei anzeigen
@@ -459,10 +459,12 @@ void ChkUUID() {
#else
uuid_map = getUUIDlistWithoutRocmInfo();
#endif
std::string uuid = uuid_map[0].data();
std::string t_uuid = uuid.substr(4, 19);
if (memcmp(d_uuid.bytes, t_uuid.c_str(), 16) == 0) {
REQUIRE(true);
if (!uuid_map.empty()) {
std::string uuid = uuid_map[0].data();
std::string t_uuid = uuid.substr(4, 19);
if (memcmp(d_uuid.bytes, t_uuid.c_str(), 16) == 0) {
REQUIRE(true);
}
}
}