diff options
Diffstat (limited to 'src/windows/bin/java_md.c')
-rw-r--r-- | src/windows/bin/java_md.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/windows/bin/java_md.c b/src/windows/bin/java_md.c index d08f2bf9b..43ccfc8dd 100644 --- a/src/windows/bin/java_md.c +++ b/src/windows/bin/java_md.c @@ -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(); |