We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea50540 commit cb49f31Copy full SHA for cb49f31
deps/uv/src/win/fs.c
@@ -176,9 +176,11 @@ static int32_t fs__decode_wtf8_char(const char** input) {
176
if ((b4 & 0xC0) != 0x80)
177
return -1; /* invalid: not a continuation byte */
178
code_point = (code_point << 6) | (b4 & 0x3F);
179
- if (b1 <= 0xF4)
+ if (b1 <= 0xF4) {
180
+ code_point &= 0x1FFFFF;
181
if (code_point <= 0x10FFFF)
182
return code_point; /* four-byte character */
183
+ }
184
185
/* code point too large */
186
return -1;
0 commit comments