summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2016-07-23 22:42:55 +0200
committerCaolán McNamara <caolanm@redhat.com>2016-07-24 14:20:15 +0000
commitb7a18f18efbba086454e3b5ec157b156980f97b6 (patch)
tree8b6636ad9a3f579a9c4a1a3a9e88c8dd838b6678 /svgio
parent90517f4071c0a5950f88227c5ec345f4aa6ca0cd (diff)
tdf#101070: svg/insert, avoid infinite recursive loop when referencing oneself
See bt https://bugs.documentfoundation.org/attachment.cgi?id=126377 Change-Id: I3c6546a5449fc42613e30a7f45f31862752b7187 Reviewed-on: https://gerrit.libreoffice.org/27468 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svgio')
-rw-r--r--svgio/source/svgreader/svgimagenode.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svgio/source/svgreader/svgimagenode.cxx b/svgio/source/svgreader/svgimagenode.cxx
index 074f46ff31b7..533389daf825 100644
--- a/svgio/source/svgreader/svgimagenode.cxx
+++ b/svgio/source/svgreader/svgimagenode.cxx
@@ -242,7 +242,7 @@ namespace svgio
<< e.getMessage() << "\"");
}
- if (!aAbsUrl.isEmpty())
+ if (!aAbsUrl.isEmpty() && !rPath.equals(aAbsUrl))
{
SvFileStream aStream(aAbsUrl, STREAM_STD_READ);
Graphic aGraphic;