Created
April 19, 2016 04:32
-
-
Save gr33n7007h/86b36ecb2408d9d2eb76ba43df94412b to your computer and use it in GitHub Desktop.
Max out memory :P
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'fiddle' | |
include Fiddle | |
ma = Function.new(Handle.new(nil)['malloc'], [TYPE_SIZE_T], TYPE_VOIDP) | |
loop { ma.call(0xffffff) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment