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

regsort handle the case when no cycle and xchg=False incorrectly. #847

Closed
peter50216 opened this issue Jan 12, 2017 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@peter50216
Copy link
Contributor

>>> from pwn import *
>>> regsort({'a': 'b', 'b': 'c'}, ['a', 'b', 'c'])
[('mov', 'a', 'b'), ('mov', 'b', 'c')]
>>> regsort({'a': 'b', 'b': 'c'}, ['a', 'b', 'c'], xchg=False)
[('mov', 'b', 'c'), ('mov', 'a', 'b')]

Both output should be same.

@zachriggle
Copy link
Member

zachriggle commented Jan 12, 2017 via email

@peter50216
Copy link
Contributor Author

For the reports by me or @david942j, it's because we're trying to write pwntools for Ruby :D
(https://github.com/peter50216/pwntools-ruby)

@zachriggle
Copy link
Member

Fixed via #852

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants