[Libreoffice-commits] core.git: xmlsecurity/source
Stephan Bergmann
sbergman at redhat.com
Wed Mar 22 20:27:21 UTC 2017
xmlsecurity/source/pdfio/pdfdocument.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 9df97a7d65a68699f5ee90c2541bd7c8a2df95d9
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Wed Mar 22 21:26:34 2017 +0100
Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)
Change-Id: I0b478dfa25a54595ba0dcee1ca3ec0291ee94ef5
diff --git a/xmlsecurity/source/pdfio/pdfdocument.cxx b/xmlsecurity/source/pdfio/pdfdocument.cxx
index 78d41c94e097..5420196df7d8 100644
--- a/xmlsecurity/source/pdfio/pdfdocument.cxx
+++ b/xmlsecurity/source/pdfio/pdfdocument.cxx
@@ -19,6 +19,7 @@
#include <comphelper/scopeguard.hxx>
#include <comphelper/string.hxx>
#include <filter/msfilter/mscodec.hxx>
+#include <rtl/character.hxx>
#include <rtl/strbuf.hxx>
#include <rtl/string.hxx>
#include <sal/log.hxx>
@@ -131,7 +132,7 @@ bad_data:
do
{
PRUint32 decimal = 0;
- while (len > 0 && isdigit(*from))
+ while (len > 0 && rtl::isAsciiDigit(static_cast<unsigned char>(*from)))
{
PRUint32 addend = (*from++ - '0');
--len;
More information about the Libreoffice-commits
mailing list