From afee23c8ac1ff92e3d53232de7fef0a27a964c89 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Tue, 16 Jul 2013 17:37:39 +0200 Subject: [PATCH] Do not pass uncontrolled strings to sprintf --- lib/mutant/reporter/cli/printer/mutation.rb | 2 +- lib/mutant/reporter/cli/printer/subject.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mutant/reporter/cli/printer/mutation.rb b/lib/mutant/reporter/cli/printer/mutation.rb index e435e0da..7c3c3f24 100644 --- a/lib/mutant/reporter/cli/printer/mutation.rb +++ b/lib/mutant/reporter/cli/printer/mutation.rb @@ -35,7 +35,7 @@ module Mutant # @api private # def run - status(mutation.identification) + status('%s', mutation.identification) puts(details) end diff --git a/lib/mutant/reporter/cli/printer/subject.rb b/lib/mutant/reporter/cli/printer/subject.rb index 10c41e8f..bc9f63b0 100644 --- a/lib/mutant/reporter/cli/printer/subject.rb +++ b/lib/mutant/reporter/cli/printer/subject.rb @@ -17,7 +17,7 @@ module Mutant # @api private # def run - info(object.identification) + info('%s', object.identification) end # Prunter for subject runners