Kaydet (Commit) 7eceffef authored tarafından Arnaud Versini's avatar Arnaud Versini Kaydeden (comit) Caolán McNamara

Resolve fdo#79913 by checking index bounds

Change-Id: I023a625d73724332245d612a61cb786acefc4cf2
Reviewed-on: https://gerrit.libreoffice.org/9791Reviewed-by: 's avatarJean-Baptiste Faure <jbfaure@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst be0837fb
......@@ -397,7 +397,7 @@ void ToolbarMenu_Impl::notifyHighlightedEntry()
if( pValueSet )
nChildIndex = static_cast< sal_Int32 >( pValueSet->GetItemPos( pValueSet->GetSelectItemId() ) );
if( nChildIndex >= pEntry->getAccessibleChildCount() )
if( (nChildIndex >= pEntry->getAccessibleChildCount()) || (nChildIndex < 0) )
return;
aNew <<= getAccessibleChild( pEntry->mpControl, nChildIndex );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment