svgio/source/svgreader/svgtools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 878292b56d552d18a72c5dd4642dcefbc196c8de Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Jul 19 09:58:59 2022 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Tue Jul 19 12:39:33 2022 +0200 crashtesting: assert seen on loading moz820988-2.svg Change-Id: I8ceab08348875cd8a88c440091ac0227012ab358 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137224 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> 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);