diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 11:53:55 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 12:14:46 +0000 |
commit | 22fe039000e57c156e5a4317f899987a9a043974 (patch) | |
tree | 4fa4330056615658cd3cb6123c1f52bab12c3231 /vcl/source/gdi/metaact.cxx | |
parent | bbc17bc8ac9132379d1348de761793bf2961d96b (diff) |
coverity#1266484 rework to scrutinze mnLen
Change-Id: I8fb6d555a7f7afe02b4c0297d3fe4e456ba41dd0
Diffstat (limited to 'vcl/source/gdi/metaact.cxx')
-rw-r--r-- | vcl/source/gdi/metaact.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/metaact.cxx b/vcl/source/gdi/metaact.cxx index a60e8fd20fe1..9dbcce0cc323 100644 --- a/vcl/source/gdi/metaact.cxx +++ b/vcl/source/gdi/metaact.cxx @@ -1289,7 +1289,7 @@ void MetaTextArrayAction::Read( SvStream& rIStm, ImplMetaReadData* pData ) sal_Int32 nAryLen(0); rIStm.ReadInt32(nAryLen); - if ( mnIndex + mnLen > maStr.getLength() ) + if (mnLen > maStr.getLength() - mnIndex) { mnIndex = 0; mpDXAry = 0; |