Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Oliver Sander
poppler
Commits
12303bbd
Unverified
Commit
12303bbd
authored
Sep 13, 2020
by
William Bader
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve EmbedStream::reset error checking.
parent
e2ecddf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
poppler/Stream.cc
poppler/Stream.cc
+6
-1
No files found.
poppler/Stream.cc
View file @
12303bbd
...
...
@@ -1090,7 +1090,12 @@ void EmbedStream::reset()
str
->
reset
();
// Might be a FilterStream that does not support str->setPos(start)
while
(
str
->
getPos
()
<
start
)
{
str
->
getChar
();
if
(
str
->
getChar
()
==
EOF
)
{
break
;
}
}
if
(
str
->
getPos
()
!=
start
)
{
error
(
errInternal
,
-
1
,
"Failed to reset EmbedStream"
);
}
}
record
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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