Skip to contentSkip to conversation

slirp: Fix memory leak on small incoming ipv4 packet

GIT PULL Samuel Thibault 3 participants 4 messages Mar 20, 2016 – Mar 21, 2016

lore
Share & tools
lore
#0 lore raw

The following changes since commit 4829e0378dfb91d55af9dfd741bd09e8f2c4f91a:

Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2016-03-18' into staging (2016-03-18 17:18:41 +0000)

are available in the git repository at:

http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault

for you to fetch changes up to 6f843b773c2fdec99f1d27081b0cc80fede76493:

slirp: Fix memory leak on small incoming ipv4 packet (2016-03-20 12:17:16 +0100)

----------------------------------------------------------------
slirp: Fix memory leak on small incoming ipv4 packet

----------------------------------------------------------------
Samuel Thibault (1):
slirp: Fix memory leak on small incoming ipv4 packet

 slirp/ip_input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#1 lore raw
---
 slirp/ip_input.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
slirp/ip_input.c +1 -1
index 12f173d..b464f6b 100644
@@ -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 *);
Signature · 1 line
2.7.0
#2 lore raw
In reply to Samuel Thibault
Quoted 10 lines · Samuel Thibault

The following changes since commit 4829e0378dfb91d55af9dfd741bd09e8f2c4f91a:

Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2016-03-18' into staging (2016-03-18 17:18:41 +0000)

are available in the git repository at:

http://people.debian.org/~sthibault/qemu.git tags/samuel-thibault

for you to fetch changes up to 6f843b773c2fdec99f1d27081b0cc80fede76493:

Quoted 8 lines

slirp: Fix memory leak on small incoming ipv4 packet (2016-03-20 12:17:16 +0100)

----------------------------------------------------------------
slirp: Fix memory leak on small incoming ipv4 packet

----------------------------------------------------------------
Samuel Thibault (1):
slirp: Fix memory leak on small incoming ipv4 packet

Hi -- I couldn't find where these patches had been sent to the mailing list previously (though it's possible I missed them). Generally the process for QEMU is that first patches are sent as normal [PATCH] mails, for code review. Patches should only be put into pull requests once they've been through the review process. (And then you can batch them up so you don't have to send me two pulls for one patch each.)

thanks
-- PMM

#3 lore raw

Hello,

Quoted 5 lines · Peter Maydell, on Mon 21 Mar 2016 09:48:48 +0000, wrote:

Generally the
process for QEMU is that first patches are sent as normal [PATCH] mails, for code review. Patches should only be put into pull requests once they've been through the review process. (And then you can batch them up so you don't have to send me two pulls for one patch each.)

Ah OK. Since they were one-liners, I thought they didn't need the review step. Now resent for review.

Samuel