Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
poppler
poppler
Commits
b224e2f5
Commit
b224e2f5
authored
Jul 15, 2019
by
Albert Astals Cid
Browse files
SplashOutputDev::tilingPatternFill: Fix crash on broken file
Issue
#802
parent
2d191b49
Pipeline
#48937
passed with stages
in 61 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
poppler/SplashOutputDev.cc
View file @
b224e2f5
...
...
@@ -4581,6 +4581,10 @@ bool SplashOutputDev::tilingPatternFill(GfxState *state, Gfx *gfxA, Catalog *cat
surface_width
=
(
int
)
ceil
(
fabs
(
kx
));
surface_height
=
(
int
)
ceil
(
fabs
(
ky
));
// adjust repeat values to completely fill region
if
(
unlikely
(
surface_width
==
0
||
surface_height
==
0
))
{
state
->
setCTM
(
savedCTM
[
0
],
savedCTM
[
1
],
savedCTM
[
2
],
savedCTM
[
3
],
savedCTM
[
4
],
savedCTM
[
5
]);
return
false
;
}
repeatX
=
result_width
/
surface_width
;
repeatY
=
result_height
/
surface_height
;
if
(
surface_width
*
repeatX
<
result_width
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment