commit 20d89699b35397f23352d0e60a3e19da2ce6b410
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Jul 19 23:20:03 2018 +0200

    poppler 0.67

 CMakeLists.txt   | 4 ++--
 NEWS             | 8 ++++++++
 cpp/Doxyfile     | 2 +-
 qt5/src/Doxyfile | 2 +-
 4 files changed, 12 insertions(+), 4 deletions(-)

commit 8bc5acb1c18e77e912b7d9caa7f73e6969d1dede
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Jul 19 17:55:13 2018 +0200

    Splash::arbitraryTransformMask: Set clipRes to splashClipPartial in
    some if branches

    If xx or yy are not in the expected bounds something went wrong so
    don't assume we're still inside the valid area for the destination
    either

    fixes oss-fuzz/9382

 splash/Splash.cc | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

commit 004e3c10df0abda214f0c293f9e269fdd979c5ee
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Jul 18 20:31:27 2018 +0200

    Fix crash when Object has negative number

    Spec says object number has to be > 0 and gen has to be >= 0

    Reported by email

 poppler/Parser.cc | 5 +++++
 1 file changed, 5 insertions(+)

commit 155897f3cb88db5050b9d16dc50bfd8b660077b6
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Jul 17 01:05:38 2018 +0200

    JBIG2Stream::readTextRegion: Fix uninitialized memory read

    fixes oss-fuzz/9381

 poppler/JBIG2Stream.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit eb1291f86260124071e12226294631ce685eaad6
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Jul 11 00:26:01 2018 +0200

    GfxPatchMeshShading::getParameterizedColor: Fix uninitialized
    memory read

    fixes oss-fuzz/9264

 poppler/GfxState.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 729e212f465d015959e5a64662593e5e3f8e4924
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Jul 6 17:29:46 2018 +0200

    Add some easy const to XRef

 poppler/XRef.cc | 26 +++++++++++++-------------
 poppler/XRef.h  | 46 +++++++++++++++++++++++-----------------------
 2 files changed, 36 insertions(+), 36 deletions(-)

commit e607d9c4a0057c390c59e306f6dc010aea2125ee
Author: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Date:   Sun May 20 19:31:53 2018 +0200

    Small optimization for AABGR8 pipes

    Skip some computations if both src and dest alpha are zero, or if
    src is fully opaque. Equivalent to Commit f47936af7508A
    ("Small optimization for AAXRGB8 pipes").

 splash/Splash.cc | 28 +++++++++++++++++++---------
 1 file changed, 19 insertions(+), 9 deletions(-)

commit 1b5298ebb8d76b5eee11d9cccdfffcdceb5d064b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Jul 2 21:46:10 2018 +0200

    GfxUnivariateShading::getColor: Fix uninitialized memory read

    fixes oss-fuzz/9165

 poppler/GfxState.cc | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

commit d8346166d5150c1673379dcb3c658b9805f99764
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Jul 2 20:10:25 2018 +0200

    Gfx::doRadialShFill: Don't divide by zero

    fixes oss-fuzz/9133

 poppler/Gfx.cc | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

commit 0735821ee03f9d83a9817450b12f45a502f51834
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Jun 26 17:09:52 2018 +0200

    Form: Remove return in void function

 poppler/Form.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit b317ee3ecb939b91e1f8245177defaa59f8478b7
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Jun 26 15:27:48 2018 +0200

    Form: Remove unused getContentCopy

    it's confusing to have getContent and getContentCopy that does 99%
    the same

 poppler/Form.cc | 11 -----------
 poppler/Form.h  |  3 ---
 2 files changed, 14 deletions(-)

commit 664d166194bc0832fd446b354630c4c7994ae4e3
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Jun 26 15:22:13 2018 +0200

    Form: Add a few more const

 poppler/Form.cc |  8 ++++----
 poppler/Form.h  | 18 +++++++++---------
 2 files changed, 13 insertions(+), 13 deletions(-)

commit 5ef6a845d8872f5dbc5698260ab5e12391f01f76
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Jun 25 19:21:37 2018 +0200

    Splash::arbitraryTransformImage: Fix uninitialized memory read

    fixes oss-fuzz/9066

 splash/Splash.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 267228bb071016621c80fc8514927905164aaeea
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jun 24 18:28:22 2018 +0200

    pdfsig: Use posix basename() instead of GNU one

    So it builds on non GNU systems too

    Bug #106783

 utils/pdfsig.cc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

commit 459f369145a9d8f638fe123425f0e2880487640e
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jun 24 11:51:20 2018 +0200

    Move variable declarations closer to where they are used

    Allows for declaring two of them as const

 poppler/Stream.cc | 26 ++++++++++----------------
 1 file changed, 10 insertions(+), 16 deletions(-)

commit e8b82c4239da638ae77dfab07faaff33af4af1cc
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jun 24 11:46:36 2018 +0200

    ImageStream::getLine: Fix ubsan undefined shift

    I'm not totally sure this is the "correct" fix, but doesn't regress
    any file on my test suite so seems one of those cases only happens
    on bad files, and this helps oss-fuzz progress in its testing

    Fixes oss-fuzz/8432

 poppler/Stream.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit c0e87eda688351b3caf222e5525f75a3190fd87c
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jun 24 11:15:52 2018 +0200

    AnnotBorder::parseDashArray: Fix correct calculation

    obj not being a num also means not correct

    fixes oss-fuzz/9056

 poppler/Annot.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

commit 322f8a453664fbad65c4b998034adf8df2ac0bea
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Jun 23 00:41:18 2018 +0200

    GfxDeviceNColorSpace::parse: Fix leak on malformed files

    Fixes oss-fuzz/9036

 poppler/GfxState.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

commit af4d5f31705dcfd65319da430f87744b5c1f3616
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Jun 22 23:55:09 2018 +0200

    SplashFTFont::makeGlyph: Bail out if constructor returned early

    fixes oss-fuzz/8811

 splash/SplashFTFont.cc | 7 +++++--
 splash/SplashFTFont.h  | 3 ++-
 2 files changed, 7 insertions(+), 3 deletions(-)

commit 0281c02b9a1cd776c45ca1fd2f5eeea15f6827a6
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Jun 22 17:33:21 2018 +0200

    (C) update from 2 commits ago

 fofi/FoFiType1C.h | 1 +
 1 file changed, 1 insertion(+)

commit 1b65f9eb1beef0d1a41a4d59c89e4acd193a1a3f
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Jun 22 17:29:26 2018 +0200

    Gfx:Generalize protection against a pattern drawing itself

    fixes oss-fuzz/8929

 poppler/CairoOutputDev.cc  |  2 +-
 poppler/Gfx.cc             | 53
 ++++++++++++++++++++++++++--------------------
 poppler/Gfx.h              |  4 ++--
 poppler/PSOutputDev.cc     |  2 +-
 poppler/SplashOutputDev.cc |  2 +-
 5 files changed, 35 insertions(+), 28 deletions(-)

commit da349184c61034ac5818efe90d426de6af2c74d7
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Jun 22 16:48:11 2018 +0200

    FoFiType1C::readPrivateDict: Fix potential uninitialized memory read

    fixes oss-fuzz/8864

 fofi/FoFiType1C.cc | 2 --
 fofi/FoFiType1C.h  | 6 +++---
 2 files changed, 3 insertions(+), 5 deletions(-)

commit 877dcec7e2357991d79508a2aefc39d1510bf235
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Jun 19 23:16:47 2018 +0200

    Poppler 0.66

 CMakeLists.txt   | 4 ++--
 NEWS             | 7 +++++++
 cpp/Doxyfile     | 2 +-
 qt5/src/Doxyfile | 2 +-
 4 files changed, 11 insertions(+), 4 deletions(-)

commit 37d2aa88409429397a6c8801b34213f6eded8e1e
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Jun 19 17:42:16 2018 +0200

    PostScriptFunction::parseCode: Fix memory leak on malformed files

    Fixes oss-fuzz/8859

 poppler/Function.cc | 1 +
 1 file changed, 1 insertion(+)

commit e4f4cbddd11ae6386985879187007fa5add43624
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Jun 12 09:32:57 2018 +0200

    StreamPredictor: Move pixBytes calculation after checks

    fixes oss-fuzz/8835

 poppler/Stream.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit adb7cac1b787b35c4f5d25e0441e459ab92d0469
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Jun 12 09:00:33 2018 +0200

    GfxImageColorMap: Initialize y to prevent uninit mem use

    Fixes oss-fuzz/8839

 poppler/GfxState.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 6b37df791731e40837fa1eba86ae740650431438
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Jun 6 17:56:27 2018 +0200

    SampledFunction: Fix divide by zero

    Actual valid values are 1, 2, 4, 8, 12, 16, 24, and 32 but this
    check is easier

    fixes oss-fuzz/8713

 poppler/Function.cc | 4 ++++
 1 file changed, 4 insertions(+)

commit d6a3dc3ebbc97fcdd3c45028b5741f4b99fc0279
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Jun 6 17:46:17 2018 +0200

    GfxAxialShading::parse: Fix memory leak on broken files

    fixes oss-fuzz/8742

 poppler/GfxState.cc | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

commit 599e28433268ceaa933cf2a2492c81da4418e207
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Jun 5 20:11:19 2018 +0200

    JBIG2Stream::readSymbolDictSeg: Fix potential uninitialized memory
    read

    fixes oss-fuzz/8748

 poppler/JBIG2Stream.cc | 1 +
 1 file changed, 1 insertion(+)

commit a231de883b438af1807726fab4265ecf4689cf50
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Jun 5 20:00:03 2018 +0200

    CMap::parse2: Initialize end

    fixes oss-fuzz/8747

 poppler/CMap.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 2c629fefe2b2b1e2663521beeac432c808afe7c7
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Jun 5 19:56:53 2018 +0200

    JBIG2Stream::readSymbolDictSeg: Initialize dh

    fixes oss-fuzz/8751

 poppler/JBIG2Stream.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 0053966d3ec5b5c4eb6480417b2c8a8ccd910964
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Jun 4 20:38:41 2018 +0200

    JBIG2Stream::readSymbolDictSeg: Initialize refDX

    fixes oss-fuzz/8696

 poppler/JBIG2Stream.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 8dfe3fb37ec01e35eb22a0932fe708bc9b78cb4f
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed May 30 17:09:16 2018 +0200

    LONG_LONG_MAX -> LLONG_MAX

    that's the name the standard uses

 poppler/Parser.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit b4f0e2b27a0880801c7af0c82fe17894797511b2
Author: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Date:   Sat May 26 19:51:20 2018 +0200

    Splash: Reserve space for path segments upfront

    Instead of iteratively growing the array reserve sufficient space
    prior to populating the array.

 poppler/SplashOutputDev.cc |  2 ++
 splash/SplashPath.cc       | 18 ++++++++++++++++++
 splash/SplashPath.h        |  4 ++++
 3 files changed, 24 insertions(+)

commit 450a8a54e080b5bb80533b1777b3b670bea1f27a
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed May 30 09:09:12 2018 +0200

    JBIG2Stream::readSymbolDictSeg: Initialize refDY

    fixes oss-fuzz/8621

 poppler/JBIG2Stream.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 1750c0155762e75d0a80ab55b50d1bfd172c2430
Author: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Date:   Tue May 29 23:49:05 2018 +0200

    splash: Correctly manipulate spot colors if SPOT_NCOMPS != 4

    The default number of spot colors is 4, in this case the change is
    without effect, otherwise only the last 4 colors where handled.

 splash/SplashTypes.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

commit fb4629eb4b1787332b88b330da16353e5ade7b4d
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue May 29 20:32:23 2018 +0200

    SplashFTFont: Early return if face->units_per_EM is 0

    fixes oss-fuzz/8617

 splash/SplashFTFont.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 943a465d7b76b26de83d2038226c72bcf619c29f
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue May 29 20:23:51 2018 +0200

    SplashFTFont: Initialize textScale

    fixes oss-fuzz/8616

 splash/SplashFTFont.cc | 1 +
 1 file changed, 1 insertion(+)

commit f821faa1795c1b25104d84e9f5a7e8ad218baa61
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue May 29 20:18:26 2018 +0200

    CMap::parse2: Initialize start

    fixes oss-fuzz/8611

 poppler/CMap.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit a76c8fbd50a3a5cbe0487158e9d2b325e596d2c6
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue May 29 01:01:26 2018 +0200

    GfxSeparationColorSpace::getRGB: ensure color2 doesn't have uninit
    values

    if alt->getNComps() is bigger than func->getOutputSize() (which
    is most
    likely a faulty file) we init those indexes of color2 with 0

    fixes oss-fuzz/8586

 poppler/GfxState.cc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

commit e35fdb1448b7860d697b9c2ec8bda49c7a8a3ae5
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue May 29 00:59:22 2018 +0200

    JBIG2Stream::readTextRegion: Initialize ds

    fixes oss-fuzz/8594

 poppler/JBIG2Stream.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit bb25c0d46f1f0e037805f0c6dde07f3ea9c9320c
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue May 29 00:55:28 2018 +0200

    Gfx::doRadialShFill: Initialize colorA, colorB and colorC

    fixes oss-fuzz/8587

 poppler/Gfx.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

commit b8cf8b04cbd1c0c5643cc77ed7b0b60525ecf080
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon May 28 23:51:32 2018 +0200

    FoFiType1::parse: Don't copy to buf more than the available file

    fixes oss-fuzz/8576

 fofi/FoFiType1.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

commit 10a3dc2a9c92349e498ea36bb342b821dcfc9d76
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon May 28 17:44:34 2018 +0200

    GfxState.cc: Fix undefined behaviour when compBits is 31

    it's a technical issue since according to spec biggest
    valid value for compBits is 16, but this is simpler imho

    fixes oss-fuzz/8582

 poppler/GfxState.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 96e7bc19ffcaf46d4cb69660ed040c09d46815d6
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun May 27 09:42:24 2018 +0200

    JBIG2Stream::readTextRegion: Initialize a few variables

    So if the stream is broken we don't use uninitialized variables

    fixes oss-fuzz/8547

 poppler/JBIG2Stream.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 9c0c538e8d1aa39cd136cfb8fe0fbfe1def5174d
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun May 27 09:34:16 2018 +0200

    Gfx::doAxialShFill: initialize color1

    fixes oss-fuzz/8546

 poppler/Gfx.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 18f376c0dff184851b3ee4c05c40b4ee2c21da8c
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun May 27 09:29:49 2018 +0200

    FoFiType1::parse: Fix reading past font length

    fixes oss-fuzz/8545

 fofi/FoFiType1.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

commit 19d3993f3f40b5113141d5a55acea307c174f1d3
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun May 27 09:10:05 2018 +0200

    XRef::fetch: Don't try to fetch objects with negative offset

    fixes oss-fuzz/8433

 poppler/XRef.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 9a8d33246601dbd2bea98bb3404596848f71162a
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun May 27 08:47:19 2018 +0200

    Splash::fillGlyph2: fix buffer overflow

    Make sure xx / 8 + 1 is not out of bounds

    fixes oss-fuzz/8422

 splash/Splash.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 1bc71245fa88dc23dc355f926f50f04896739fff
Author: Adam Reichold <adam.reichold@t-online.de>
Date:   Sat May 26 11:54:41 2018 +0200

    LZWStream: make inputBuf unsigned

    since shifting negative numbers is undefined according to spec

 poppler/Stream.cc | 6 +++---
 poppler/Stream.h  | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

commit 68c5977980a60b2fbac0a5938e697cf09f37b0a2
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri May 25 23:06:53 2018 +0200

    BaseCryptStream: Initialize all of objKey

    fixes oss-fuzz/8493

 poppler/Decrypt.cc | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

commit 14adecb9693345b7e3baa6dee05f5c88dde7952c
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri May 25 22:57:29 2018 +0200

    Decrypt::md5: initialize x

    When msgLen is small enough x would had initialized values for some
    parts of the md5 calculation

    fixes oss-fuzz/8492

 poppler/Decrypt.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 71bb82bdecccc235e15255635cab2c31cce58e0e
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri May 25 22:52:31 2018 +0200

    Gfx::doAxialShFill: initialize color0

    fixes oss-fuzz/8470

 poppler/Gfx.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit b245154fdebc9a78db163bc95959c6c8f5b4126f
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri May 25 22:46:22 2018 +0200

    Parser::makeStream: Don't overflow length

    fixes oss-fuzz/8499

 poppler/Parser.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

commit 86777478387577aee8242eb2f11932041e87eff5
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri May 25 19:44:50 2018 +0200

    Splash::fillWithPattern: initialize pipe

    Makes sure if things fail we're not painting with uninitialized memory

    fixes oss-fuzz/8538

 splash/Splash.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 97caec070090d112d4fb5b63dc433a34e214c7e5
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri May 25 19:38:19 2018 +0200

    FoFiType1C::readTopDict: Return early if parsing fails

    fixes oss-fuzz/8456

 fofi/FoFiType1C.cc | 3 +++
 1 file changed, 3 insertions(+)

commit 7e2189377bfaa0594e25eaba26aca47bea59f315
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri May 25 17:47:07 2018 +0200

    GfxGouraudTriangleShading::parse: Add bounds check for compBits

    The spec is much more strict on what is valid, but i'm only doing
    a check so that the code doesn't break

 poppler/GfxState.cc | 4 ++++
 1 file changed, 4 insertions(+)

commit fef32ba463a225618a967c541d939fd69e02f2dd
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri May 25 17:42:22 2018 +0200

    GfxPatchMeshShading::parse: Add bounds check for compBits

    The spec is much more strict on what is valid, but i'm only doing
    a check so that the code doesn't break

    fixes oss-fuzz/8445

 poppler/GfxState.cc | 4 ++++
 1 file changed, 4 insertions(+)

commit 3b9d8025dbdfcfac94ede20b05d86d177393cde7
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri May 25 17:26:37 2018 +0200

    Splash: Fix another potential uninitialized memory use

    fixes oss-fuzz/8466

 splash/Splash.cc | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

commit 0e3b18a48c3907a49c51a0ceded6078a2fd790eb
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri May 25 17:06:13 2018 +0200

    SplashUnivariatePattern::getColor: Fix potential uninitialized
    memory read

    If the GfxUnivariateShading doesn't provide enough bits of color
    fill them with 0 as to not have random memory read

    fixes oss-fuzz/8470

 poppler/GfxState.cc        | 5 +++--
 poppler/GfxState.h         | 4 +++-
 poppler/SplashOutputDev.cc | 6 +++++-
 3 files changed, 11 insertions(+), 4 deletions(-)

commit c75500bf6b2af4b9a26467ce55d1f2879e916b79
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri May 25 16:41:36 2018 +0200

    T3FontCache: change the order in which the overflow checks are done

    fixes oss-fuzz/8479

 poppler/SplashOutputDev.cc | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

commit 4ea7ac960d9ecb6a407d0e660312f5701d3dcd49
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri May 25 16:35:49 2018 +0200

    SplashFTFont::getGlyphPath: early return if textScale == 0

    fixes oss-fuzz/8529

 splash/SplashFTFont.cc | 4 ++++
 1 file changed, 4 insertions(+)

commit c1164653bd8d6bcb7da1d959634f63592a393235
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri May 25 16:26:44 2018 +0200

    GfxGouraudTriangleShading::parse: Protect against coordBits <= 0

    fixes oss-fuzz/8524

 poppler/GfxState.cc | 4 ++++
 1 file changed, 4 insertions(+)

commit a7154bcc6aba5429dc6cc024bd90dae2f1d2d0c1
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri May 25 16:21:45 2018 +0200

    XRef::readXRefTable: Rewrite overflow check

    In a way that it doesn't depend on undefined behaviour

    fixes oss-fuzz/8528

 poppler/XRef.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit f966b9096d046aaee4891de11f74207218cc929b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu May 24 23:58:41 2018 +0200

    SplashOutputDev::drawSoftMaskedImage: Fix uninitialized memory read

    It can happen that maskStr->doGetChars doesn't give us the number
    of chars we wanted, if that happens just set the remainder to zero

 poppler/SplashOutputDev.cc | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

commit b228892adb01f978d5e6045e1e61741bca1950d2
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu May 24 23:49:12 2018 +0200

    Splash::blitImageClipped: initialize pixel

    At least this way if the getPixels call we're not drawing random
    memory
    and thus we get a stable render which helps with regtests

 splash/Splash.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 67be3708cc4dea9e03f5d0ce5b0214fff35748f2
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu May 24 23:29:55 2018 +0200

    SplashFTFont::makeGlyph: Fix use of uninitialized data

    caused by the bugfix to not divide by zero

 splash/SplashFTFont.cc | 4 ++++
 1 file changed, 4 insertions(+)

commit c758fc980834882528eeae82568494e46d189cc5
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu May 24 23:19:16 2018 +0200

    FoFiType1::parse: Fix invalid memory access

    Make sure there's enough line left before calling strncmp

    fixes oss-fuzz/8425

 fofi/FoFiType1.cc | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

commit 07318f3899248f67a58148b29a9555ff47a1b083
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu May 24 20:15:42 2018 +0200

    StreamReader::cmp: Fix potential undefined behaviour

    going outside an array range is technically undefined behaviour,
    even if then after you go back in range with the next operation, so
    we first calculate the diff and then add it to the array

 fofi/FoFiIdentifier.cc | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

commit 6b91d37a704fb2b6fa9529d859c366c331327ab9
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu May 24 18:22:00 2018 +0200

    SplashOutputDev: Fix memory leak on malformed files

    i.e. SplashOutputDev::endTextObject is not called after
    SplashOutputDev::drawChar

    fixes oss-fuzz/8508

 poppler/SplashOutputDev.cc | 1 +
 1 file changed, 1 insertion(+)

commit c9650369c5dd74812db515d986ded898b9002ae4
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu May 24 18:20:12 2018 +0200

    Splash::scaleMaskYuXu: Free internal bitmap data on error

    this way we don't try to use it later, which will be an uninitialized
    memory read

    fixes oss-fuzz/8511

 splash/Splash.cc | 1 +
 1 file changed, 1 insertion(+)

commit f279778fe0aca610cdecb70d0a714bbaa08b0d22
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu May 24 13:06:00 2018 +0200

    JBIG2Stream::readSymbolDictSeg: Fix potential uninitialized memory use

    fixes oss-fuzz/8468

 poppler/JBIG2Stream.cc | 2 ++
 1 file changed, 2 insertions(+)

commit ea72a3f3dc1619482ab2502dc50fe628600f38b5
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu May 24 12:42:54 2018 +0200

    gmallocn: move the operation after the checks

    fixes oss-fuzz/8423

 goo/gmem.cc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

commit aa39d079dc3b68b0a3512408706d053d664d557d
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu May 24 12:40:38 2018 +0200

    XRef::readXRefStreamSection: Add integer overflow check

    fixes oss-fuzz/8444

 poppler/XRef.cc | 3 +++
 1 file changed, 3 insertions(+)

commit db73587c566f8e50f03b24628e8948a558ee7039
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu May 24 11:56:39 2018 +0200

    StreamPredictor: move rowBytes calculation after overflow check

    fixes oss-fuzz/8498

 poppler/Stream.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 76820f5ab932a9ed18913bc7d1a452ddf060c133
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu May 24 01:12:07 2018 +0200

    JBIG2Stream::readPageInfoSeg: Fix memory leak on malformed documents

    fixes oss-fuzz/8463

 poppler/JBIG2Stream.cc | 1 +
 1 file changed, 1 insertion(+)

commit ffb0daefda688564c1456f4b8b3f5a715d228cdc
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed May 23 19:06:51 2018 +0200

    Apply previous optimization also to Splash::pipeRunAARGB8

 splash/Splash.cc | 28 +++++++++++++++++++---------
 1 file changed, 19 insertions(+), 9 deletions(-)

commit f47936af75088c55a19fe6b1a67128fcc3f57b08
Author: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Date:   Wed May 23 19:05:50 2018 +0200

    Small optimization for AAXRGB8 pipes

    Skip some computations if both src and dest alpha are zero, or if
    src is fully opaque. For common cases (majority of pixels fully
    opaque) like in fdo#81211, this reduces execution time of
    pipeRunAAXBGR8 by 50% (-20% total execution time).

 splash/Splash.cc | 29 ++++++++++++++++++++---------
 1 file changed, 20 insertions(+), 9 deletions(-)

commit 60ec88b3ca5f109b3532dbf2f36df66aed2d7bbf
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed May 23 19:49:29 2018 +0200

    greallocn: move the operation to after the checks

    fixes oss-fuzz/8484

 goo/gmem.cc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

commit e0fb18040378659c98fedb4bdaff6a903ddd095b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed May 23 19:40:50 2018 +0200

    Gfx::opSetExtGState: Fix memory leak on broken files

    doSoftMask was called just once, from opSetExtGState, but was
    given the duty to delete blendingColorSpace that given doSoftMask
    has various early returns is hard to do right, so i've moved
    the deletion to opSetExtGState itself

    fixes oss-fuzz/8431

 poppler/Gfx.cc | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

commit 86991adb172fd55decdc72ec6fc34d41b19beafa
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed May 23 19:35:27 2018 +0200

    Gfx::doRadialShFill: Fix potential divide by zero

    fixes oss-fuzz/8476

 poppler/Gfx.cc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

commit 62c7a6a135aa8c70f638bac9b41a11c4e69c8452
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed May 23 19:29:39 2018 +0200

    GfxImageColorMap::GfxImageColorMap: Bail out early if bits <= 0

    fixes oss-fuzz/8478

 poppler/GfxState.cc | 3 +++
 1 file changed, 3 insertions(+)

commit 6e2de368f620d2e459a4cfe6533a8c29fae6d8c9
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed May 23 19:21:30 2018 +0200

    SplashFTFont::SplashFTFont: Early return if textScale is 0

    fixes oss-fuzz/8482

 splash/SplashFTFont.cc | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

commit 8d715bfc7c3610b823721dc26368728795baa2fe
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed May 23 15:44:05 2018 +0200

    GfxPatchMeshShading::parse: Error out if BitsPerCoordinate <= 0

 poppler/GfxState.cc | 4 ++++
