diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-10-24 17:19:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-25 12:12:25 +0200 |
commit | fb09d80fe36d990d8cedbd1a2b02be6ffcc1bb8f (patch) | |
tree | 96afed87598da7594f2508fc26db06fe666b716a /emfio | |
parent | 660df84c941078ffc281ecc0671a3573a49f4ee4 (diff) |
ofz#3777 Undefined-shift
Change-Id: I328d939035f31acc690161b17751a5d45577f998
Reviewed-on: https://gerrit.libreoffice.org/43787
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'emfio')
-rw-r--r-- | emfio/source/reader/wmfreader.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emfio/source/reader/wmfreader.cxx b/emfio/source/reader/wmfreader.cxx index 43a51372ee4f..83e2fb3ad19c 100644 --- a/emfio/source/reader/wmfreader.cxx +++ b/emfio/source/reader/wmfreader.cxx @@ -540,7 +540,7 @@ namespace emfio SAL_WARN_IF( ( nOptions & ( ETO_PDY | ETO_GLYPH_INDEX ) ) != 0, "vcl.wmf", "SJ: ETO_PDY || ETO_GLYPH_INDEX in WMF" ); // output only makes sense if the text contains characters - if( nLen ) + if (nLen && nRecordSize >= 0) { sal_Int32 nOriginalTextLen = nLen; sal_Int32 nOriginalBlockLen = ( nOriginalTextLen + 1 ) &~ 1; |