<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-trx/+/18920">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">proto_trxd: Fix UndefinedBehaviorSanitizer from ubsan<br><br>From UBSan:<br>proto_trxd.c:65:18: runtime error: 128 is outside the range of representable values of type 'char'.<br><br>Fixes: OS#4507<br>Change-Id: I71f815fe794a00934ee0e876848af56f30a21bfe<br>---<br>M Transceiver52M/proto_trxd.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/20/18920/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/Transceiver52M/proto_trxd.c b/Transceiver52M/proto_trxd.c</span><br><span>index 5a898b9..fbc0b14 100644</span><br><span>--- a/Transceiver52M/proto_trxd.c</span><br><span>+++ b/Transceiver52M/proto_trxd.c</span><br><span>@@ -62,7 +62,7 @@</span><br><span> {</span><br><span>     unsigned i;</span><br><span>  for (i = 0; i < bi->nbits; i++)</span><br><span style="color: hsl(0, 100%, 40%);">-           soft_bits[i] = (char) round(bi->rx_burst[i] * 255.0);</span><br><span style="color: hsl(120, 100%, 40%);">+              soft_bits[i] = (uint8_t) round(bi->rx_burst[i] * 255.0);</span><br><span> }</span><br><span> </span><br><span> bool trxd_send_burst_ind_v0(size_t chan, int fd, const struct trx_ul_burst_ind *bi) {</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-trx/+/18920">change 18920</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/osmo-trx/+/18920"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-trx </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I71f815fe794a00934ee0e876848af56f30a21bfe </div>
<div style="display:none"> Gerrit-Change-Number: 18920 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>