GDI font engine: Harden getOutlineTextMetric()
If GetOutlineTextMetric() fails it returns 0. We did not check
for this case, so it it were to happen, we would malloc(0) and
later read from the provided address.
After automated testing with AI, it is concluded that this is not
reachable in practice. On modern systems, GDI always synthesizes
the metrics and returns a non-zero value. However, for extra
robustness, we protect against this case.
Pick-to: 6.12
Task-number: QTBUG-151514
Change-Id: I20b20a8103c88951b8243f5dcc55eb7e084b7aaf
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>