Albert Astals Cid
7cfa85c38b
Only check if we are out of bounds if the object we are searching for has a known id (0 also means not known)
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=773029
18 years ago
Albert Astals Cid
ddae88ef84
Domain order is x_min x_max y_min y_max and not x_min y_min x_max y_max
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=772886
18 years ago
Albert Astals Cid
299075082a
PS cos and sin input values are degrees so convert to radians so we can use the cos and sin cmath functions
...
CCBUG: 157497
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=772693
18 years ago
Albert Astals Cid
7fa77d9169
atan operator must yield a degrees result between 0 and 360
...
BUG: 157497
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=772669
18 years ago
Albert Astals Cid
f6adf02dd1
makeItCompile!!!
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=772668
18 years ago
Albert Astals Cid
0d8a6ebffb
PDF spec says name tokens have a maximum length of 127, but there are some docs in the wild with more than that and they work on acroread so increase the allowed length to 128+127
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=772156
18 years ago
Albert Astals Cid
5917350e46
Ensure we don't draw outside the main bitmap on SplashOutputDev::setSoftMask
...
BUG: 157000
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=769259
18 years ago
Albert Astals Cid
488659a9b5
Draw correctly underlined links
...
BUG: 151359
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=765387
18 years ago
Albert Astals Cid
38f52f4de2
Yet another gmallocn to gmallocn_checkoverflow, fixes ugly exit produced by page 61 of http://nlp.stanford.edu/IR-book/pdf/irbookonlinereading.pdf
...
BUGS: 153949
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=748237
19 years ago
Albert Astals Cid
9e0a5924da
another gmallocn -> gmallocn_checkoverflow
...
Fixes crashes on erroneus pdf sent by Than Ngo
CCMAIL: than@redhat.com
CCMAIL: mueller@kde.org
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=734456
19 years ago
Dirk Mueller
9e9f50fd7f
fixes for CVE-2007-4352/CVE-2007-5392/CVE-2007-5493
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=733953
19 years ago
Albert Astals Cid
7bad8214a8
Splash rework, check if font is inside clip area before rendering it to a temporary bitmap. Fixes bug 150693
...
This change is not trivial. What i did is:
It is getGlyph the one that does the intersection between clip area and rendering area of the font instead fillGlyph2
That means some clipRes = state->clip->testRect but we win more robustness against broken pdf that specify HUGE fonts
BUG: 150693
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=728256
19 years ago
Albert Astals Cid
4d3fe8bb2f
Sesame Street Class #1 : Left is left, Right is right
...
Sesame Street Class #2 : If you want to print parameters 0 and 1, use 0 and 1, not 0 and 0
This fixes some printing problems with margins
BUGS: 149560
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=708815
19 years ago
Albert Astals Cid
5e266d95a9
Don't crash when we don't have a ctu. Fix imported from poppler
...
19 years ago
Pino Toscano
479fc53855
Albert's fix for poppler bug 12014.
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=700519
19 years ago
Dirk Mueller
595cd77a97
newest round of xpdf fixes (CVE-2007-3387)
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=694346
19 years ago
Dirk Mueller
979475110a
fix array overrun
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=660696
19 years ago
Albert Astals Cid
5e4293b61d
Add an option to force the printing of the page rasterized as image instead of converting PDF commands to PS commands.
...
This "decreases" printing quality as the thing you print is no longer vectorial, but it is useful for printing files
that would fail otherwise because our PDF->PS converter is not as perfect as it should be.
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=651906
19 years ago
Albert Astals Cid
184a813aaf
lost this while doing the 3.02 merging, "thanks" that i'm redoing the merge again in poppler and found the problem :D
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=649459
19 years ago
Albert Astals Cid
2c34769f50
Accept Width and Height as reals too
...
BUGS: 143322
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=645533
19 years ago
Albert Astals Cid
9a3d143fb3
Convert that Gulong t; to Guint t; to fix printing images on 64 bit failing.
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=641497
19 years ago
Albert Astals Cid
b7c5a9b276
protect against bad pdf, for example one in bug 132042
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=641490
19 years ago
Albert Astals Cid
f82d702341
fix regression on 132042
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=641479
19 years ago
Albert Astals Cid
7d2878b035
removed this while merging, bad bad bad
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=641462
19 years ago
Albert Astals Cid
5db175844d
Merge xpdf 3.02 changes, this is a quite big patch but fixes lots of problems so i'm commiting it. Pino, cartman and me have been working on it for around a week and we have found no noticeable regression and lots of improvements. Obviously more testing is welcome.
...
Ok'ed by coolo on k-c-d
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=641456
19 years ago
Pino Toscano
c8f19ab188
When generating a Postscript document, output the %%Title for the PS document this way:
...
- the document title, if it has one, or
- the file name of the document (eg foo.pdf for /home/me/foo.pdf)
BUGS: 122147
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=622742
19 years ago
Albert Astals Cid
7aaf189cef
Less complete but equally effective and more quick way of fixing the MOAB-06-01-2007 problem.
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=622461
19 years ago
Albert Astals Cid
a752960be3
Keep a set of the already read page tree nodes and each time we follow a new one check if we already processed it so we don't end in a infinite loop.
...
Fixes crash in malicious pdf found at http://projects.info-pull.com/moab/MOAB-06-01-2007.html
It may seem quite intensive but my measurements indicate the page tree processing is I/O bound as i got the same average times with and without this patch. Obviously if anyone wants to measure more it'll be appreciated.
CCMAIL: okular-devel@kde.org
CCMAIL: security@kde.org
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=622127
19 years ago
Albert Astals Cid
4fb6d02ace
Merge ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.01pl2.patch
...
Most of the patches were already on our codebase but this are some refinements over them
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=621507
19 years ago
Albert Astals Cid
46a33b0c6b
Fix gray calculation, patch by Scott Turner <scotty1024@mac.com>
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=615000
20 years ago
Albert Astals Cid
b8df2fda3a
fix typo error
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=605704
20 years ago
Albert Astals Cid
796bbd14fb
Painting an image of 0x0 does not seem right and is making it crash
...
With this code we get roughly the same output than acroread, this basically means your pdf is broken
BUGS: 135417
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=594669
20 years ago
Albert Astals Cid
32a192a1b4
add path of gs fonts on Arch Linux.
...
Thank $deity that we switched to fontconfig in poppler
Tal, you should ask Arch to rebuild their kpdf package with this patch added.
BUGS: 133819
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=582558
20 years ago
Albert Astals Cid
c7840973fc
more leak fixes
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=572008
20 years ago
Albert Astals Cid
8b199c7f29
leaks--
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=571992
20 years ago
Albert Astals Cid
d79c7ece1f
make nGfxBlendModeNames define return the correct size of the gfxBlendModeNames array so it does not access invalid memory when the blend mode is not found. Discovered by Krzysztof Kowalczyk
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=567994
20 years ago
Albert Astals Cid
12cf7ba7c4
don't crash when we can not process a GfxImageColorMap correctly
...
BUGS: 130846
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=563106
20 years ago
Albert Astals Cid
d0cde69847
Reset the jpeg structures on reset.
...
BUGS: 129971
Fix will be on KDE 3.5.4
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=555943
20 years ago
Albert Astals Cid
228326b365
[micro] optimization by Mario Teijeiro Otero
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=550397
20 years ago
Albert Astals Cid
6bf75d6238
When any of the chars that we
...
are passing to the UGooString is not pdfencodable, do not
encode the string, because we loose information if we do,
this fixes rendering of
http://publikationen.ub.uni-frankfurt.de/volltexte/2005/890/pdf/TR_abs_g.pdf
and other docs with type3 fonts and ligatures
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=550074
20 years ago
Albert Astals Cid
e9528dd928
quick fix for 126760, you get the same (or it seems to me) image that with acroread so may not be THAT bad
...
BUGS: 126760
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=537798
20 years ago
Albert Astals Cid
308685f43a
fix memory leak.
...
More at https://bugs.freedesktop.org/show_bug.cgi?id=6765
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=535464
20 years ago
Albert Astals Cid
62be6529a7
some improvements from the "suspicious code mail" in k-c-d
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=533073
20 years ago
Albert Astals Cid
6d50525f57
Some fix for JBIG2 PDF stolen from poppler ;-)
...
Fixes http://ia311040.us.archive.org/~rkumar/test1_opt.pdf for instance
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=526835
20 years ago
Albert Astals Cid
c06ffeeb4a
Comparing int with uints is a very bad idea.
...
Fixes http://www.produkte.panasonic.de/doc/u0000/x70/userguide/x70_userguide_1_d_-.pdf
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=525229
20 years ago
André Wöbbeking
8936884e90
fixed INCLUDES
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=522113
20 years ago
Dirk Mueller
6634ba7f6a
fix uninitialized memory access
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=516729
20 years ago
Dirk Mueller
0f9e67f831
CVE-2006-0301 buffer overflow
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=505042
20 years ago
Albert Astals Cid
111c88dc3f
So not assume ctu will exist
...
BUGS: 120985
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=503607
20 years ago
Albert Astals Cid
e4603f65d2
Fix for kpdf is very slow on some kind of very broken docs like http://www.serialata.org/docs/serialata10a.pdf
...
svn path=/branches/KDE/3.5/kdegraphics/kpdf/; revision=499429
20 years ago