diff -Nru poppler-0.48.0/debian/changelog poppler-0.48.0/debian/changelog --- poppler-0.48.0/debian/changelog 2016-11-05 10:29:43.000000000 +0300 +++ poppler-0.48.0/debian/changelog 2017-01-25 16:06:02.000000000 +0300 @@ -1,3 +1,12 @@ +poppler (0.48.0-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * debian/patches/proper-init.patch: + - Fix crashes in atril's and evince's thumbnailers on some PDFs + (LP: #1635812). Patch by Marek Kasik. + + -- Vlad Orlov Wed, 25 Jan 2017 16:06:02 +0300 + poppler (0.48.0-2) unstable; urgency=medium * Upload to unstable. (See #839869) diff -Nru poppler-0.48.0/debian/patches/proper-init.patch poppler-0.48.0/debian/patches/proper-init.patch --- poppler-0.48.0/debian/patches/proper-init.patch 1970-01-01 03:00:00.000000000 +0300 +++ poppler-0.48.0/debian/patches/proper-init.patch 2017-01-25 16:06:02.000000000 +0300 @@ -0,0 +1,26 @@ +Index: poppler-0.48.0/poppler/GfxState.cc +=================================================================== +--- poppler-0.48.0.orig/poppler/GfxState.cc ++++ poppler-0.48.0/poppler/GfxState.cc +@@ -28,6 +28,7 @@ + // Copyright (C) 2013 Hib Eris + // Copyright (C) 2013 Fabio D'Urso + // Copyright (C) 2015 Adrian Johnson ++// Copyright (C) 2016 Marek Kasik + // + // To see a description of the changes please see the Changelog file that + // came with your tarball or type make ChangeLog if you are building from git +@@ -2050,7 +2051,12 @@ GfxColorSpace *GfxICCBasedColorSpace::pa + error(errSyntaxWarning, -1, "read ICCBased color space profile error"); + } else { + cmsHPROFILE dhp = (state != NULL && state->getDisplayProfile() != NULL) ? state->getDisplayProfile() : displayProfile; +- if (dhp == NULL) dhp = RGBProfile; ++ if (dhp == NULL) { ++ if (unlikely(RGBProfile == NULL)) { ++ GfxColorSpace::setupColorProfiles(); ++ } ++ dhp = RGBProfile; ++ } + unsigned int cst = getCMSColorSpaceType(cmsGetColorSpace(hp)); + unsigned int dNChannels = getCMSNChannels(cmsGetColorSpace(dhp)); + unsigned int dcst = getCMSColorSpaceType(cmsGetColorSpace(dhp)); diff -Nru poppler-0.48.0/debian/patches/series poppler-0.48.0/debian/patches/series --- poppler-0.48.0/debian/patches/series 2016-11-05 10:25:02.000000000 +0300 +++ poppler-0.48.0/debian/patches/series 2017-01-25 16:06:02.000000000 +0300 @@ -1,2 +1,3 @@ upstream_pdfseparate-remove-extra-in-error-message.patch qt-visibility.diff +proper-init.patch