Skip to content

Commit

Permalink
Fix enumeration gadgets with unique option (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
takubokudori authored Mar 9, 2023
1 parent e1f7daf commit 7d8e61f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rp/toolbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ std::vector<uint8_t> string_to_hex(const std::string &hex) {
GadgetSet only_unique_gadgets(GadgetMultiset &list_gadgets) {
GadgetSet unique_gadgets;
// Now we have a list of gadget, cool, but we want to keep only the unique!
for (size_t i = 0; i < list_gadgets.size(); i++) {
while (!list_gadgets.empty()) {
auto node = list_gadgets.extract(list_gadgets.begin());
const uint64_t first_offset = node.value().get_first_offset();
const uint64_t first_va_section = node.value().get_first_va_section();
Expand Down

0 comments on commit 7d8e61f

Please sign in to comment.