Kaydet (Commit) 7a6f5186 authored tarafından Cédric Bosdonnat's avatar Cédric Bosdonnat

fdo#64577, CMIS: fixed crasher in libcmis

The crash is handled, but the huge files' size won't be properly handled
on 32bits builds: would require a libcmis API change.

Change-Id: I8ef1190a4d1de7d91a67ec20330db9e1747dfdc2
üst a494a832
......@@ -20,3 +20,16 @@ index e8efd67..decb79a 100644
xmlTextWriterEndElement( writer ); // End of Expires
xmlTextWriterEndElement( writer ); // End of Timestamp
diff --git src/libcmis/document.cxx src/libcmis/document.cxx
index 7c2a8e6..e7014cb 100644
--- src/libcmis/document.cxx
+++ src/libcmis/document.cxx
@@ -78,7 +78,7 @@ namespace libcmis
{
long contentLength = 0;
map< string, libcmis::PropertyPtr >::const_iterator it = getProperties( ).find( string( "cmis:contentStreamLength" ) );
- if ( it != getProperties( ).end( ) && !it->second->getStrings( ).empty( ) )
+ if ( it != getProperties( ).end( ) && !it->second->getLongs( ).empty( ) )
contentLength = it->second->getLongs( ).front( );
return contentLength;
}
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