pespin has uploaded this change for review.

View Change

osmo_io: iofd_msgb_alloc(): Allow allocating msgb of len=0xffff

Fixes: 8857f3b79826efe19d216cfd911490ffa81df02b

Change-Id: I6f9125916a301414301587f84fc3db98549a2f3f
(cherry picked from commit 6cd7abdf16c4f99db05a6f86a557b567a0f187ad)
---
M src/core/osmo_io.c
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/50/39350/1
diff --git a/src/core/osmo_io.c b/src/core/osmo_io.c
index cef9bec..7b5c64a 100644
--- a/src/core/osmo_io.c
+++ b/src/core/osmo_io.c
@@ -172,7 +172,7 @@
{
uint16_t headroom = iofd->msgb_alloc.headroom;

- OSMO_ASSERT(iofd->msgb_alloc.size < 0xffff - headroom);
+ OSMO_ASSERT(iofd->msgb_alloc.size <= 0xffff - headroom);
return msgb_alloc_headroom_c(iofd, iofd->msgb_alloc.size + headroom, headroom, "osmo_io_msgb");
}


To view, visit change 39350. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: libosmocore
Gerrit-Branch: pespin/rel-1.10.0
Gerrit-Change-Id: I6f9125916a301414301587f84fc3db98549a2f3f
Gerrit-Change-Number: 39350
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>