Attention is currently required from: jolly, pespin.

laforge has posted comments on this change by jolly. ( 
https://gerrit.osmocom.org/c/libosmocore/+/41138?usp=email )

Change subject: Correctly calculate size iofd_msgb_alloc2()
......................................................................


Patch Set 3:

(2 comments)

Commit Message:

https://gerrit.osmocom.org/c/libosmocore/+/41138/comment/6fae8eee_990c62a4?usp=email
 :
PS1, Line 10: too small, if headroom exceeds 65535.
> I agree, our msgb length is constrained to 64k.
Done


File src/core/osmo_io.c:

https://gerrit.osmocom.org/c/libosmocore/+/41138/comment/9a2e6fc4_e6502def?usp=email
 :
PS2, Line 193:  return msgb_alloc_headroom_c(iofd, size + headroom, headroom, 
"osmo_io_msgb");
> I used some casting to make it clearer that there can't be an overflow.
Done



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/41138?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I16c1e08fb64a1fafaeee1844fd8c00ecc2861d12
Gerrit-Change-Number: 41138
Gerrit-PatchSet: 3
Gerrit-Owner: jolly <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-Attention: jolly <[email protected]>
Gerrit-Attention: pespin <[email protected]>
Gerrit-Comment-Date: Tue, 28 Oct 2025 16:57:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: jolly <[email protected]>
Comment-In-Reply-To: laforge <[email protected]>
Comment-In-Reply-To: pespin <[email protected]>

Reply via email to