diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-22 10:03:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-22 10:03:40 +0100 |
commit | e8aaaa52fa5abe4a70224ab6e6eee6265b0d61c8 (patch) | |
tree | 3c6e638acf97a9ad8f24a3cb2738e1d4b2a6ddae /vcl/source/filter/ipdf/pdfdocument.cxx | |
parent | 7778d9f51bd1f4d086cafe95995406c3157afb89 (diff) |
Missing check for rStream.IsEof()
...after a324099538916eae7f7239d32fd98ec8018cbb72 "xmlsecurity PDF signing: only
write incremental xref in an incremental update" inserted the 'if' before the
'while (!rStream.IsEof())'
Change-Id: Ib527894031f356c3d6df40b70259469ef4c338de
Diffstat (limited to 'vcl/source/filter/ipdf/pdfdocument.cxx')
-rw-r--r-- | vcl/source/filter/ipdf/pdfdocument.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/filter/ipdf/pdfdocument.cxx b/vcl/source/filter/ipdf/pdfdocument.cxx index 0e458e053a24..fe60765ed5eb 100644 --- a/vcl/source/filter/ipdf/pdfdocument.cxx +++ b/vcl/source/filter/ipdf/pdfdocument.cxx @@ -1917,6 +1917,10 @@ bool PDFNumberElement::Read(SvStream& rStream) m_nOffset = rStream.Tell(); char ch; rStream.ReadChar(ch); + if (rStream.IsEof()) + { + return false; + } if (!isdigit(ch) && ch != '-' && ch != '.') { rStream.SeekRel(-1); |