[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 1/5] slirp: Fix memory leak on small incoming ipv4 pa
From: |
Samuel Thibault |
Subject: |
[Qemu-devel] [PULL 1/5] slirp: Fix memory leak on small incoming ipv4 packet |
Date: |
Tue, 29 Mar 2016 01:28:20 +0200 |
Signed-off-by: Samuel Thibault <address@hidden>
Reviewed-by: Thomas Huth <address@hidden>
---
slirp/ip_input.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/slirp/ip_input.c b/slirp/ip_input.c
index 12f173d..b464f6b 100644
--- a/slirp/ip_input.c
+++ b/slirp/ip_input.c
@@ -85,7 +85,7 @@ ip_input(struct mbuf *m)
DEBUG_ARG("m_len = %d", m->m_len);
if (m->m_len < sizeof (struct ip)) {
- return;
+ goto bad;
}
ip = mtod(m, struct ip *);
--
2.8.0.rc3
- [Qemu-devel] [PULL 0/5] slirp updates, Samuel Thibault, 2016/03/28
- [Qemu-devel] [PULL 4/5] Use C99 flexible array instead of 1-byte trailing array, Samuel Thibault, 2016/03/28
- [Qemu-devel] [PULL 2/5] slirp: send icmp6 errors when UDP send failed, Samuel Thibault, 2016/03/28
- [Qemu-devel] [PULL 1/5] slirp: Fix memory leak on small incoming ipv4 packet,
Samuel Thibault <=
- [Qemu-devel] [PULL 5/5] Rework ipv6 options, Samuel Thibault, 2016/03/28
- [Qemu-devel] [PULL 3/5] Avoid embedding struct mbuf in other structures, Samuel Thibault, 2016/03/28
- Re: [Qemu-devel] [PULL 0/5] slirp updates, Peter Maydell, 2016/03/29