8048515: Read outside array bounds in jdk/src/solaris/native/java/lang/java_props_md.c
authornaoto
Wed, 09 Jul 2014 10:02:30 -0700
changeset 25400 f35efd853e7b
parent 25399 a8ec88e2d76f
child 25401 2e2b5a66a787
8048515: Read outside array bounds in jdk/src/solaris/native/java/lang/java_props_md.c Reviewed-by: okutsu
jdk/src/share/native/java/lang/java_props.h
jdk/src/solaris/native/java/lang/locale_str.h
--- a/jdk/src/share/native/java/lang/java_props.h	Wed Jul 09 17:51:50 2014 +0200
+++ b/jdk/src/share/native/java/lang/java_props.h	Wed Jul 09 10:02:30 2014 -0700
@@ -117,7 +117,7 @@
 
     char *exceptionList;
 
-    char *awt_headless  /* java.awt.headless setting, if NULL (default) will not be set */
+    char *awt_headless;  /* java.awt.headless setting, if NULL (default) will not be set */
 #endif
 
 } java_props_t;
--- a/jdk/src/solaris/native/java/lang/locale_str.h	Wed Jul 09 17:51:50 2014 +0200
+++ b/jdk/src/solaris/native/java/lang/locale_str.h	Wed Jul 09 10:02:30 2014 -0700
@@ -135,7 +135,7 @@
     "sr_SP", "sr_YU",
     "tchinese", "zh_TW",
 #endif
-    ""
+    "", "",
  };
 
 /*
@@ -188,7 +188,7 @@
     "japanese", "ja",
     "korean", "ko",
 #endif
-    "",
+    "", "",
 };
 
 /*
@@ -201,7 +201,7 @@
     "iqtelif", "Latn",
     "latin", "Latn",
 #endif
-    "",
+    "", "",
 };
 
 /*
@@ -212,7 +212,7 @@
     "RN", "US", // used on Linux, not clear what it stands for
 #endif
     "YU", "CS", // YU has been removed from ISO 3166
-    "",
+    "", "",
 };
 
 /*
@@ -220,5 +220,5 @@
  */
 static char *variant_names[] = {
     "nynorsk", "NY",
-    "",
+    "", "",
 };