* src/base/ftbbox.c (cubic_peak): Sanitize left shift (#56586).

This commit is contained in:
Alexei Podtelezhnikov 2019-07-23 22:38:30 -04:00
parent d5522ac060
commit 12af46b649
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2019-06-26 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/base/ftbbox.c (cubic_peak): Sanitize left shift (#56586).
2019-07-22 Weiyi Wu <w1w2y3@gmail.com>
* src/cid/cidload.c (cid_hex_to_binary): Fix typo (#56653).

View File

@ -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
{