Skip to content

Commit

Permalink
Untrusted is a synonym of tainted.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Apr 10, 2016
1 parent 3b74b1d commit beb7f34
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
6 changes: 0 additions & 6 deletions actions/rubinius/pack_actions.rl
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@

action string_append {
if(CBOOL(string_value->tainted_p(state))) tainted = true;
if(CBOOL(string_value->untrusted_p(state))) untrusted = true;
native_int size = string_value->byte_size();
if(rest) count = size;
if(count <= size) {
Expand Down Expand Up @@ -337,11 +336,6 @@
tainted = false;
}

if(untrusted) {
result->untrust(state);
untrusted = false;
}

return result;
}
}%%
2 changes: 0 additions & 2 deletions actions/rubinius/pack_code.rl
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,6 @@ namespace rubinius {
native_int stop = 0;
bool rest UNUSED = false;
bool tainted UNUSED = false;
bool untrusted UNUSED = false;
bool ascii_encoding = false;
bool utf8_encoding = false;
bool string_encoding = false;
Expand All @@ -655,7 +654,6 @@ namespace rubinius {

if(directives->byte_size() == 0) ascii_encoding = true;
if(CBOOL(directives->tainted_p(state))) tainted = true;
if(CBOOL(directives->untrusted_p(state))) untrusted = true;
%%{

machine pack;
Expand Down

0 comments on commit beb7f34

Please sign in to comment.