<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmocom-bb/+/20880">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tpu: Fix msgb-write-beyond-tailroom in TPU_DEBUG<br><br>We need to make sure to allocte sufficient space to include<br>the 32bit frame number at the start of the TPU_DEBUG msgb.<br><br>Change-Id: Ifb3ce6f91131fc361b20c3b3fe5ebc7079633ac3<br>---<br>M src/target/firmware/calypso/tpu.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/osmocom-bb refs/changes/80/20880/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/target/firmware/calypso/tpu.c b/src/target/firmware/calypso/tpu.c</span><br><span>index 0b60292..f778bfd 100644</span><br><span>--- a/src/target/firmware/calypso/tpu.c</span><br><span>+++ b/src/target/firmware/calypso/tpu.c</span><br><span>@@ -91,7 +91,7 @@</span><br><span> {</span><br><span>        uint16_t *tpu_base = (uint16_t *)BASE_ADDR_TPU_RAM;</span><br><span>  unsigned int tpu_size = tpu_ptr - tpu_base;</span><br><span style="color: hsl(0, 100%, 40%);">-     struct msgb *msg = sercomm_alloc_msgb(tpu_size*2);</span><br><span style="color: hsl(120, 100%, 40%);">+    struct msgb *msg = sercomm_alloc_msgb(sizeof(uint32_t) + tpu_size*2);</span><br><span>        uint16_t *data;</span><br><span>      uint32_t *fn;</span><br><span>        uint16_t reg;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmocom-bb/+/20880">change 20880</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/osmocom-bb/+/20880"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmocom-bb </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ifb3ce6f91131fc361b20c3b3fe5ebc7079633ac3 </div>
<div style="display:none"> Gerrit-Change-Number: 20880 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>