Skip to content
Permalink
Browse files

8244767: Potential non-terminated string in getEncodingInternal() on …

…Windows

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

0 comments on commit 06d6234

Please sign in to comment.
You can’t perform that action at this time.