Skip to content

Instantly share code, notes, and snippets.

@BanzaiMan
Created December 27, 2009 06:17
Show Gist options
  • Select an option

  • Save BanzaiMan/264174 to your computer and use it in GitHub Desktop.

Select an option

Save BanzaiMan/264174 to your computer and use it in GitHub Desktop.
surfboard:~$ ruby1.9 -ve 'a=5.0; a.taint; p d=Marshal.dump(a);p Marshal.load(d).tainted?'
ruby 1.9.2dev (2009-12-25 trunk 26179) [x86_64-darwin10.2.0]
"\x04\bf\x065"
true
surfboard:~$ ruby1.9 -ve 'a=5.0; p d=Marshal.dump(a);p Marshal.load(d).tainted?'
ruby 1.9.2dev (2009-12-25 trunk 26179) [x86_64-darwin10.2.0]
"\x04\bf\x065"
false
surfboard:~$ ruby1.9 -ve 'p a=Marshal.load("\x04\bf\x065"); p a.tainted?'
ruby 1.9.2dev (2009-12-25 trunk 26179) [x86_64-darwin10.2.0]
5.0
false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment