提交 832e5e9d 编写于 作者: D dcherepanov

7020522: Need to reapply the fix for 6664512

Reviewed-by: art, mchung
上级 3c357034
......@@ -535,7 +535,14 @@ public class PlatformLogger {
}
void doLog(int level, String msg, Object... params) {
LoggingSupport.log(javaLogger, levelObjects.get(level), msg, params);
// only pass String objects to the j.u.l.Logger which may
// be created by untrusted code
int len = (params != null) ? params.length : 0;
Object[] sparams = new String[len];
for (int i = 0; i < len; i++) {
sparams [i] = String.valueOf(params[i]);
}
LoggingSupport.log(javaLogger, levelObjects.get(level), msg, sparams);
}
boolean isEnabled() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册