8048515: Read outside array bounds in jdk/src/solaris/native/java/lang/java_props_md.c
Reviewed-by: okutsu
--- 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",
- "",
+ "", "",
};