Kaydet (Commit) 5c10e8cd authored tarafından Andras Timar's avatar Andras Timar

tdf#90351 libcmis: prevent crash

Change-Id: I2d9673bb261a2586e1802f025c900962249cfc42
Reviewed-on: https://gerrit.libreoffice.org/16854Reviewed-by: 's avatarAndras Timar <andras.timar@collabora.com>
Tested-by: 's avatarAndras Timar <andras.timar@collabora.com>
üst ecc617e7
......@@ -15,6 +15,7 @@ $(eval $(call gb_UnpackedTarball_set_patchlevel,cmis,0))
$(eval $(call gb_UnpackedTarball_add_patches,cmis, \
external/libcmis/libcmis-libxml2_compatibility.patch \
external/libcmis/tdf90351.patch \
))
ifeq ($(OS)$(COM),WNTMSC)
......
--- src/libcmis/atom-session.cxx
+++ src/libcmis/atom-session.cxx
@@ -233,6 +233,7 @@ libcmis::ObjectPtr AtomPubSession::createObjectFromEntryDoc( xmlDocPtr doc )
else
{
// Not a valid CMIS atom entry... weird
+ cmisObject.reset( new AtomDocument( this, node ) );
}
}
xmlXPathFreeObject( xpathObj );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment