Skip to content

Commit

Permalink
added one more suffix letter to dummy struct name
Browse files Browse the repository at this point in the history
  • Loading branch information
srgblv committed Jan 15, 2025
1 parent ee81b25 commit cb9af24
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/hrtng.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1981,13 +1981,19 @@ qstring dummy_struct_name(size_t size, const char* sprefix)
name.sprnt("%s%X", dummy_struct_prefix.c_str(), size);
else
name = dummy_struct_prefix;
qstring basename = name;
for (char i = 'z'; i > 'f'; i--) {
if (get_named_type_tid(name.c_str()) == BADADDR)
break;
name = basename;
name.cat_sprnt("%c", i);
qstring bn = name;
for (char j = 'z'; j > 'f'; j--) {
qstring basename = name;
for (char i = 'z'; i > 'f'; i--) {
if (get_named_type_tid(name.c_str()) == BADADDR)
return name;
name = basename;
name.cat_sprnt("%c", i);
}
name = bn;
name.cat_sprnt("%c", j);
}
QASSERT(100110, !"oops");
return name;
}

Expand Down Expand Up @@ -4495,7 +4501,7 @@ plugmod_t*
addon.producer = "Sergey Belov and Milan Bohacek, Rolf Rolles, Takahiro Haruyama," \
" Karthik Selvaraj, Ali Rahbar, Ali Pezeshk, Elias Bachaalany, Markus Gaasedelen";
addon.url = "https://github.com/KasperskyLab/hrtng";
addon.version = "1.1.18";
addon.version = "1.1.19";
register_addon(&addon);

return PLUGIN_KEEP;
Expand Down

0 comments on commit cb9af24

Please sign in to comment.