Change in osmo-ggsn[master]: fix format string error in ippool_printaddr()

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/.

Stefan Sperling gerrit-no-reply at lists.osmocom.org
Thu Nov 22 07:20:51 UTC 2018


Stefan Sperling has uploaded this change for review. ( https://gerrit.osmocom.org/11870


Change subject: fix format string error in ippool_printaddr()
......................................................................

fix format string error in ippool_printaddr()

The variable this->listsize is an unsigned int, but the format
string assumed ptrdiff_t. Found by Coverity.

Change-Id: Ib2a55907adae98f8aa7b079f1c9a3b4fc5f67fc5
Related: CID#188879
---
M lib/ippool.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/70/11870/1

diff --git a/lib/ippool.c b/lib/ippool.c
index 6ce3cda..fee757b 100644
--- a/lib/ippool.c
+++ b/lib/ippool.c
@@ -30,7 +30,7 @@
 	printf("Lastdyn %td\n", this->lastdyn - this->member);
 	printf("Firststat %td\n", this->firststat - this->member);
 	printf("Laststat %td\n", this->laststat - this->member);
-	printf("Listsize %td\n", this->listsize);
+	printf("Listsize %u\n", this->listsize);
 
 	for (n = 0; n < this->listsize; n++) {
 		char s[256];

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

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib2a55907adae98f8aa7b079f1c9a3b4fc5f67fc5
Gerrit-Change-Number: 11870
Gerrit-PatchSet: 1
Gerrit-Owner: Stefan Sperling <ssperling at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181122/1503236f/attachment.htm>


More information about the gerrit-log mailing list