Change in osmo-pcu[master]: check for overlong unix socket paths

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/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Thu Sep 20 17:25:07 UTC 2018


Vadim Yanitskiy has posted comments on this change. ( https://gerrit.osmocom.org/11048 )

Change subject: check for overlong unix socket paths
......................................................................


Patch Set 1:

(1 comment)

https://gerrit.osmocom.org/#/c/11048/1/src/osmobts_sock.cpp
File src/osmobts_sock.cpp:

https://gerrit.osmocom.org/#/c/11048/1/src/osmobts_sock.cpp@268
PS1, Line 268: 	if (osmo_strlcpy(local.sun_path, bts->pcu_sock_path, sizeof(local.sun_path)) >= sizeof(local.sun_path)) {
I would prefer to see:

  rc = osmo_strlcpy(...);
  if (rc) { ... }

here instead of this long construction.



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

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I825190cbb34d052b797e9fb5208884d6f5992839
Gerrit-Change-Number: 11048
Gerrit-PatchSet: 1
Gerrit-Owner: Stefan Sperling <ssperling at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-CC: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Comment-Date: Thu, 20 Sep 2018 17:25:07 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180920/bbf388f6/attachment.htm>


More information about the gerrit-log mailing list