pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/libosmocore/+/41911?usp=email )
Change subject: osmo_io: Prevent abort allocating rx segment bigger than UINT16_MAX ......................................................................
Patch Set 1: Code-Review-2
(1 comment)
Patchset:
PS1: I actually want to improve this patch by trying to create a new "pending msgb" up to UINT16_MAX - headroom, then caling segment callback and then if some stuff was processed, keeping copying the remaining into "pending msgb" and trying again until done. If segment_cb is returned with remaining size being UINT16_MAX - headroom, then throw an error to the user.