Land #4976, @wchen-r7's Egghunter undefined esize fix

bug/bundler_fix
Spencer McIntyre 2015-03-21 13:34:37 -04:00
commit 9f176cab43
No known key found for this signature in database
GPG Key ID: C00D6B6AA5E15412
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ class Egghunter
startreg = opts[:startreg] startreg = opts[:startreg]
searchforward = opts[:searchforward] searchforward = opts[:searchforward]
raise RuntimeError, "Invalid egg string! Need #{esize} bytes." if opts[:eggtag].length != 4 raise RuntimeError, "Invalid egg string! Need 4 bytes." if opts[:eggtag].length != 4
marker = "0x%x" % opts[:eggtag].unpack('V').first marker = "0x%x" % opts[:eggtag].unpack('V').first
checksum = checksum_stub(payload, badchars, opts) checksum = checksum_stub(payload, badchars, opts)