summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svgio/source/svgreader/svgtools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svgio/source/svgreader/svgtools.cxx b/svgio/source/svgreader/svgtools.cxx
index 7ab816f9a84d..5e56ee83b19e 100644
--- a/svgio/source/svgreader/svgtools.cxx
+++ b/svgio/source/svgreader/svgtools.cxx
@@ -1064,7 +1064,7 @@ namespace svgio::svgreader
skip_char(rCandidate, ' ', nPos, nLen);
- if(nLen && '#' == rCandidate[nPos])
+ if (nLen && nPos < nLen && '#' == rCandidate[nPos])
{
++nPos;
rURL = rCandidate.copy(nPos);