mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 16:44:36 +02:00
8345016: [ASAN] java.c reported ‘%s’ directive argument is null [-Werror=format-truncation=]
Reviewed-by: rriggs
This commit is contained in:
parent
379d05bcc1
commit
91b63ca748
1 changed files with 2 additions and 0 deletions
|
@ -1018,6 +1018,8 @@ SetClassPath(const char *s)
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
return;
|
return;
|
||||||
s = JLI_WildcardExpandClasspath(s);
|
s = JLI_WildcardExpandClasspath(s);
|
||||||
|
if (s == NULL)
|
||||||
|
return;
|
||||||
if (sizeof(format) - 2 + JLI_StrLen(s) < JLI_StrLen(s))
|
if (sizeof(format) - 2 + JLI_StrLen(s) < JLI_StrLen(s))
|
||||||
// s is became corrupted after expanding wildcards
|
// s is became corrupted after expanding wildcards
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue