summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorAnuj Verma <anujv@iitbhilai.ac.in>2021-08-02 08:40:43 +0530
committerWerner Lemberg <wl@gnu.org>2021-08-02 05:51:15 +0200
commitebcc96e559257756478bb93304fbd973857c4c90 (patch)
tree29b3c6a55851b2036f9f2529b61fead86002dc26 /meson.build
parent47b1a541cb1943d85da3976b93f9a5ed490288e2 (diff)
downloadfreetype2-ebcc96e559257756478bb93304fbd973857c4c90.tar.gz
Fix invalid memory access in `bsdf` rasterizer.
Do not generate SDF from bitmap if the `FT_GLYPH_OWN_BITMAP` flag is not set. In some cases the bitmap buffer is freed but still points to a valid address; to handle those cases check the flag before accessing the memory. * src/sdf/ftsdfrend.c (ft_bsdf_render): Handle the above case. Also, return an error message if the bitmap's rows/pitch is invalid, otherwise `slot->buffer` might be assigned to some invalid memory location. (ft_sdf_render): Same as above. Plus, move the outline back to original state after rasterization and not if any error occurs. Signed-off-by: Anuj Verma <anujv@iitbhilai.ac.in>
Diffstat (limited to 'meson.build')
0 files changed, 0 insertions, 0 deletions