From: "Dinger, Tom" (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-22946-60715.1.
00007189884266@rt.perl.org>
p4raw-id: //depot/perl@20211
continue;
}
if (uv >= 0xd800 && uv < 0xdbff) { /* surrogates */
- UV low = *p++;
+ UV low = (p[0] << 8) + p[1];
+ p += 2;
if (low < 0xdc00 || low >= 0xdfff)
Perl_croak(aTHX_ "Malformed UTF-16 surrogate");
uv = ((uv - 0xd800) << 10) + (low - 0xdc00) + 0x10000;