User: rt Date: 2008-06-06 13:58:58+0000 Modified: dba/dbaccess/source/core/api/RowSet.cxx
Log: INTEGRATION: CWS dba30c (1.156.6); FILE MERGED 2008/05/08 11:29:23 oj 1.156.6.2: unsigned fix 2008/05/08 07:25:46 oj 1.156.6.1: #153835# add extra check for column index File Changes: Directory: /dba/dbaccess/source/core/api/ ========================================= File [changed]: RowSet.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/api/RowSet.cxx?r1=1.156&r2=1.157 Delta lines: +3 -0 ------------------- --- RowSet.cxx 2008-04-10 12:25:21+0000 1.156 +++ RowSet.cxx 2008-06-06 13:58:55+0000 1.157 @@ -2692,6 +2692,9 @@ // TODO: resource if ( m_aCurrentRow.isNull() ) throwSQLException( "Invalid cursor state", SQL_INVALID_CURSOR_STATE, *this ); + + if ( sal_Int32((*m_aCurrentRow)->size()) <= columnIndex ) + throwSQLException( "Invalid column index", SQL_INVALID_DESCRIPTOR_INDEX, *this ); // TODO: resource if ( m_nResultSetConcurrency == ResultSetConcurrency::READ_ONLY) throwSQLException( "Result set is not writeable", SQL_GENERAL_ERROR, *this ); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
