summaryrefslogtreecommitdiffstats
path: root/command.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-06-17 22:44:23 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-06-17 23:04:46 +0200
commitf7c5008f2555ee220dadf0443fb005744e78a24a (patch)
tree4200a53324af1bc54cc376daa9db29076dd4a16e /command.py
parentd0715a400fff796be61b37404d6527e03092c0ad (diff)
downloadclufter-f7c5008f2555ee220dadf0443fb005744e78a24a.tar.gz
clufter-f7c5008f2555ee220dadf0443fb005744e78a24a.tar.xz
clufter-f7c5008f2555ee220dadf0443fb005744e78a24a.zip
command_context: prevent unexpected tainting of mutables
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'command.py')
-rw-r--r--command.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/command.py b/command.py
index 92420d5..a4dadd2 100644
--- a/command.py
+++ b/command.py
@@ -381,7 +381,8 @@ class Command(object):
if flt.__class__.name in cmd_ctxt['filter_noop']:
ret = in_obj
else:
- ret = flt(in_obj, flt_ctxt)
+ with cmd_ctxt.prevented_taint():
+ ret = flt(in_obj, flt_ctxt)
flt_ctxt['out'] = ret
if flt not in terminals or not filter_backtrack[flt]:
continue