Bug#700933: Unchecked conversion of input to enum

2026-08-09 Thread Bastian Germann
Control: forwarded -1 https://github.com/fontforge/fontforge/commit/d2c34ab28

This is where the issue is addressed.



Bug#700933: Unchecked conversion of input to enum

2013-02-19 Thread Michael Tautschnig
Package: fontforge
Version: 0.0.20120101+git-2
Usertags: goto-cc

While building the package using our research compiler infrastructure, which
also performs more strict type checking, we noticed the following problem that
possibly triggers undefined behaviour:

In fontforge/scripting.c, the function bExpandStroke stores user input values
(of type double) in a field of type enum linecap (first appears in line 4653,
but also occurs multiple other times).

As there is no sanitization of input in place, the assignment may result in
arbitrary values being set.

Best,
Michael



pgp9ocqdP6t3d.pgp
Description: PGP signature