ruby-changes:52469
From: k0kubun <ko1@a...>
Date: Tue, 11 Sep 2018 19:58:38 +0900 (JST)
Subject: [ruby-changes:52469] k0kubun:r64678 (trunk): vm_insnhelper.c: fix -Wformat-security on rb_bug
k0kubun 2018-09-11 19:58:33 +0900 (Tue, 11 Sep 2018) New Revision: 64678 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64678 Log: vm_insnhelper.c: fix -Wformat-security on rb_bug Modified files: trunk/vm_insnhelper.c Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 64677) +++ vm_insnhelper.c (revision 64678) @@ -3929,7 +3929,7 @@ vm_canary_is_found_dead(enum ruby_vminsn https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L3929 VALUE message = rb_sprintf("dead canary found at %s: %s", insn, str); const char *msg = StringValueCStr(message); - rb_bug(msg); + rb_bug("%s", msg); } #elif !defined(MJIT_HEADER) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/