mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8231863: Crash if classpath is read from @argument file and the main gets option argument
Reviewed-by: alanb, mchung
This commit is contained in:
parent
a4c01b3c46
commit
f390c87d8d
3 changed files with 41 additions and 7 deletions
|
@ -337,7 +337,9 @@ static JLI_List readArgFile(FILE *file) {
|
|||
// remaining partial token
|
||||
if (ctx.state == IN_TOKEN || ctx.state == IN_QUOTE) {
|
||||
if (ctx.parts->size != 0) {
|
||||
JLI_List_add(rv, JLI_List_combine(ctx.parts));
|
||||
token = JLI_List_combine(ctx.parts);
|
||||
checkArg(token);
|
||||
JLI_List_add(rv, token);
|
||||
}
|
||||
}
|
||||
JLI_List_free(ctx.parts);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue