Al-Qurtas-Islamic-bank-The-.../src
Werner Lemberg 8c8f51c558 Avoid undefined left-shifts.
We really have to use double casts to avoid issues with C's and C++'s
signedness propagation rules in implicit casts.

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41178
  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41182

* include/freetype/config/public-macros.h (FT_STATIC_CAST,
FT_REINTERPRET_CAST): Modify macro to take two arguments.
Update all callers.
(FT_STATIC_BYTE_CAST): New macro.

* include/freetype/freetype.h (FT_ENC_TAG): Use `FT_STATIC_BYTE_CAST`.
* include/freetype/ftimage.h (FT_IMAGE_TAG): Ditto.
* include/freetype/fttypes.h (FT_MAKE_TAG): Ditto.
Use `FT_Tag` for casting.

* src/ftraster/ftmisc.h (FT_MAKE_TAG): Removed, no longer needed.
(FT_STATIC_BYTE_CAST): New macro.

* src/smooth/ftgrays.c (FT_STATIC_CAST): Replace with...
(FT_STATIC_BYTE_CAST): ... this.
2021-11-20 07:58:31 +01:00
..
autofit * src/autofit/afhints.c (af_glyph_hints_reload): Decrease casting. 2021-09-30 22:59:04 -04:00
base Fix clang++ warnings. 2021-11-16 22:08:47 +01:00
bdf [bdf, cid, pfr, winfonts] Improve rejection of other font formats. 2021-10-19 22:59:46 +02:00
bzip2 Replace boolean allocation macros with MEM ones. 2021-09-14 21:32:43 -04:00
cache Fix clang++ warnings. 2021-11-16 22:08:47 +01:00
cff Fix clang++ warnings. 2021-11-16 22:08:47 +01:00
cid [bdf, cid, pfr, winfonts] Improve rejection of other font formats. 2021-10-19 22:59:46 +02:00
dlg [dlg] Define DLG_STATIC explicitly. 2021-11-07 10:20:16 -05:00
gxvalid Fix clang warnings. 2021-11-14 11:02:54 +01:00
gzip Replace boolean allocation macros with MEM ones. 2021-09-14 21:32:43 -04:00
lzw s/0/NULL/ where appropriate. 2021-09-01 21:37:21 -04:00
otvalid * src/gxvalid.*, src/otvalid.*: Fix `-Wformat` warnings. 2021-11-08 11:44:02 +01:00
pcf [pcf] Zero out the allocated properties. 2021-10-18 20:35:28 -04:00
pfr [bdf, cid, pfr, winfonts] Improve rejection of other font formats. 2021-10-19 22:59:46 +02:00
psaux Fix clang++ warnings. 2021-11-16 22:08:47 +01:00
pshinter [pshinter] Fix C++ compilation. 2021-11-08 09:41:54 +01:00
psnames Replace boolean allocation macros with MEM ones. 2021-09-14 21:32:43 -04:00
raster Avoid undefined left-shifts. 2021-11-20 07:58:31 +01:00
sdf Fix clang++ warnings. 2021-11-16 22:08:47 +01:00
sfnt [sfnt] Avoid undefined shifts in `COLR` v1 paint parsing 2021-11-13 06:48:23 +00:00
smooth Avoid undefined left-shifts. 2021-11-20 07:58:31 +01:00
tools * src/tools/apinames.c: Facilitate OpenVMS linker options. 2021-09-29 22:17:31 -04:00
truetype [truetype] Updates for the forthcoming OpenType 1.9 standard (2/2). 2021-11-16 20:13:58 +00:00
type1 Fix clang warnings. 2021-11-14 11:02:54 +01:00
type42 Add a comment. 2021-06-15 22:49:21 -04:00
winfonts [bdf, cid, pfr, winfonts] Improve rejection of other font formats. 2021-10-19 22:59:46 +02:00