Bug 699086

Summary: oss-fuzz 5596: Use-of-uninitialized-value in fz_adjust_ft_glyph_width
Product: MuPDF Reporter: Sebastian Rasmussen <sebastian.rasmussen>
Component: mupdfAssignee: MuPDF bugs <mupdf-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: Valgrind log
Minimzed PDF from ossfuzz.
Proposed patch.

Description Sebastian Rasmussen 2018-03-01 01:58:57 UTC
Created attachment 14865 [details]
Valgrind log

When running 

valgrind --track-origins=yes --num-callers=50 build/debug/mutool draw -D -s t ossfuzz/5596-9086386263154498dcb18c96f1e1630903b21a3c.pdf

I see complains from valgrind as seen in the attached log.
Comment 1 Sebastian Rasmussen 2018-03-01 01:59:21 UTC
Created attachment 14866 [details]
Minimzed PDF from ossfuzz.
Comment 2 Sebastian Rasmussen 2018-03-01 02:00:26 UTC
Created attachment 14867 [details]
Proposed patch.
Comment 3 Sebastian Rasmussen 2018-03-15 12:44:44 UTC
Fixed in

commit ace9e69017c08e1e4ce5912014177414c0382004
Author: Sebastian Rasmussen <sebras@gmail.com>
Date:   Thu Mar 1 17:55:24 2018 +0800

    Fix 699086: Handle freetype not returning glyph advance.
Comment 4 Sebastian Rasmussen 2018-08-11 21:21:14 UTC
*** Bug 698897 has been marked as a duplicate of this bug. ***