Skip to content

Instantly share code, notes, and snippets.

@febuiles
Created December 17, 2008 23:21
Show Gist options
  • Select an option

  • Save febuiles/37290 to your computer and use it in GitHub Desktop.

Select an option

Save febuiles/37290 to your computer and use it in GitHub Desktop.
it "returns a tainted string when the format is tainted" do
["abcd", 0x20].pack("A3C".taint).tainted?.should be_true
end
it "returns a tainted string when the format is tainted even if the given format is empty" do
["abcd", 0x20].pack("".taint).tainted?.should be_true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment