Pau Espin Pedrol has posted comments on this change. ( https://gerrit.osmocom.org/11765 )
Change subject: bts-trx: trx_if: Use struct to store CTRL msg parsed responses ...................................................................... Patch Set 1: (1 comment) https://gerrit.osmocom.org/#/c/11765/1/src/osmo-bts-trx/trx_if.c File src/osmo-bts-trx/trx_if.c: https://gerrit.osmocom.org/#/c/11765/1/src/osmo-bts-trx/trx_if.c@388 PS1, Line 388: sizeof > I am afraid there is a risk of: https://www.geeksforgeeks. […] Size of cmd is defined explicitly here, it's fine (and it' also specified as fine in the example you shared). The issue is when you pass an array without a size specified explicitly beforehand, because the compiler cannot know the size of the array for each caller (specially when compiling a shared object). -- To view, visit https://gerrit.osmocom.org/11765 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-bts Gerrit-Branch: master Gerrit-MessageType: comment Gerrit-Change-Id: Icb84bce0621042afa4301678ba1cc58d8e3662bb Gerrit-Change-Number: 11765 Gerrit-PatchSet: 1 Gerrit-Owner: Pau Espin Pedrol <[email protected]> Gerrit-Reviewer: Jenkins Builder (1000002) Gerrit-Reviewer: Pau Espin Pedrol <[email protected]> Gerrit-CC: Vadim Yanitskiy <[email protected]> Gerrit-Comment-Date: Wed, 14 Nov 2018 10:26:06 +0000 Gerrit-HasComments: Yes Gerrit-HasLabels: No
