[Libreoffice-commits] core.git: xmlsecurity/source
Julien Nabet
serval2412 at yahoo.fr
Mon Oct 24 09:48:19 UTC 2016
xmlsecurity/source/pdfio/pdfdocument.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 330b1d8b1e1eae9ec0a4504676c3518ca5d9a951
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Mon Oct 24 09:47:01 2016 +0000
Revert "Blind fix to TBs"
This reverts commit f736c71dde8f4a84688b932b1531808d4c7cbd8c.
Change-Id: I83df90a5fc6cefb4e0c4fdbb37fa46a546809b83
Reviewed-on: https://gerrit.libreoffice.org/30223
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
Tested-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/xmlsecurity/source/pdfio/pdfdocument.cxx b/xmlsecurity/source/pdfio/pdfdocument.cxx
index 2a5b70e..f63fe2e 100644
--- a/xmlsecurity/source/pdfio/pdfdocument.cxx
+++ b/xmlsecurity/source/pdfio/pdfdocument.cxx
@@ -775,7 +775,7 @@ size_t PDFDocument::FindStartXRef(SvStream& rStream)
// Find the "startxref" token, somewhere near the end of the document.
std::vector<char> aBuf(1024);
rStream.Seek(STREAM_SEEK_TO_END);
- rStream.SeekRel(-1 * aBuf.capacity());
+ rStream.SeekRel(-1 * aBuf.size());
size_t nBeforePeek = rStream.Tell();
size_t nSize = rStream.ReadBytes(aBuf.data(), aBuf.size());
rStream.Seek(nBeforePeek);
More information about the Libreoffice-commits
mailing list