# HG changeset patch # User kbarrett # Date 1435104021 -7200 # Node ID 746427d542998f3f01c284896825b69946ef7866 # Parent 75760136badcf204a36336b6847ae170e127d303# Parent e54c60e0359cdba6a92992afaff376ed142d8718 Merge diff -r 75760136badc -r 746427d54299 hotspot/src/share/vm/classfile/compactHashtable.cpp --- a/hotspot/src/share/vm/classfile/compactHashtable.cpp Tue Jun 23 18:05:27 2015 +0000 +++ b/hotspot/src/share/vm/classfile/compactHashtable.cpp Wed Jun 24 02:00:21 2015 +0200 @@ -25,6 +25,7 @@ #include "precompiled.hpp" #include "classfile/javaClasses.hpp" #include "memory/metaspaceShared.hpp" +#include "prims/jvm.h" #include "utilities/numberSeq.hpp" #include @@ -343,8 +344,10 @@ } void HashtableTextDump::corrupted(const char *p, const char* msg) { - char info[60]; - sprintf(info, "%s. Corrupted at line %d (file pos %d)", msg, _line_no, (int)(p - _base)); + char info[100]; + jio_snprintf(info, sizeof(info), + "%s. Corrupted at line %d (file pos %d)", + msg, _line_no, (int)(p - _base)); quit(info, _filename); }