KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_view_null_safety.cpp File Reference

Regression test for issue #24391: entering a group could reach VIEW::Hide() with a null VIEW_ITEM, which was dereferenced (viewPrivData() on a null this) and crashed. More...

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (HideAndSetVisibleTolerateNullItem)
 

Detailed Description

Regression test for issue #24391: entering a group could reach VIEW::Hide() with a null VIEW_ITEM, which was dereferenced (viewPrivData() on a null this) and crashed.

The public mutators must tolerate a null item the same way they already tolerate an item with no view data.

Definition in file test_view_null_safety.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( HideAndSetVisibleTolerateNullItem )