Commit a983a719 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Added one safety check to AFM parsing.

parent 0fb54575
......@@ -60,6 +60,7 @@ static void PSDRV_AFMGetCharMetrics(AFM *afm, FILE *fp)
while(isspace(*value))
value++;
cp = endpos = strchr(value, ';');
if (!cp) { ERR("missing ;, failed.\n"); return; }
while(isspace(*--cp))
;
memcpy(valbuf, value, cp - value + 1);
......
Markdown is supported
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