summaryrefslogtreecommitdiff
path: root/splash
AgeCommit message (Collapse)AuthorFilesLines
2014-12-01Run dos2unix as suggested by Volker GrabschAlbert Astals Cid1-139/+139
2014-09-30Map Standard/Expert encoding ligatures to AGLFN namesAdrian Johnson1-0/+8
for use with substitute fonts that are not compatible with the Standard 14 fonts. Bug 80093
2014-08-12Makefile.am cleanupsHib Eris1-21/+21
Bug #79411
2014-07-21Improve Overprintmode and shadingsAlbert Astals Cid2-3/+27
Bug #80998
2014-07-20Update Thomas' (C)Albert Astals Cid2-2/+2
2014-07-12Error out instead of exiting if allInter grows too muchThomas Freitag2-9/+18
Bug #78714
2014-04-06Don't check twice for the same variable ^_^Albert Astals Cid1-1/+1
CID #16804
2014-04-06Fix memory leakAlbert Astals Cid1-0/+2
CID #16852
2014-03-28Fix error reported by ASAN in 3628.asan.0.3910.pdfAlbert Astals Cid1-0/+3
==20743== ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60040005c6ef at pc 0x7f8912ca0c90 bp 0x7fff8509ee20 sp 0x7fff8509ee18 READ of size 1 at 0x60040005c6ef thread T0 #0 0x7f8912ca0c8f in expandRow(unsigned char*, unsigned char*, int, int, int) /home/tsdgeos/devel/poppler/splash/Splash.cc:4855 #1 0x7f8912ca1097 in Splash::scaleImageYuXuBilinear(bool (*)(void*, unsigned char*, unsigned char*), void*, SplashColorMode, int, bool, int, int, int, int, SplashBitmap*) /home/tsdgeos/devel/poppler/splash/Splash.cc:4897 #2 0x7f8912c9d2b7 in Splash::scaleImage(bool (*)(void*, unsigned char*, unsigned char*), void*, SplashColorMode, int, bool, int, int, int, int, bool, bool) /home/tsdgeos/devel/poppler/splash/Splash.cc:4127 #3 0x7f8912c98101 in Splash::drawImage(bool (*)(void*, unsigned char*, unsigned char*), void*, SplashColorMode, bool, int, int, double*, bool, bool) /home/tsdgeos/devel/poppler/splash/Splash.cc:3726 #4 0x7f8912c7056a in SplashOutputDev::drawSoftMaskedImage(GfxState*, Object*, Stream*, int, int, GfxImageColorMap*, bool, Stream*, int, int, GfxImageColorMap*, bool) /home/tsdgeos/devel/poppler/poppler/SplashOutputDev.cc:3630 #5 0x7f8912ac7aa7 in Gfx::doImage(Object*, Stream*, bool) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:4646 #6 0x7f8912ac4de0 in Gfx::opXObject(Object*, int) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:4179 #7 0x7f8912a9f33a in Gfx::execOp(Object*, Object*, int) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:903 #8 0x7f8912a9e50f in Gfx::go(bool) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:762 #9 0x7f8912a9e163 in Gfx::display(Object*, bool) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:728 #10 0x7f8912b80e13 in Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) /home/tsdgeos/devel/poppler/poppler/Page.cc:585 #11 0x7f8912b8833f in PDFDoc::displayPageSlice(OutputDev*, int, double, double, int, bool, bool, bool, int, int, int, int, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) /home/tsdgeos/devel/poppler/poppler/PDFDoc.cc:503 #12 0x40311e in savePageSlice(PDFDoc*, SplashOutputDev*, int, int, int, int, int, double, double, char*) /home/tsdgeos/devel/poppler/utils/pdftoppm.cc:222 #13 0x404416 in main /home/tsdgeos/devel/poppler/utils/pdftoppm.cc:521 #14 0x7f89121a8ec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4) #15 0x401d58 in _start (/home/tsdgeos/devel/poppler/build-debug/utils/pdftoppm+0x401d58)
2014-03-28Fix error reported by ASAN in 590.asan.0.7288.pdfAlbert Astals Cid1-1/+1
==31898== ERROR: AddressSanitizer: heap-use-after-free on address 0x60ae0007432c at pc 0x7f03483026aa bp 0x7fff6ec0c820 sp 0x7fff6ec0c818 READ of size 4 at 0x60ae0007432c thread T0 #0 0x7f03483026a9 in SplashFTFont::getGlyphPath(int) /home/tsdgeos/devel/poppler/splash/SplashFTFont.cc:414 #1 0x7f034829f681 in SplashOutputDev::drawChar(GfxState*, double, double, double, double, double, double, unsigned int, int, unsigned int*, int) /home/tsdgeos/devel/poppler/poppler/SplashOutputDev.cc:2239 #2 0x7f0348100599 in Gfx::doShowText(GooString*) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:4054 #3 0x7f03480fddb0 in Gfx::opShowSpaceText(Object*, int) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:3886 #4 0x7f03480dc33a in Gfx::execOp(Object*, Object*, int) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:903 #5 0x7f03480db50f in Gfx::go(bool) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:762 #6 0x7f03480db163 in Gfx::display(Object*, bool) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:728 #7 0x7f03481bddd1 in Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) /home/tsdgeos/devel/poppler/poppler/Page.cc:585 #8 0x7f03481c52fd in PDFDoc::displayPageSlice(OutputDev*, int, double, double, int, bool, bool, bool, int, int, int, int, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) /home/tsdgeos/devel/poppler/poppler/PDFDoc.cc:503 #9 0x40311e in savePageSlice(PDFDoc*, SplashOutputDev*, int, int, int, int, int, double, double, char*) /home/tsdgeos/devel/poppler/utils/pdftoppm.cc:222 #10 0x404416 in main /home/tsdgeos/devel/poppler/utils/pdftoppm.cc:521 #11 0x7f03477e5ec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4) #12 0x401d58 in _start (/home/tsdgeos/devel/poppler/build-debug/utils/pdftoppm+0x401d58)
2014-03-28Fix error reported by ASAN in 2279.asan.0.1904.pdfAlbert Astals Cid1-2/+2
==20507== ERROR: AddressSanitizer: heap-buffer-overflow on address 0x60420000ff04 at pc 0x7fa1492e8012 bp 0x7fff8406d900 sp 0x7fff8406d8f8 READ of size 4 at 0x60420000ff04 thread T0 #0 0x7fa1492e8011 in SplashFTFont::makeGlyph(int, int, int, SplashGlyphBitmap*, int, int, SplashClip*, SplashClipResult*) /home/tsdgeos/devel/poppler/splash/SplashFTFont.cc:284 #1 0x7fa1492eda32 in SplashFont::getGlyph(int, int, int, SplashGlyphBitmap*, int, int, SplashClip*, SplashClipResult*) /home/tsdgeos/devel/poppler/splash/SplashFont.cc:168 #2 0x7fa1492e7c69 in SplashFTFont::getGlyph(int, int, int, SplashGlyphBitmap*, int, int, SplashClip*, SplashClipResult*) /home/tsdgeos/devel/poppler/splash/SplashFTFont.cc:233 #3 0x7fa1492b3368 in Splash::fillChar(double, double, int, SplashFont*) /home/tsdgeos/devel/poppler/splash/Splash.cc:2714 #4 0x7fa149286a20 in SplashOutputDev::drawChar(GfxState*, double, double, double, double, double, double, unsigned int, int, unsigned int*, int) /home/tsdgeos/devel/poppler/poppler/SplashOutputDev.cc:2270 #5 0x7fa1490e7599 in Gfx::doShowText(GooString*) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:4054 #6 0x7fa1490e4db0 in Gfx::opShowSpaceText(Object*, int) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:3886 #7 0x7fa1490c333a in Gfx::execOp(Object*, Object*, int) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:903 #8 0x7fa1490c250f in Gfx::go(bool) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:762 #9 0x7fa1490c2163 in Gfx::display(Object*, bool) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:728 #10 0x7fa1491a4dd1 in Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) /home/tsdgeos/devel/poppler/poppler/Page.cc:585 #11 0x7fa1491ac2fd in PDFDoc::displayPageSlice(OutputDev*, int, double, double, int, bool, bool, bool, int, int, int, int, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) /home/tsdgeos/devel/poppler/poppler/PDFDoc.cc:503 #12 0x40311e in savePageSlice(PDFDoc*, SplashOutputDev*, int, int, int, int, int, double, double, char*) /home/tsdgeos/devel/poppler/utils/pdftoppm.cc:222 #13 0x404416 in main /home/tsdgeos/devel/poppler/utils/pdftoppm.cc:521 #14 0x7fa1487ccec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4) #15 0x401d58 in _start (/home/tsdgeos/devel/poppler/build-debug/utils/pdftoppm+0x401d58)
2014-03-27Fix error reported by ASAN in 2010.asan.0.1506.pdfAlbert Astals Cid1-4/+9
==18859== ERROR: AddressSanitizer: unknown-crash on address 0x7f1e4a6beb50 at pc 0x7f1e5557444d bp 0x7fff6af3c340 sp 0x7fff6af3bb00 WRITE of size 442216446 at 0x7f1e4a6beb50 thread T0 #0 0x7f1e5557444c (/usr/lib/x86_64-linux-gnu/libasan.so.0+0xe44c) #1 0x7f1e550e04ff in SplashFont::getGlyph(int, int, int, SplashGlyphBitmap*, int, int, SplashClip*, SplashClipResult*) /home/tsdgeos/devel/poppler/splash/SplashFont.cc:206 #2 0x7f1e550d9c69 in SplashFTFont::getGlyph(int, int, int, SplashGlyphBitmap*, int, int, SplashClip*, SplashClipResult*) /home/tsdgeos/devel/poppler/splash/SplashFTFont.cc:233 #3 0x7f1e550a5368 in Splash::fillChar(double, double, int, SplashFont*) /home/tsdgeos/devel/poppler/splash/Splash.cc:2714 #4 0x7f1e55078a20 in SplashOutputDev::drawChar(GfxState*, double, double, double, double, double, double, unsigned int, int, unsigned int*, int) /home/tsdgeos/devel/poppler/poppler/SplashOutputDev.cc:2270 #5 0x7f1e54ed9599 in Gfx::doShowText(GooString*) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:4054 #6 0x7f1e54ed6db0 in Gfx::opShowSpaceText(Object*, int) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:3886 #7 0x7f1e54eb533a in Gfx::execOp(Object*, Object*, int) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:903 #8 0x7f1e54eb450f in Gfx::go(bool) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:762 #9 0x7f1e54eb4163 in Gfx::display(Object*, bool) /home/tsdgeos/devel/poppler/poppler/Gfx.cc:728 #10 0x7f1e54f96dd1 in Page::displaySlice(OutputDev*, double, double, int, bool, bool, int, int, int, int, bool, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) /home/tsdgeos/devel/poppler/poppler/Page.cc:585 #11 0x7f1e54f9e2fd in PDFDoc::displayPageSlice(OutputDev*, int, double, double, int, bool, bool, bool, int, int, int, int, bool (*)(void*), void*, bool (*)(Annot*, void*), void*, bool) /home/tsdgeos/devel/poppler/poppler/PDFDoc.cc:503 #12 0x40311e in savePageSlice(PDFDoc*, SplashOutputDev*, int, int, int, int, int, double, double, char*) /home/tsdgeos/devel/poppler/utils/pdftoppm.cc:222 #13 0x404416 in main /home/tsdgeos/devel/poppler/utils/pdftoppm.cc:521 #14 0x7f1e545beec4 (/lib/x86_64-linux-gnu/libc.so.6+0x21ec4) #15 0x401d58 in _start (/home/tsdgeos/devel/poppler/build-debug/utils/pdftoppm+0x401d58)
2014-03-27Fix error reported by ASAN in 139.asan.0.581.pdfAlbert Astals Cid1-2/+2
==15244== ERROR: AddressSanitizer: SEGV on unknown address 0x605df000f3ee (pc 0x7f1087b3a22e sp 0x7fffec30ff20 bp 0x7fffec30ff80 T0) AddressSanitizer can not provide additional info. #0 0x7f1087b3a22d (/home/tsdgeos/devel/poppler/build-debug/libpoppler.so.46.0.0+0x48f22d) #1 0x7f1087b19d92 (/home/tsdgeos/devel/poppler/build-debug/libpoppler.so.46.0.0+0x46ed92) #2 0x7f1087ae570b (/home/tsdgeos/devel/poppler/build-debug/libpoppler.so.46.0.0+0x43a70b) #3 0x7f1087ae4061 (/home/tsdgeos/devel/poppler/build-debug/libpoppler.so.46.0.0+0x439061) #4 0x7f1087ab9b38 (/home/tsdgeos/devel/poppler/build-debug/libpoppler.so.46.0.0+0x40eb38) #5 0x7f1087900989 (/home/tsdgeos/devel/poppler/build-debug/libpoppler.so.46.0.0+0x255989) #6 0x7f10878f733a (/home/tsdgeos/devel/poppler/build-debug/libpoppler.so.46.0.0+0x24c33a) #7 0x7f10878f650f (/home/tsdgeos/devel/poppler/build-debug/libpoppler.so.46.0.0+0x24b50f) #8 0x7f10878f6163 (/home/tsdgeos/devel/poppler/build-debug/libpoppler.so.46.0.0+0x24b163) #9 0x7f10879d8dd1 (/home/tsdgeos/devel/poppler/build-debug/libpoppler.so.46.0.0+0x32ddd1) #10 0x7f10879e02fd (/home/tsdgeos/devel/poppler/build-debug/libpoppler.so.46.0.0+0x3352fd) #11 0x40311e (/home/tsdgeos/devel/poppler/build-debug/utils/pdftoppm+0x40311e) #12 0x404416 (/home/tsdgeos/devel/poppler/build-debug/utils/pdftoppm+0x404416) #13 0x7f1087000ec4 (/lib/x86_64-linux-gnu/libc-2.19.so+0x21ec4) #14 0x401d58 (/home/tsdgeos/devel/poppler/build-debug/utils/pdftoppm+0x401d58)
2014-03-22Make the test rect go to xMax, yMax not xMax-1,yMax-1Albert Astals Cid1-2/+2
I don't understand why the -1 is there and removing it actually fixes bug #76387
2014-02-12blend usage in PDF with spot colors casue random outputThomas Freitag1-1/+8
The reason for the random colors is the uninitialized local variable cBlend. The blend functions only fills offset 0 to 3, so offset 4 up to 4 + SPOT_NCOMPS are left uninitialized, but all offsets are stored in the bitmap. So we need to initialize these offsets with 0! Bug #74883
2013-12-10correction for knockout transparency groupsThomas Freitag4-16/+68
Fixes test "G" in eci_altona-test-suite-v2_technical2_x4.pdf
2013-08-25use getCMYK/DeviceNLine in CMYK mode if availableThomas Freitag1-2/+0
Second part of bug 66928
2013-08-25Fix pdftops -eps -level1sep rendering of a fileWilliam Bader1-4/+7
Since 8fb243bf11a979af8bfa36427436940706c9f71d we have case splashModeXBGR8: + cSrcNonIso[3] = 255; and that means splashModeDeviceN8 and splashModeCMYK8 can't skip their breaks anymore otherwise the cSrcNonIso[3] gets overwritten Bug #68321
2013-08-18Fix crash in 1026.asan.0.42.pdfAlbert Astals Cid1-1/+2
We were not checking that bitmapOff was in bounds
2013-08-17Fix exit(1) in 1026.asan.0.42.pdfAlbert Astals Cid1-1/+3
The main crash in discussion with Thomas
2013-06-06Speed-up some tiling on a 10x factorThomas Freitag2-5/+13
Bug #64892
2013-05-16Fix splashModeBGR8 renderingThomas Freitag2-4/+24
Also make SplashBitmap able to write splashModeBGR8 images Bug #64381
2013-05-13Merge remote-tracking branch 'origin/poppler-0.22'Albert Astals Cid1-1/+1
Conflicts: splash/Splash.cc
2013-05-13Fix compilation with fixed point mode enabledAlbert Astals Cid1-1/+1
Thanks to Andreas Müller for the tip
2013-03-19Avoid blackboxes on weird files using the thin line modeAlbert Astals Cid2-0/+36
Bug #61719
2013-03-04Merge remote-tracking branch 'origin/poppler-0.22'Albert Astals Cid1-0/+2
2013-03-04Make sure we don't try to paint in x < 0Albert Astals Cid1-0/+2
Fixes crash in KDE bug #315432
2013-02-23Refine splashThinLineShape supportThomas Freitag1-3/+11
2013-02-20Merge remote-tracking branch 'origin/poppler-0.22'Albert Astals Cid1-1/+2
2013-02-19Initialize cSrcNonIso[3] in splashModeXBGR8Albert Astals Cid1-1/+2
Fixes valgrind warning
2013-02-19Fix indentAlbert Astals Cid1-1/+1
2013-02-19Merge remote-tracking branch 'origin/poppler-0.22'Albert Astals Cid1-2/+2
2013-02-19fix indentAlbert Astals Cid1-2/+2
2013-02-12Introduce option SplashThinLineModeThomas Freitag9-22/+100
More info at bug #37347
2013-01-10Fix invalid memory access in 1150.pdf.asan.8.69Albert Astals Cid1-1/+4
2013-01-10Fix invalid memory accesses in 1091.pdf.asan.72.42Albert Astals Cid1-1/+6
2013-01-10Fix invalid memory accesses in 1036.pdf.asan.23.17Albert Astals Cid1-2/+12
2013-01-09Fix crash in broken file 1031.pdf.asan.48.15Albert Astals Cid1-3/+6
2013-01-09Forgot the C of the last commitAlbert Astals Cid1-1/+1
2013-01-09Do not crash in broken documents like 1007.pdf.asan.48.4Albert Astals Cid1-1/+11
2012-12-15Updated copyrightsAlbert Astals Cid1-0/+1
2012-12-09jpegwriter: move #include "jpeglib.h" into .cc fileAdrian Johnson1-1/+1
On cygwin pdftocairo -v shows the wrong version due to jpeglib.h defining PACKAGE_VERSION. Avoid polluting our header files by moving libjpeg.h and libjpeg types into JpegWriter.cc Bug 57687
2012-12-08Fix linewidths in monochrome mode.Matthias Kramm1-1/+1
For zoom levels that scale the page below sqrt(2) of the original resolution, monochrome line widths were wrong (snapped back to 1 pixel wide.) This patch fixes that issue.
2012-12-01Merge commit 'b1dacd1e6ab00eb1976491eb2b45c76671011b38'Albert Astals Cid1-1/+1
2012-11-30Splash: Implement bilinear image scalingAdrian Johnson2-13/+183
Bug #22138
2012-11-23Update copyrightsAlbert Astals Cid1-1/+1
2012-11-17tiff: remove splash dependency and add RGBA supportAdrian Johnson1-2/+21
Bug 57006
2012-11-14Remove unused codeAlbert Astals Cid1-41/+1
2012-11-13Remove < 0 ifs for unsignedAlbert Astals Cid1-8/+0
2012-11-02Implement overprint in qt interfaceThomas Freitag2-1/+74
With minor api fixes by me (Albert Astals Cid)