<p style="white-space: pre-wrap; word-wrap: break-word;">that was quick to self+2, here is still review</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/18946">View Change</a></p><p>1 comment:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/18946/2/src/gsm/gsm0808.c">File src/gsm/gsm0808.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/18946/2/src/gsm/gsm0808.c@1256">Patch Set #2, Line 1256:</a> <code style="font-family:monospace,monospace">     msgb_tlv_put(msg, GSM0808_IE_IMSI, mid_len - 2, mid_buf + 2);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">this lacks error checking.<br>I would prefer using the new API:</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  struct osmo_mobile_identity mi = { .type = GSM_MI_TYPE_IMSI };<br>  OSMO_STRLCPY_ARRAY(mi.imsi, imsi);<br>  uint8_t *l = msgb_tl_put(msg, GSM48_IE_MOBILE_ID);<br>  int rc = osmo_mobile_identity_encode_msgb(msg, &mi, false);<br>  if (rc < 0)<br>          goto error;<br>  *l = rc;</pre><p style="white-space: pre-wrap; word-wrap: break-word;">That looks a bit bloaty, maybe we can reconsider osmo_mobile_identity before the next release?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/18946">change 18946</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/18946"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I353adc1aa72377f7d4b3336d2ff47791fb73d62c </div>
<div style="display:none"> Gerrit-Change-Number: 18946 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 22 Jun 2020 15:43:08 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>