Change in osmo-msc[master]: refactor ran_conn_get_conn_id()

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 Hofmeyr gerrit-no-reply at lists.osmocom.org
Fri Jan 4 02:02:28 UTC 2019


Neels Hofmeyr has posted comments on this change. ( https://gerrit.osmocom.org/12453 )

Change subject: refactor ran_conn_get_conn_id()
......................................................................


Patch Set 1:

(1 comment)

https://gerrit.osmocom.org/#/c/12453/1/src/libmsc/ran_conn.c
File src/libmsc/ran_conn.c:

https://gerrit.osmocom.org/#/c/12453/1/src/libmsc/ran_conn.c@512
PS1, Line 512: Truncation should never happen
> Why should we care about it then? […]
I took this from stsp's pattern

  if (strlcpy(...) >= sizeof(buf))

and you're right, snprintf() can return negative.

Why care: if the future changes the string to become too long for some reason, be loud about that.



-- 
To view, visit https://gerrit.osmocom.org/12453
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I82c022a995c11478201e0faeaf748e74dc38e05f
Gerrit-Change-Number: 12453
Gerrit-PatchSet: 1
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-CC: Harald Welte <laforge at gnumonks.org>
Gerrit-CC: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Comment-Date: Fri, 04 Jan 2019 02:02:28 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190104/c2ab8791/attachment.htm>


More information about the gerrit-log mailing list