stack: fix pages list bounds check
authorG.Willems <g.willems.dev@laposte.net>
Sat, 24 Jun 2023 01:05:37 +0000 (03:05 +0200)
committerG.Willems <g.willems.dev@laposte.net>
Sat, 24 Jun 2023 01:05:37 +0000 (03:05 +0200)
commit91d302a2015719bba5f6bca26212475f777d85a7
treed6ca06a8fde9a46fc24f376f4e16c3b16c196216
parent35a1a62d5033a41d4706306cbf3d116ba39d864b
stack: fix pages list bounds check

Fix integer underflow when children->len is 0.
Add missing bounds check in select_item()
gtk/gtkstack.c