rapid7/metasploit-framework — pull request #1674 by scriptjunkie (2013-03-27 00:51:10+00:00)
Title: Use payload not generate in payload modules

This effectively makes any changes to shellcode before passing to upstream
classes instead of after. PrependMigrate had been failing because it was
miscalculating payload sizes. This will fix that issue.