Change in ...osmocom-bb[master]: virtphy: Fix array out of bounds access in getL1ctlPrimName()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sun Jul 21 06:10:02 UTC 2019


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/14848


Change subject: virtphy: Fix array out of bounds access in getL1ctlPrimName()
......................................................................

virtphy: Fix array out of bounds access in getL1ctlPrimName()

Closes: CID#198573
Change-Id: I6504a7ffcf961d3162e6ab2ec8f5f2016ef12cde
---
M src/host/virt_phy/src/logging.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/48/14848/1

diff --git a/src/host/virt_phy/src/logging.c b/src/host/virt_phy/src/logging.c
index a3e63bc..7e4e79b 100644
--- a/src/host/virt_phy/src/logging.c
+++ b/src/host/virt_phy/src/logging.c
@@ -128,7 +128,7 @@
 
 const char *getL1ctlPrimName(uint8_t type)
 {
-	if (type <= ARRAY_SIZE(l1ctlPrimNames))
+	if (type < ARRAY_SIZE(l1ctlPrimNames))
 		return l1ctlPrimNames[type];
 	else
 		return "Unknwon Primitive";

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

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I6504a7ffcf961d3162e6ab2ec8f5f2016ef12cde
Gerrit-Change-Number: 14848
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at gnumonks.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190721/1bbee324/attachment.htm>


More information about the gerrit-log mailing list