Skip to content

Commit

Permalink
net: pkt: Fixed packet buffer corruption in net_pkt_pull()
Browse files Browse the repository at this point in the history
Changed size related variables type to size_t to handle
large packet buffers correctly

Signed-off-by: David D <[email protected]>
  • Loading branch information
a8961713 authored and jukkar committed Feb 3, 2020
1 parent 4f16268 commit 3de9677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/net/ip/net_pkt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 3de9677

Please sign in to comment.