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 1 changed file with 1 addition 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);
}

0 comments on commit 06d6234

Please sign in to comment.