Neels Hofmeyr has posted comments on this change. ( https://gerrit.osmocom.org/11642 )
Change subject: Add SGs Interface ...................................................................... Patch Set 29: (2 comments) https://gerrit.osmocom.org/#/c/11642/29/src/libvlr/vlr_sgs.c File src/libvlr/vlr_sgs.c: https://gerrit.osmocom.org/#/c/11642/29/src/libvlr/vlr_sgs.c@89 PS29, Line 89: memcpy(&vsub->sgs.cfg, cfg, sizeof(vsub->sgs.cfg)); rather vsub->sgs.cfg = *cfg; https://gerrit.osmocom.org/#/c/11642/29/src/libvlr/vlr_sgs.c@101 PS29, Line 101: memcpy(&vsub->cgi, new_lai, sizeof(vsub->sgs.lai)); please don't use memcpy, but assign members directly. That ensures that you don't copy over mismatching formats. vsub->sgs.lai = *new_lai; vsub->cgi.lai = *new_lai; -- To view, visit https://gerrit.osmocom.org/11642 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: I73359925fc1ca72b33a1466e6ac41307f2f0b11d Gerrit-Change-Number: 11642 Gerrit-PatchSet: 29 Gerrit-Owner: dexter <[email protected]> Gerrit-Reviewer: Harald Welte <[email protected]> Gerrit-Reviewer: Jenkins Builder (1000002) Gerrit-Reviewer: Neels Hofmeyr <[email protected]> Gerrit-CC: Stefan Sperling <[email protected]> Gerrit-CC: Vadim Yanitskiy <[email protected]> Gerrit-Comment-Date: Mon, 14 Jan 2019 17:47:34 +0000 Gerrit-HasComments: Yes Gerrit-HasLabels: No
