mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8244767: Potential non-terminated string in getEncodingInternal() on Windows
Reviewed-by: bpb, naoto
This commit is contained in:
parent
be6f74718e
commit
06d6234213
1 changed files with 1 additions and 0 deletions
|
@ -73,6 +73,7 @@ getEncodingInternal(LCID lcid)
|
|||
LOCALE_IDEFAULTANSICODEPAGE,
|
||||
ret+2, 14) == 0) {
|
||||
codepage = 1252;
|
||||
strcpy(ret+2, "1252");
|
||||
} else {
|
||||
codepage = atoi(ret+2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue