From 3de967749a275eeb1ca1b0e3de51259fee184bf8 Mon Sep 17 00:00:00 2001 From: David D Date: Sun, 2 Feb 2020 06:32:40 +0200 Subject: [PATCH] net: pkt: Fixed packet buffer corruption in net_pkt_pull() Changed size related variables type to size_t to handle large packet buffers correctly Signed-off-by: David D --- subsys/net/ip/net_pkt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/net/ip/net_pkt.c b/subsys/net/ip/net_pkt.c index dfd2596c8d9ebb..8ceb13ffea62ad 100644 --- a/subsys/net/ip/net_pkt.c +++ b/subsys/net/ip/net_pkt.c @@ -1848,7 +1848,7 @@ int net_pkt_pull(struct net_pkt *pkt, size_t length) net_pkt_cursor_backup(pkt, &backup); while (length) { - u8_t left, rem; + size_t left, rem; pkt_cursor_advance(pkt, false);