hotspot/src/share/vm/runtime/arguments.cpp
changeset 14139 339b184759f9
parent 12988 b31a90568395
child 14140 33893458b2e3
--- a/hotspot/src/share/vm/runtime/arguments.cpp	Wed May 23 12:11:25 2012 -0700
+++ b/hotspot/src/share/vm/runtime/arguments.cpp	Fri Jun 08 12:49:12 2012 -0400
@@ -860,7 +860,7 @@
   bool result         = true;
 
   int c = getc(stream);
-  while(c != EOF) {
+  while(c != EOF && pos < (int)(sizeof(token)-1)) {
     if (in_white_space) {
       if (in_comment) {
         if (c == '\n') in_comment = false;