diff options
author | TAKAI Kousuke <62541129+t-a-k@users.noreply.github.com> | 2021-04-05 23:59:14 +0900 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2021-04-16 17:16:24 -0600 |
commit | 640be82afb9c53a7c1c14d80eee36b6081304db0 (patch) | |
tree | c458b5b69d184c77e86fd0cccb746bc423dd358e /NetWare | |
parent | 50352f1687ab2f02685a380668c889111cdeeee9 (diff) | |
download | perl-640be82afb9c53a7c1c14d80eee36b6081304db0.tar.gz |
pp.c: Clip shift amount of <<, >> to avoid overflow
Previously the right operand of bitwise shift operators (shift amount)
was implicitly cast from IV to int, but it might lead wrong results
if IV does not fit in int.
And also, shifting INT_MIN bits used to yield the shiftee unchanged
(treated as 0-bit shift instead of negative shift).
Diffstat (limited to 'NetWare')
0 files changed, 0 insertions, 0 deletions