Change in osmo-msc[master]: MNCC: add optional SDP to the socket protocol

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

neels gerrit-no-reply at lists.osmocom.org
Mon Nov 4 15:05:51 UTC 2019


neels has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-msc/+/15948 )

Change subject: MNCC: add optional SDP to the socket protocol
......................................................................


Patch Set 1:

(1 comment)

https://gerrit.osmocom.org/c/osmo-msc/+/15948/1/src/libmsc/mncc.c 
File src/libmsc/mncc.c:

https://gerrit.osmocom.org/c/osmo-msc/+/15948/1/src/libmsc/mncc.c@266 
PS1, Line 266: 		 * char sdp[] starts with a '\0'. */
> I'd better don't rely on msgb being zero-filled and mark the related byte = 0.
but msgb_alloc_c() has:

        /* Manually zero-initialize allocated memory */
        memset(msg, 0x00, sizeof(*msg) + size);

So why, are you aiming at future alternative msgb implementations?

To write a '\0' to a msgb's unused data part, we would have to manually check that we're not writing past the allocated mem. I'd rather not dup that validation out of msgb.c...

Ah ok, I could msgb_put_u8() and then remove that again.

But seems unnecessary?

Plus I'd rather not modify the msgb we got from incoming data, as a sane premise.



-- 
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/15948
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: Ie16f0804c4d99760cd4a0c544d0889b6313eebb7
Gerrit-Change-Number: 15948
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-Comment-Date: Mon, 04 Nov 2019 15:05:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pespin at sysmocom.de>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191104/23c1e177/attachment.htm>


More information about the gerrit-log mailing list