Kaydet (Commit) 53db456c authored tarafından Michael Meeks's avatar Michael Meeks

Avoid uninitialized memory read/compare on short reads.

Change-Id: I7537f6d22780bace6ab6da06e087a3d27da8de05
üst d8863b73
......@@ -704,7 +704,7 @@ static bool ImpPeekGraphicFormat( SvStream& rStream, OUString& rFormatExtension,
{
nCheckSize = nStreamLen < 2048 ? nStreamLen : 2048;
rStream.Seek(nStreamPos);
rStream.Read(sExtendedOrDecompressedFirstBytes, nCheckSize);
nCheckSize = rStream.Read(sExtendedOrDecompressedFirstBytes, nCheckSize);
}
if(ImplSearchEntry(pCheckArray, (sal_uInt8*)"<svg", nCheckSize, 4)) // '<svg'
......
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