diff options
author | Alexei Podtelezhnikov <apodtele@gmail.com> | 2019-07-23 22:38:30 -0400 |
---|---|---|
committer | Alexei Podtelezhnikov <apodtele@gmail.com> | 2019-07-23 22:38:30 -0400 |
commit | 12af46b649fdb946bacf150428e5cdfc3470a7ca (patch) | |
tree | 899ff12b96ff03521cf4afa2e332bf78b58d1091 /src | |
parent | d5522ac0603a15bd87f795d36dc218681befe022 (diff) | |
download | freetype2-12af46b649fdb946bacf150428e5cdfc3470a7ca.tar.gz |
* src/base/ftbbox.c (cubic_peak): Sanitize left shift (#56586).
Diffstat (limited to 'src')
-rw-r--r-- | src/base/ftbbox.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/base/ftbbox.c b/src/base/ftbbox.c index a0b2c46f7..b70062cd6 100644 --- a/src/base/ftbbox.c +++ b/src/base/ftbbox.c @@ -294,10 +294,10 @@ if ( shift > 2 ) shift = 2; - q1 <<= shift; - q2 <<= shift; - q3 <<= shift; - q4 <<= shift; + q1 *= 1 << shift; + q2 *= 1 << shift; + q3 *= 1 << shift; + q4 *= 1 << shift; } else { |