fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/30290 )


Change subject: trxcon: trx_data_rx_cb(): check TRXD PDU version
......................................................................

trxcon: trx_data_rx_cb(): check TRXD PDU version

Change-Id: If5687d7d87619c0da02cc81ab26d63e61484bc06
---
M src/host/trxcon/src/trx_if.c
1 file changed, 6 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/90/30290/1

diff --git a/src/host/trxcon/src/trx_if.c b/src/host/trxcon/src/trx_if.c
index c8e7a93..c938fc0 100644
--- a/src/host/trxcon/src/trx_if.c
+++ b/src/host/trxcon/src/trx_if.c
@@ -648,6 +648,12 @@
                return -EINVAL;
        }

+       if ((buf[0] >> 4) != 0) {
+               LOGPFSMSL(trx->fi, DTRXD, LOGL_ERROR,
+                         "Got TRXD PDU with unexpected version\n");
+               return -ENOTSUP;
+       }
+
        burst = (sbit_t *)&buf[8];

        bi = (struct trxcon_phyif_burst_ind) {

--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/30290
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: If5687d7d87619c0da02cc81ab26d63e61484bc06
Gerrit-Change-Number: 30290
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-MessageType: newchange

Reply via email to