diff options
author | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-11-02 14:14:36 -0200 |
---|---|---|
committer | Marcos Paulo de Souza <marcos.souza.org@gmail.com> | 2013-11-02 14:24:12 -0200 |
commit | c5701117b4ba30f46f26fa2c15c4eb252a44e9f7 (patch) | |
tree | ea2706838b8bbbb8e92430dbf041f61841bf17e1 /vcl | |
parent | 06a5b1ecc39bb50dadc0bcb7378455500943ece3 (diff) |
Fix invalid string access
Change-Id: Ic83af0549a88b8debfdf945853fa42e1d28e5869
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/outdev3.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx index d8ec0e69aef1..cc3096685a2c 100644 --- a/vcl/source/gdi/outdev3.cxx +++ b/vcl/source/gdi/outdev3.cxx @@ -6858,6 +6858,9 @@ OUString OutputDevice::GetNonMnemonicString( const OUString& rStr, sal_Int32& rM { if ( aStr[ i ] == '~' ) { + if ( nLen <= i+1 ) + break; + if ( aStr[ i+1 ] != '~' ) { if ( rMnemonicPos == -1 ) |