From 1e0a08034f924eb6009116640ff0c64f74faa47c Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 4 Jul 2025 16:40:17 -0600 Subject: [PATCH] Bounds checking (KICAD-8V9) --- cvpcb/footprints_listbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvpcb/footprints_listbox.cpp b/cvpcb/footprints_listbox.cpp index a30cdf4979..fff2ba854e 100644 --- a/cvpcb/footprints_listbox.cpp +++ b/cvpcb/footprints_listbox.cpp @@ -66,7 +66,7 @@ wxString FOOTPRINTS_LISTBOX::GetSelectedFootprint() wxString footprintName; int ii = GetFirstSelected(); - if( ii >= 0 ) + if( ii >= 0 && ii < m_footprintList.size() ) { wxString msg = m_footprintList[ii]; msg.Trim( true );