Skip to content

Commit

Permalink
8244767: Potential non-terminated string in getEncodingInternal() on …
Browse files Browse the repository at this point in the history
…Windows

Reviewed-by: bpb, naoto
  • Loading branch information
DasBrain authored and Brent Christian committed May 12, 2020
1 parent be6f747 commit 06d6234
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/java.base/windows/native/libjava/java_props_md.c
Expand Up @@ -73,6 +73,7 @@ getEncodingInternal(LCID lcid)
LOCALE_IDEFAULTANSICODEPAGE,
ret+2, 14) == 0) {
codepage = 1252;
strcpy(ret+2, "1252");
} else {
codepage = atoi(ret+2);
}
Expand Down

0 comments on commit 06d6234

Please sign in to comment.