1. mst
  2. ooo340

Commits

Ocke Janssen [oj]  committed 514c8f2

fs33a: #i113744# check length of value

  • Participants
  • Parent commits bae59f7
  • Branches default

Comments (0)

Files changed (1)

File dbaccess/source/core/api/KeySet.cxx

View file
                 sal_Int32 nIndex = sValue.indexOf('.');
                 if ( nIndex != -1 )
                 {
-                    aValue = sValue.copy(0,nIndex + (i_aMetaData.nScale > 0 ? i_aMetaData.nScale + 1 : 0));
+					aValue = sValue.copy(0,::std::min(sValue.getLength(),nIndex + (i_aMetaData.nScale > 0 ? i_aMetaData.nScale + 1 : 0)));
                 }
             }
             break;