Kaydet (Commit) 5966b7cc authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) David Tardon

emf: fix another hang

Change-Id: I971ba5f422827f3b8fcdb86c447fc48415225eca
(cherry picked from commit fe20502c)
Reviewed-on: https://gerrit.libreoffice.org/16978Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
Tested-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst 0149261b
...@@ -1728,9 +1728,9 @@ bool EnhWMFReader::ReadHeader() ...@@ -1728,9 +1728,9 @@ bool EnhWMFReader::ReadHeader()
pWMF->ReadInt32(nRecordCount); pWMF->ReadInt32(nRecordCount);
if (nRecordCount == 0) if (nRecordCount <= 0)
{ {
SAL_WARN("vcl.emf", "EMF\t\tEMF Header object shows record counter as 0! This shouldn't " SAL_WARN("vcl.emf", "EMF\t\tEMF Header object shows record counter as <= 0! This shouldn't "
"be possible... indicator of possible file corruption?"); "be possible... indicator of possible file corruption?");
return false; return false;
} }
......
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