Previously parse_inout_selection only rejected indices strictly greater than nb_items, allowing idx == nb_items to pass through and later cause a panic when indexing transaction inputs/outputs.
Tightened the bounds check in parse_inout_selection to treat idx >= nb_items as out of bounds, enforcing the intended 0..nb_items-1 index range for TxFieldSelector individual mode.