Fix OOB access in LSET when opening a PCB file or updating from schematic.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/18422
This commit is contained in:
Alex Shvartzkop
2024-07-23 01:41:01 +03:00
parent 559854ec0f
commit e2bd76bdce
4 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ BOOST_AUTO_TEST_CASE(LSETConstructorEmpty)
// Initialize LSET from another BASE_SET
BOOST_AUTO_TEST_CASE(LSETConstructorFromBaseSet)
{
BASE_SET base;
BASE_SET base( PCB_LAYER_ID_COUNT );
base.set(F_Cu);
base.set(In1_Cu);