Skip to content

use stable sort to support ruby >= 2.5#39

Closed
jmartin-tech wants to merge 4 commits intojjyg:masterfrom
rapid7:ruby_2_5_compat
Closed

use stable sort to support ruby >= 2.5#39
jmartin-tech wants to merge 4 commits intojjyg:masterfrom
rapid7:ruby_2_5_compat

Conversation

@jmartin-tech
Copy link
Copy Markdown

Due to changes in quicksort implementaions available in the
revised compiler for used for windows on ruby >= 2.5 we need
to ensure the sort it stable for intructions when selecting during
encode.

busterb and others added 2 commits April 5, 2019 11:26
Due to changes in quicksort implementaions available in the
revised compiler for used for windows on ruby >= 2.5 we need
to ensure the sort it stable for intructions when selecting during
encode.
busterb added a commit to rapid7/metasploit-framework that referenced this pull request Apr 8, 2019
msjenkins-r7 pushed a commit to rapid7/metasploit-framework that referenced this pull request Apr 8, 2019
@jmartin-tech
Copy link
Copy Markdown
Author

@rapid7 has released this into rubygems as 1.0.4 to fix the issue on windows with ruby >= 2.5.

@egypt, @jjyg, happy to co-ordinate on better release procedures if you would like make this simpler.

@busterb
Copy link
Copy Markdown
Contributor

busterb commented Aug 22, 2019

Howdy, anything we can do to help move this into the upstream sources?

@busterb
Copy link
Copy Markdown
Contributor

busterb commented Aug 22, 2019

Note that because the sort routine changed, metasm selected a different encoding by default. This seemed to break some shellcode generated inside of Metasploit, but also possibly pointed to some bad alternate encodings in metasm as well. We may be able to resurrect the affected code and track that down as well.

@jmartin-tech
Copy link
Copy Markdown
Author

Can this get merged?

@jjyg
Copy link
Copy Markdown
Owner

jjyg commented Mar 5, 2021

Thanks for this report, this is fixed in db7cc60 and 2b2ac40

@jjyg jjyg closed this Mar 5, 2021
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.

3 participants