ref: 12af46b649fdb946bacf150428e5cdfc3470a7ca
parent: d5522ac0603a15bd87f795d36dc218681befe022
author: Alexei Podtelezhnikov <[email protected]>
date: Tue Jul 23 18:38:30 EDT 2019
* src/base/ftbbox.c (cubic_peak): Sanitize left shift (#56586).
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2019-06-26 Alexei Podtelezhnikov <[email protected]>
+
+ * src/base/ftbbox.c (cubic_peak): Sanitize left shift (#56586).
+
2019-07-22 Weiyi Wu <[email protected]>
* src/cid/cidload.c (cid_hex_to_binary): Fix typo (#56653).
--- 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
{