--- src/lib/contexts/IWORKPropertyMapElement.cpp +++ src/lib/contexts/IWORKPropertyMapElement.cpp @@ -264,7 +264,7 @@ void AlignmentElement::endOfElement() { - IWORKAlignment prop; + IWORKAlignment prop = IWORK_ALIGNMENT_LEFT; if (m_value) { --- src/lib/libetonyek_xml.cpp +++ src/lib/libetonyek_xml.cpp @@ -33,7 +33,7 @@ unsigned long bytesRead = 0; const unsigned char *const bytes = input->read(len, bytesRead); - std::memcpy(buffer, bytes, static_cast(bytesRead)); + if (bytesRead != 0) std::memcpy(buffer, bytes, static_cast(bytesRead)); return static_cast(bytesRead); } catch (...)