mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-27 02:30:06 +00:00
8037046: Validate libraries to be loaded
Reviewed-by: ksrini, ahgross
This commit is contained in:
parent
33ccc261e0
commit
9157f3845d
@ -1306,6 +1306,14 @@ int AWTPreload(const char *funcName)
|
||||
/* save path length */
|
||||
jrePathLen = JLI_StrLen(libraryPath);
|
||||
|
||||
if (jrePathLen + JLI_StrLen("\\bin\\verify.dll") >= MAXPATHLEN) {
|
||||
/* jre path is too long, the library path will not fit there;
|
||||
* report and abort preloading
|
||||
*/
|
||||
JLI_ReportErrorMessage(JRE_ERROR11);
|
||||
break;
|
||||
}
|
||||
|
||||
/* load msvcrt 1st */
|
||||
LoadMSVCRT();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user