Another left-shift bug (#45681).

* src/base/ftobjs.c (IsMacBinary): Only accept positive values for
`dlen'.
2.6.5
Werner Lemberg 10 years ago
parent 7e6c321a58
commit eb22ef26d9
  1. 7
      ChangeLog
  2. 15
      src/base/ftobjs.c

@ -1,3 +1,10 @@
2015-08-04 Werner Lemberg <wl@gnu.org>
Another left-shift bug (#45681).
* src/base/ftobjs.c (IsMacBinary): Only accept positive values for
`dlen'.
2015-08-03 Alexei Podtelezhnikov <apodtele@gmail.com>
[base] Fix `ft_corner_orientation'.

@ -1889,13 +1889,14 @@
if ( error )
goto Exit;
if ( header[ 0] != 0 ||
header[74] != 0 ||
header[82] != 0 ||
header[ 1] == 0 ||
header[ 1] > 33 ||
header[63] != 0 ||
header[2 + header[1]] != 0 )
if ( header[ 0] != 0 ||
header[74] != 0 ||
header[82] != 0 ||
header[ 1] == 0 ||
header[ 1] > 33 ||
header[63] != 0 ||
header[2 + header[1]] != 0 ||
header[0x53] > 0x7F )
return FT_THROW( Unknown_File_Format );
dlen = ( header[0x53] << 24 ) |

Loading…
Cancel
Save