summaryrefslogtreecommitdiff
path: root/NetWare
diff options
context:
space:
mode:
authorTAKAI Kousuke <62541129+t-a-k@users.noreply.github.com>2021-04-05 23:59:14 +0900
committerKarl Williamson <khw@cpan.org>2021-04-16 17:16:24 -0600
commit640be82afb9c53a7c1c14d80eee36b6081304db0 (patch)
treec458b5b69d184c77e86fd0cccb746bc423dd358e /NetWare
parent50352f1687ab2f02685a380668c889111cdeeee9 (diff)
downloadperl-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