diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-25 18:12:38 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-07-25 18:36:43 +0200 |
commit | a29504fbb9553f615961822356cfa64592fcacc2 (patch) | |
tree | 4e0ffd9d560d270d39031084c7e117796d35fc8a | |
parent | b59e355d196294575f5a75b28dc28ec7613f5565 (diff) |
EMF+ records don't need payload all the time
Fix for fdo#39517. Looking through the emf+ records, it looks like the
assumption made that the minimum valid record length is 12 + non-0
length payload isnt' right, looks like that the minimum valid record
length is just 12, i.e. no need for a payload.
Signed-off-by: Thorsten Behrens <tbehrens@novell.com>
Signed-off-by: Petr Mladek <pmladek@suse.cz>
Signed-off-by: Michael Meeks <michael.meeks@novell.com>
-rw-r--r-- | svtools/source/filter.vcl/wmf/enhwmf.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/filter.vcl/wmf/enhwmf.cxx b/svtools/source/filter.vcl/wmf/enhwmf.cxx index 3f83a3c0daab..8d7c621228d4 100644 --- a/svtools/source/filter.vcl/wmf/enhwmf.cxx +++ b/svtools/source/filter.vcl/wmf/enhwmf.cxx @@ -275,7 +275,7 @@ void EnhWMFReader::ReadEMFPlusComment(sal_uInt32 length, sal_Bool& bHaveDC) sal_uInt32 nRemainder = length >= 4 ? length-4 : length; const size_t nRequiredHeaderSize = 12; - while (nRemainder > nRequiredHeaderSize) + while (nRemainder >= nRequiredHeaderSize) { sal_uInt16 type(0), flags(0); sal_uInt32 size(0), dataSize(0); |