[Git][slirp/libslirp][master] tcp: Fix testing for last fragment
Samuel Thibault (@sthibaul)
gitlab at gitlab.freedesktop.org
Wed Apr 24 23:53:26 UTC 2024
Samuel Thibault pushed to branch master at slirp / libslirp
Commits:
bdba265d by Samuel Thibault at 2024-04-25T01:23:00+02:00
tcp: Fix testing for last fragment
Spotted thanks to ASAN & fuzzing.
- - - - -
1 changed file:
- src/tcp_input.c
Changes:
=====================================
src/tcp_input.c
=====================================
@@ -162,7 +162,7 @@ present:
} else
sbappend(so, m);
}
- } while (ti != (struct tcpiphdr *)tp && ti->ti_seq == tp->rcv_nxt);
+ } while (!tcpfrag_list_end(ti, tp) && ti->ti_seq == tp->rcv_nxt);
return (flags);
}
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/bdba265ddf1124c4d5475264532254c728b7e78c
--
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/commit/bdba265ddf1124c4d5475264532254c728b7e78c
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20240424/e8b65bf4/attachment.htm>
More information about the Slirp
mailing list