commit a9662d36c2faa6f8590ccd7c99758de6dcf4e324
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Mar 1 19:33:25 2021 +0100

    Poppler 21.03.0

 CMakeLists.txt   |  4 ++--
 NEWS             | 26 ++++++++++++++++++++++++++
 cpp/Doxyfile     |  2 +-
 qt5/src/Doxyfile |  2 +-
 qt6/src/Doxyfile |  2 +-
 5 files changed, 31 insertions(+), 5 deletions(-)

commit 1d91d03325662ca368cf5da77d09012998e7720e
Author: Nelson Benítez León <nbenitezl@gmail.com>
Date:   Mon Mar 1 00:22:26 2021 -0400

    glib/poppler-structure-element: fix memleak

    in convert_doubles_array(), which was not
    assigning the allocated memory to the
    out variable.

    This means this function was never returning
    anything until now, which means there's probably
    no users of this function in the wild (certainly
    not in Evince).

    Issue #1049

 glib/poppler-structure-element.cc | 2 ++
 1 file changed, 2 insertions(+)

commit 6a81075c91277d7106bccba66dea0c0bca7be536
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Mar 1 00:45:24 2021 +0100

    pdftoppm: Compile fix for the unsupported UTILS_USE_PTHREADS define

 utils/pdftoppm.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

commit 9514dceca09af53cf5e920ec76edb3937f87e6ad
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Feb 20 22:37:50 2021 +0100

    Make TextSelectionSizer a bit easier to understand standalone

    Nothing really changes because it's only used in one place and that
    place called getRegion so there's no leak but looking at the class
    standalone one could think that one would get a leak if getRegion was
    not called.

 poppler/TextOutputDev.cc | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

commit 31734dcb365e2b69d88c86ddaee3bd62af97fade
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Feb 26 00:19:58 2021 +0100

    strtok -> strtok_r

    Otherwise we have threading issues if two threads are doing strtok at
    the same time

    Fixes issue #1050

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

commit 03b6705006e563c95cfcad47fa3d3c4c2e248651
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Feb 20 23:05:22 2021 +0100

    poppler_annot_free_text_get_callout_line: Fix wrong static cast

    static_cast always "suceeds" so it makes no sense using it to check if
    the callout is multiline or not

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

commit 7d7e09cf815c94bb3e50e6ef957dc81a14964f2f
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Feb 20 23:11:29 2021 +0100

    JPEG2000Stream.cc: Remove useless two if (priv->image)

    We're already inside an if (priv->image) check

 poppler/JPEG2000Stream.cc | 34 ++++++++++++++++------------------
 1 file changed, 16 insertions(+), 18 deletions(-)

commit 5161fa6f1ff9f7d2c19b5326aed6ad2858c30476
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Feb 20 22:30:14 2021 +0100

    Fix memory leak in broken file in JBIG2Stream::readGenericBitmap

    It could happen that codingLine succeeds but refLine fails because
    we're
    just on the edge of the allocatable memory so free codingLine just in
    case

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

commit 3746704a810fc9a67a91444da300e0683d452e6d
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Feb 20 22:25:06 2021 +0100

    Gfx: Make clear neither printCommands nor profileCommands change

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

commit a622a5a88242fc99c3ce37879337b980458fc4e6
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Feb 20 22:22:03 2021 +0100

    Mark Object::streamGetChar[s] as non const

    Calling them twice in a row will potentially return different
    things, so
    I would say probably don't qualify as const

 poppler/Object.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

commit 5d08242584215a5ccf6201b94ca00d96f48c9c54
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Feb 20 22:19:08 2021 +0100

    Fix leak in case of fread failing

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

commit 61d052e9aade5bec68b07fad7c0fc7521f8e86a9
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Feb 20 21:46:19 2021 +0100

    Make getMin return the min, not the max ^_^

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

commit 94e310e85049ffec92217aa5ac5959dec217fa25
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Feb 14 12:17:31 2021 +0100

    Update (C)

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

commit d6cccfb8d814d89c51c9e65563be2e475f46212b
Author: Nelson Benítez León <nbenitezl@gmail.com>
Date:   Mon Feb 8 14:06:15 2021 -0400

    TextSelectionDumper: Fix getText() for space after word

    Fix TextSelectionDumper::getText() (which is
    currently only used by the glib frontend) to
    not default to add a space after word in the
    case the word is explicitly set to not carry
    that space by means of the 'spaceAfter' TextWord
    field.

    Fixes issue #1042

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

commit e7fa274dd7c0bd5e66a3b68329d7d56541bb839b
Author: Kyle Auble <kyle.auble@outlook.com>
Date:   Sat Nov 28 13:42:13 2020 -0500

    glib: Add deprecation guards for compiler

 glib/poppler-attachment.h | 10 ++++++----
 glib/poppler-document.h   |  2 +-
 glib/poppler-page.cc      |  5 ++++-
 glib/poppler-page.h       |  4 ++--
 4 files changed, 13 insertions(+), 8 deletions(-)

commit db52669444284b8ab00cbb12574496f489b2e093
Author: Kyle Auble <kyle.auble@outlook.com>
Date:   Wed Oct 28 00:49:42 2020 -0400

    glib: Update more gtk-doc comments

    Expanding the note for poppler_document_new_from_data() fixes #550.
    Formally deprecating it also closes #100 as moot.

 glib/poppler-document.cc | 29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)

commit 4d3d3e31c8b1ae0a4169214a0e3f085a8f01f7a9
Author: Kyle Auble <kyle.auble@outlook.com>
Date:   Tue Oct 27 23:46:09 2020 -0400

    glib: Deprecate unintentionally public class

    Fixes #33 by settling PopplerAttachmentClass (item 3).

 glib/poppler-attachment.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

commit 133fb388029ec6e124e74b3a4111da20abe9ce7e
Author: Kyle Auble <kyle.auble@outlook.com>
Date:   Tue Oct 27 22:51:59 2020 -0400

    glib: Document a recently added struct

 glib/poppler-action.h | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

commit f58525e501684358a377b6412ea514a2ed8af333
Author: Evan Nemerson <evan@coeus-group.com>
Date:   Thu Feb 14 03:55:01 2013 -0800

    glib: add documentation for PopplerActions

    Resolves most of #33 (items 1 & 2)

    Signed-off-by: Kyle Auble <kyle.auble@outlook.com>

 glib/poppler-action.h | 95
 +++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 93 insertions(+), 2 deletions(-)

commit e21c83650f15a197b286f8eed8c7d723c6900925
Author: Oliver Sander <oliver.sander@tu-dresden.de>
Date:   Wed Feb 10 21:36:51 2021 +0100

    pdftoppm: Fix rounding bug in computation of output bitmap size

    When a specific output image size was requested, the code would use
    that size to compute the target resolution, and then use the
    resolution to get the image size back.  In finite-precision
    arithmetic the resulting image size is not necessarily an
    integer, and a subsequent call to `ceil` then sometimes lead to
    an image size that was 1 larger than what was explicitly
    requested.

    Fix this by using a given image size directly, without converting
    it to resolution and back.

    BUG: https://gitlab.freedesktop.org/poppler/poppler/issues/927

 utils/pdftoppm.cc | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

commit 5528ab8a5c274fb8da938bff9ed51e492a39a12b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Feb 12 14:30:25 2021 +0100

    pdfseparate: Remove exitCode variable

 utils/pdfseparate.cc | 31 ++++++++++++-------------------
 1 file changed, 12 insertions(+), 19 deletions(-)

commit 2cc34b8e14649381fc1d8b90c0a861f7fe2c08e3
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Feb 12 14:27:24 2021 +0100

    pdftoppm: Remove exitcode variable

 utils/pdftoppm.cc | 28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)

commit f51a042ace89c6fa69948356da6f7422a1e9a88b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Feb 12 14:23:53 2021 +0100

    pdfunite: remove exitCode variable

 utils/pdfunite.cc | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

commit 63177bca2e15ce1d75b1e14581664d49c1bf8ed9
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Feb 13 11:36:01 2021 +0100

    Update (C)

 utils/pdftoppm.cc | 1 +
 1 file changed, 1 insertion(+)

commit 282b9ea0c0db18ed8177e2123996569d232c12a0
Author: Nelson Benítez León <nbenitezl@gmail.com>
Date:   Fri Feb 12 11:47:38 2021 -0400

    glib: keep same visual appearance between displayed and copied text

    When copying text from displayed document to the clipboard,
    we want a normalization that preserves 'canonical equivalence'
    i.e. that the text after normalization is not visually
    different than the original text. Our previous normalization
    was just preserving unicode 'compatibility'.

    Relevant documentation:
    * https://www.win.tue.nl/~aeb/linux/uc/nfc_vs_nfd.html
    * https://en.wikipedia.org/wiki/Unicode_equivalence
    *
    https://developer.gnome.org/glib/stable/glib-Unicode-Manipulation.html#g-utf8-normalize

    Issue #724

 glib/demo/selections.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

commit 2e62feafbc5095cedf948aefdf771d328d978de9
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Feb 12 14:16:09 2021 +0100

    Improve well formed check for shading functions

 poppler/GfxState.cc | 191
 ++++++++++++++++++++++++++++++++++++++++++++--------
 poppler/GfxState.h  |  16 ++++-
 2 files changed, 176 insertions(+), 31 deletions(-)

commit 4d45cf37f3f74fdf6b02be73a051631abcf0e665
Author: Diogo Kollross <diogoko@gmail.com>
Date:   Fri Feb 12 14:15:03 2021 +0000

    pdftoppm: Add -progress option

 utils/pdftoppm.1  | 6 ++++++
 utils/pdftoppm.cc | 6 ++++++
 2 files changed, 12 insertions(+)

commit 33ae035d03e56e4f37ebb33ac109bbb71084dc93
Author: Oliver Sander <oliver.sander@tu-dresden.de>
Date:   Thu Feb 11 20:22:36 2021 +0100

    Make PDFDocBuilder return a std::unique_ptr

    This make the memory ownership cleaner, and allows to simplify
    a bit of error handling code in the `utils` directory.

 poppler/CurlPDFDocBuilder.cc  |  5 +++--
 poppler/CurlPDFDocBuilder.h   |  3 ++-
 poppler/LocalPDFDocBuilder.cc |  7 ++++---
 poppler/LocalPDFDocBuilder.h  |  3 ++-
 poppler/PDFDoc.cc             |  6 ++++--
 poppler/PDFDoc.h              |  4 ++--
 poppler/PDFDocBuilder.h       |  5 ++++-
 poppler/PDFDocFactory.cc      |  4 ++--
 poppler/PDFDocFactory.h       |  6 ++++--
 poppler/StdinPDFDocBuilder.cc |  5 +++--
 poppler/StdinPDFDocBuilder.h  |  3 ++-
 utils/pdfdetach.cc            |  5 ++---
 utils/pdfimages.cc            | 30 +++++++++---------------------
 utils/pdfinfo.cc              | 11 +++++------
 utils/pdftocairo.cc           | 10 ++++------
 utils/pdftohtml.cc            | 11 ++++-------
 utils/pdftoppm.cc             | 39
 +++++++++++++++------------------------
 utils/pdftops.cc              | 30 ++++++++++++++----------------
 utils/pdftotext.cc            |  9 ++++-----
 19 files changed, 89 insertions(+), 107 deletions(-)

commit 22abc5e390c10fe09a82912b2636fa6b416980a7
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Feb 10 00:47:49 2021 +0100

    Add missing poppler-qt6.pc.cmake

 CMakeLists.txt       |  3 +++
 poppler-qt6.pc.cmake | 12 ++++++++++++
 2 files changed, 15 insertions(+)

commit 97da689ccc6a1214e17c2f09d28d3d4ad05dfde6
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Feb 9 00:56:51 2021 +0100

    Update (C)

 utils/pdftotext.cc | 1 +
 1 file changed, 1 insertion(+)

commit 2f40575018d75a1412f5c4f8616dfe26d46f504e
Author: William Bader <williambader@hotmail.com>
Date:   Mon Feb 8 23:29:05 2021 +0000

    Add pdftotext -cropbox option

 utils/pdftotext.1  |  3 +++
 utils/pdftotext.cc | 14 ++++++++++----
 2 files changed, 13 insertions(+), 4 deletions(-)

commit c72a1c31b40322f660b6529e2dab077d3bf7b79b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Feb 7 23:47:52 2021 +0100

    PSOutputDev: Fix stack overflow in broken files

    oss-fuzz/29909

 poppler/PSOutputDev.cc | 27 ++++++++++++++++++++++-----
 poppler/PSOutputDev.h  |  1 +
 2 files changed, 23 insertions(+), 5 deletions(-)

commit 2589f3252fe304bd52be2a9322915c5397be4b09
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Feb 7 23:37:56 2021 +0100

    OutputDev:tilingPatternFill pass the GfxTilingPattern

    instead of lots of fields from it

    Makes the signature simpler :)

 poppler/CairoOutputDev.cc   | 10 +++++++---
 poppler/CairoOutputDev.h    | 11 +++--------
 poppler/Gfx.cc              |  3 +--
 poppler/OutputDev.h         |  5 ++---
 poppler/PSOutputDev.cc      | 10 ++++++++--
 poppler/PSOutputDev.h       |  5 ++---
 poppler/PreScanOutputDev.cc |  9 ++++-----
 poppler/PreScanOutputDev.h  |  5 ++---
 poppler/SplashOutputDev.cc  | 11 +++++++----
 poppler/SplashOutputDev.h   |  5 ++---
 utils/ImageOutputDev.cc     |  5 ++---
 utils/ImageOutputDev.h      |  5 ++---
 12 files changed, 42 insertions(+), 42 deletions(-)

commit 0ea6219dd1f2531d44eacfc584e331ecb4b46fb8
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Feb 7 18:59:24 2021 +0100

    CharCodeToUnicode::parseCMap1: Bring back the delete

    For some reason i deleted it on the previous commit

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

commit 41f5acecf50aa6b16f95aca557dbcf6b49b8f394
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Feb 6 23:58:07 2021 +0100

    Fix parsing text in some broken pdf files

    Workaround imported from xpdf 4.02

    Fixes issue #1040

 poppler/CharCodeToUnicode.cc | 112
 ++++++++++++++++++++++++++++++++++++++++---
 poppler/CharCodeToUnicode.h  |   5 +-
 2 files changed, 108 insertions(+), 9 deletions(-)

commit 5b8f942fe4b9e0d3aeed3422b92362018d88429c
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Feb 3 22:05:42 2021 +0100

    CI: new clang-format

 .gitlab-ci.yml      |  4 ++--
 README.contributors |  2 +-
 poppler/Annot.cc    | 21 +++++++++++----------
 poppler/Catalog.cc  |  8 ++++++--
 4 files changed, 20 insertions(+), 15 deletions(-)

commit b876a31407279329c75bc7ddf541c8c5af07152b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Feb 1 22:23:11 2021 +0100

    poppler 21.02.0

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

commit 91de00020cdb7689692f3af3fde6decbdb22fc4e
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Jan 27 23:34:51 2021 +0100

    Update (C)

 poppler/GfxState.cc | 2 +-
 poppler/GfxState.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

commit 129905529ddfe926b252d278b7a55dd83f432f55
Author: Philipp Knechtges <philipp-dev@knechtges.com>
Date:   Wed May 27 22:24:57 2020 +0200

    GfxCal*ColorSpace: introduce Bradford transform for chromatic
    adaptation

    This brings the lcms2 code path and the non-lcms2 code path closer
    to each
    other in terms of color reproduction.
    So far the following points were missing, which are now added in
    this commit:
    - Both code paths did either not adjust for a different source white
    point at all (lcms2 code path)
      or did some simple scaling. The code has now been adjusted to use
      the Bradford transform
      to adapt to either the D50 or D65 white point, depending on the
      code path.
    - The non-lcms2 code path so far used the square root as an
    approximate gamma function.
      The correct sRGB gamma function has now been added.

 poppler/GfxState.cc | 182
 +++++++++++++++++++++++++++++++++-------------------
 poppler/GfxState.h  |   3 -
 2 files changed, 115 insertions(+), 70 deletions(-)

commit 222f96edc379d94661f5cab4c22c8cc9122d6e21
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Jan 18 00:33:49 2021 +0100

    qt: Fix regression in QIODeviceOutStream + MSVC

    vsnprintf actually works fine than qvsnprintf on MSVC nowadays so use
    that

 qt5/src/poppler-qiodeviceoutstream.cc | 8 ++++----
 qt6/src/poppler-qiodeviceoutstream.cc | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

commit 7c6a8b90ebaf2d5aaad8d2643601e59fa2cc4a0e
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Jan 18 00:13:08 2021 +0100

    Make checkedAdd work for long long in MSVC

 goo/GooCheckedOps.h | 22 +++++++++++++++++++++-
 1 file changed, 21 insertions(+), 1 deletion(-)

commit 6fed4c9ff25fd99e164c94519128803db0593e96
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Jan 16 12:31:36 2021 +0100

    FoFiTrueType::cvtSfnts: Fix uninitialized memory read on broken files

    Initialize maxUsedGlyph after the early check returns

    oss-fuzz/29629

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

commit 051cae3b34226953aa0381f850e8e6eaa0b564bd
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Jan 16 00:11:37 2021 +0100

    qt: Properly export NewSignatureData

 qt5/src/poppler-qt5.h | 4 ++--
 qt6/src/poppler-qt6.h | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

commit d776dafbd40e75f35d6a6fc6cb012f158ee1409d
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Jan 15 16:41:25 2021 +0100

    Splash: fix uninitialized memory read on broken files

    oss-fuzz/23086

 splash/Splash.cc | 47 +++++++++++++++++++++++++++++++----------------
 splash/Splash.h  | 12 ++++++------
 2 files changed, 37 insertions(+), 22 deletions(-)

commit 4becde57a2fdfd095e400dd9ef64e64d5e94f858
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Jan 15 16:08:15 2021 +0100

    CCITTFaxStream: Fix uninitialized memory read in broken files

    oss-fuzz/8795

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

commit c0f34e983761b15e2c9d5fa6628f26fa7d362548
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Jan 15 16:04:46 2021 +0100

    Relax the check in Gfx::opSetFillGray

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

commit 548fe49fa53ff0ff63bc1a437ab04908f866cb87
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Jan 15 16:01:01 2021 +0100

    Gfx::opSetFillRGBColor: Fix uninitialized memory read in bad files

    Make sure colorspace doesn't need more comps than we have

    oss-fuzz/29522

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

commit 3252bc323c814eb010df011024f06597755b4b7d
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jan 10 20:15:39 2021 +0100

    Don't try to read xref at negative stream positions

    oss-fuzz/29460

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

commit fec79bfc7ed1573a8d92ac77bcb225dd032db296
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jan 10 19:45:23 2021 +0100

    FoFiTrueType::cvtSfnts: Fix uninitialized memory read on broken files

    oss-fuzz/29386

 fofi/FoFiTrueType.cc | 4 ++++
 1 file changed, 4 insertions(+)

commit e68410e359da932c7f30d8f0a41a5496268b339c
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Jan 9 17:34:55 2021 +0100

    Gfx::opSetFillGray: Make sure the colorspace is gray

    Otherwise we will end up doing an uninitialized memory read down the
    road

    oss-fuzz/10040

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

commit 9dcf1e396a240df50bcc05339855732d1535260b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Jan 9 17:34:29 2021 +0100

    Update (C)

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

commit 60fb23c1d9530bb37558af38d4f616d984a42586
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Jan 9 11:24:30 2021 +0100

    XRef::readXRef: Improve overflow check

    oss-fuzz/11744

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

commit a8fdb464e8c1ccc920c064324d7289fa05c1cf1d
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Jan 8 16:27:50 2021 +0100

    Also protect against malformed GfxPatchMeshShading

    oss-fuzz/11197

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

commit f1b21278330a1a1f275f224a2ffd56dff45c5b4c
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Jan 8 16:12:28 2021 +0100

    GfxDeviceNColorSpace: Shift the validity check to the constructor

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

commit 2308e6fbb6f5afa20bb59ef3378fdb63de74c436
Author: Albert Astals Cid <aacid@kde.org>
Date:   Fri Jan 8 13:55:40 2021 +0100

    Fix uninitialized memory read on broken files

    oss-fuzz/10059

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

commit 04035f915627a7e470a5509bccffedefb845d786
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Jan 7 00:09:26 2021 +0100

    JBIG2Stream: Protect against yet another potential overflow

    oss-fuzz/29335

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

commit 562770a741b9613b4e015b60e60d6ced1ac8926b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Thu Jan 7 00:04:25 2021 +0100

    PSOutputDev: Fix memory leak on broken files

    oss-fuzz/29330

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

commit 5c28b47bb4e89d10f82d80d3664384149f8f768d
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Jan 6 12:08:39 2021 +0100

    Fix leak introduced in 0e6c3ff9bb4390d2b426a4cddbb638c19811055d

    oss-fuzz/29305

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

commit 2b82271415000e776b54f0214d564d28170d9c6b
Author: Albert Astals Cid <aacid@kde.org>
Date:   Wed Jan 6 00:06:03 2021 +0100

    JBIG2Stream::readTextRegion: Fix yet another potential integer
    overflow

    oss-fuzz/27783

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

commit d0497325555d60c8c44f8945f5a99ab6a4d7c252
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Jan 5 23:55:46 2021 +0100

    Generalize the EOFStream wrapping EOFStream code

 poppler/Stream.cc | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

commit 6c9f9a491a221fb1fccfe758bc92308ff1a692d1
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Jan 5 13:10:30 2021 +0100

    FoFiType1C::cvtGlyph: Fix uninitialized memory read on broken files

    oss-fuzz/29269

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

commit d5ac5a3aef453a55c175cb091e304cc463dd0ef8
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Jan 5 13:07:04 2021 +0100

    Fix two k that should have been k+1

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

commit 0e6c3ff9bb4390d2b426a4cddbb638c19811055d
Author: Albert Astals Cid <aacid@kde.org>
Date:   Tue Jan 5 00:09:43 2021 +0100

    Check obj1 is a stream before getting the stream

    It seems we already did this check a few lines above, and indeed
    we did,
    but on very broken documents, if arr[1] is a Ref, getting objects may
    end up in a reconstruct xref call which may end up changing the
    type of
    arr[1] the next time we ask for it

    oss-fuzz/29260

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

commit 3ac779d9a9d2c63433d3765c82a2724947d86a15
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Jan 4 23:54:52 2021 +0100

    FoFiTrueType::parse: If we don't have tables parsing didn't succeed

    oss-fuzz/29217

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

commit e4346ae34b24ce84a4aeae539f26cab49497450c
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Jan 4 23:39:54 2021 +0100

    PSOutputDev: protect against potential divide by 0

    oss-fuzz/29241

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

commit 9bb28091b64c1b19dcdccb63d50593abc15f627a
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Jan 4 23:24:36 2021 +0100

    JBIG2Stream::readSymbolDictSeg: Return early if one of the bitmaps
    is null

    Doesn't seem to regress any of the valid files i have and saves some
    broken ones that loop for hours

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

commit e126be08ea94d829a2d25aabb2ef79cc7bf65d4c
Author: Albert Astals Cid <aacid@kde.org>
Date:   Mon Jan 4 18:05:44 2021 +0100

    SplashXPathScanner: If any of the segments of the path is nan,
    path is not valid

    Fixes crash in broken files #1022

 splash/SplashXPathScanner.cc | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

commit 43126be585e587f6f571a0170f0f63098b82d064
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jan 3 22:33:30 2021 +0100

    PSOutputDev: Fix memory leak on broken files

    oss-fuzz/29201

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

commit 8f599d8caf35911f168fd9dbc99a68dc1ac12a1c
Author: Oliver Sander <oliver.sander@tu-dresden.de>
Date:   Sun Jan 3 08:56:17 2021 +0100

    JBIG2Stream: Store segments as std::unique_ptrs

    This makes the memory handling more error-proof, because
    all necessary calls to 'delete' happen automatically.

    This patch introduces several calls to std::unique_ptr::release,
    and hence break the explicit ownership chain established
    by using std::unique_ptr.  Not all of the calls are strictly
    necessary, but without them the patch would get a lot
    bigger than it is.  Better keep that for another day.

 poppler/JBIG2Stream.cc | 125
 +++++++++++++++++++------------------------------
 poppler/JBIG2Stream.h  |  18 ++++---
 2 files changed, 56 insertions(+), 87 deletions(-)

commit bc6acbfff6afa7d720abe7f79abe02e5a6591ef4
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jan 3 19:20:45 2021 +0100

    PSOutputDev: fix a few integer overflows

    Now that we have oss-fuzz coverage i guess more will be coming
    soon ^_^

    oss-fuzz/29199

 poppler/PSOutputDev.cc | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

commit af267b33cc42ccb9d1a89e06fed1481657c4b3f0
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jan 3 12:25:01 2021 +0100

    Update (C)

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

commit 72183a3ff881316bb470cc0f6db08cf9ef044e53
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jan 3 12:10:55 2021 +0100

    Don't wrap EOFStream in an EOFStream

    It's unneeded and can be relatively easily used to create stack
    overflows

    oss-fuzz/29184

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

commit bae34cd97a94ff9aa7ad9458f04e494451828b0d
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jan 3 01:42:06 2021 +0100

    fuzz the ps converter code

 qt5/tests/fuzzing/qt_pdf_fuzzer.cc | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

commit 04aa2f7e416eb232821576fec7ed61b0b7273fbc
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jan 3 01:06:39 2021 +0100

    CI: Enable goostring-format-checker clang checker

 .gitlab-ci.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

commit 4d58ff810bb977855c55d4de7d75899aa9ef55b7
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jan 3 01:05:01 2021 +0100

    Change a few variables to types GooString::format knows about

    None of them is problematic, but being more strict let's use
    enable the
    goostring-format-checker clang plugin

 poppler/CurlCachedFile.cc | 6 +++---
 poppler/DateInfo.cc       | 3 ++-
 poppler/PSOutputDev.cc    | 5 +++--
 3 files changed, 8 insertions(+), 6 deletions(-)

commit 6b4f07ad1b74a2fa715d76d9da9cef3a2670d92c
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jan 3 01:02:53 2021 +0100

    HtmlOutputDev: Fix error() parameter type

    This would cause a crash if that error() is ever called

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

commit 3928dde50bfd44d340ef0cb302610cbcf9bece58
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jan 3 00:09:22 2021 +0100

    Account for fread potentially failing

 poppler/Form.cc | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

commit ec9420b76c6a1dfc7101b03f475fa0c91fa49a47
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sun Jan 3 00:04:17 2021 +0100

    Account for Gfseek potentially failing

 poppler/Form.cc | 34 ++++++++++++++++++++++++++--------
 1 file changed, 26 insertions(+), 8 deletions(-)

commit 7e4ec140d1cc6bef375e38f3cf3f613dd7c88bbb
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Jan 2 23:53:32 2021 +0100

    FormWidgetSignature::signDocument: Fix resource leak if something
    goes wrong

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

commit 43b5a94a610ce8fbb3d017bcdee85ac8f0be5ea4
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Jan 2 23:43:58 2021 +0100

    Fix potential memory leak in FormWidgetSignature::updateOffsets

 poppler/Form.cc | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

commit 27258358cd0b82a762382b8f0aafe06abd698484
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Jan 2 23:36:06 2021 +0100

    clang api changes

 test/goostring-format-checker/README                      | 2 +-
 test/goostring-format-checker/goostring-format-checker.cc | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

commit db171f489ca532e48a1c44e2e3dfb9c069754582
Author: Albert Astals Cid <aacid@kde.org>
Date:   Sat Jan 2 23:03:29 2021 +0100

    Fix memory leak if saving the file fails

 poppler/Form.cc | 3 ++-
