mirror of
https://git.yoctoproject.org/poky
synced 2026-03-31 02:02:25 +02:00
bdfReadCharacters: ensure metrics fit into xCharInfo struct We use 32-bit ints to read from the bdf file, but then try to stick into a 16-bit int in the xCharInfo struct, so make sure they won't overflow that range. (From OE-Core rev: 4dd4b96b6d60246338bb30ede9f3ab1b2e757be9) (From OE-Core rev: 1e2a947e65f5fb6e01459c9ddd6515a7131d92c7) Signed-off-by: Li Zhou <li.zhou@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>