Skip to content
Commit 37342861 authored by Ben Wagner's avatar Ben Wagner
Browse files

Correct type of icon_span

The `icon_span` is used as a `FT_SpanFunc`. To avoid undefined behavior
and a CFI sanitizer report, this function needs to called through a
pointer of the same type. Fix this by making `icon_span` take the right
parameter types and cast the argument in the function body.

* src/ftcommon.c (icon_span): take correct parameters and cast in
function body. (FTDemo_Icon): remove cast
parent 2ecaa369
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment