This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
UV casting to avoid intermediate sign extension.
authorJarkko Hietaniemi <jhi@iki.fi>
Thu, 29 May 2014 14:01:13 +0000 (10:01 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Thu, 29 May 2014 14:03:26 +0000 (10:03 -0400)
commite7aca353f7af5d2dbed5f0e55c23d87f17c2406c
tree7284cea4904f804adfa84accdef68699b614dd1a
parente5a8a0fbd70ee31a016b7cf1c4b8c07839c6cf97
UV casting to avoid intermediate sign extension.

[perl #121746]

Fix for Coverity perl5 CIDs 29069, 29070, 29071:
Unintended sign extension: ... ... if ... U8 (8 bits unsigned) ... 32
bits, signed ...  64 bits, unsigned ... is greater than 0x7FFFFFFF,
the upper bits of the result will all be 1.
doop.c
utf8.c