]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vtfontcvt: improve .bdf validation
authoremaste <emaste@FreeBSD.org>
Mon, 24 Jun 2019 17:25:14 +0000 (17:25 +0000)
committeremaste <emaste@FreeBSD.org>
Mon, 24 Jun 2019 17:25:14 +0000 (17:25 +0000)
commite074d085c88cc967d354d463e1275aeac766a5e5
treef3e69040a8b7bf7ac3697c36c947b52c2c93c55c
parentfc870a6df90c3876ec348720e21e74beb8b70d92
vtfontcvt: improve .bdf validation

Previously if we had a FONTBOUNDINGBOX or DWIDTH entry that had missing
or invalid values and and failed sscanf, we would proceeded with
partially initialized bounding box / device width variables.

Reported by: afl (FONTBOUNDINGBOX)
MFC with: r349100
Sponsored by: The FreeBSD Foundation
usr.bin/vtfontcvt/vtfontcvt.c