Files
openairinterface5g/common/utils
Guido Casati a8f8244b09 Fix mutation of input iterators in seq_arr_erase_it
The seq_arr_erase_it function was modifying start_it during the free_func loop,
which led to incorrectly apply the free_func on the whole array.

This commit makes sure the elements "freed" are only those in the range and not the whole seq_arr.

* Fixes the logic by introducing a temporary iterator for the free loop,
  preserving start_it and end_it for correct offset calculations.

* Adds a regression test in test_seq_arr to verify that only the selected
  subrange is erased and that free_func is called exactly on that range.
2025-06-17 23:50:43 +02:00
..
2025-06-02 11:19:23 +02:00
2025-04-18 09:02:54 +02:00
2025-04-25 15:40:07 -04:00
2024-12-04 17:54:51 +01:00
2023-01-21 12:14:18 +01:00