Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix enumeration gadgets with unique option #51

Merged
merged 1 commit into from
Mar 9, 2023
Merged

Fix enumeration gadgets with unique option #51

merged 1 commit into from
Mar 9, 2023

Conversation

takubokudori
Copy link
Contributor

When rp++ is run with the --unique option, only half of all gadgets are used and the rest are ignored.

list_gadgets.extract() used in the for statement will remove the extracted element from the list_gadgets.
Therefore, list_gadgets.size() is decremented on each loop, and the for statement is only executed list_gadgets.size()/2 times.

This PR fixes this issue.

@0vercl0k
Copy link
Owner

0vercl0k commented Mar 8, 2023

Oh man, this is embarassing 🤦🏽‍♂️Thank you for root-causing and fixing this, will land this tonight / tag a new version 🙏🏽🙏🏽

Cheers

@0vercl0k 0vercl0k merged commit 7d8e61f into 0vercl0k:master Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants