vcl/source/gdi/outdev3.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit c5701117b4ba30f46f26fa2c15c4eb252a44e9f7
Author: Marcos Paulo de Souza <marcos.souza....@gmail.com>
Date:   Sat Nov 2 14:14:36 2013 -0200

    Fix invalid string access
    
    Change-Id: Ic83af0549a88b8debfdf945853fa42e1d28e5869

diff --git a/vcl/source/gdi/outdev3.cxx b/vcl/source/gdi/outdev3.cxx
index d8ec0e6..cc30966 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 )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to