Bug 699086 - oss-fuzz 5596: Use-of-uninitialized-value in fz_adjust_ft_glyph_width
Summary: oss-fuzz 5596: Use-of-uninitialized-value in fz_adjust_ft_glyph_width
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: PC Linux
: P4 normal
Assignee: MuPDF bugs
URL:
Keywords:
: 698897 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-03-01 01:58 UTC by Sebastian Rasmussen
Modified: 2019-05-08 14:01 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
Valgrind log (6.95 KB, text/plain)
2018-03-01 01:58 UTC, Sebastian Rasmussen
Details
Minimzed PDF from ossfuzz. (320 bytes, application/pdf)
2018-03-01 01:59 UTC, Sebastian Rasmussen
Details
Proposed patch. (2.04 KB, patch)
2018-03-01 02:00 UTC, Sebastian Rasmussen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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. ***