Message ID | 1458482736-7075-2-git-send-email-samuel.thibault@ens-lyon.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 68F4AC0553 for <patchwork-qemu-devel@patchwork.kernel.org>; Sun, 20 Mar 2016 14:06:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CD027202F0 for <patchwork-qemu-devel@patchwork.kernel.org>; Sun, 20 Mar 2016 14:06:01 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 13659202DD for <patchwork-qemu-devel@patchwork.kernel.org>; Sun, 20 Mar 2016 14:06:01 +0000 (UTC) Received: from localhost ([::1]:53057 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1ahdzT-0002bI-6u for patchwork-qemu-devel@patchwork.kernel.org; Sun, 20 Mar 2016 10:05:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <SRS0=2jJ8=PQ=ens-lyon.org=samuel.thibault@bounce.ens-lyon.org>) id 1ahdzD-0002b5-Ag for qemu-devel@nongnu.org; Sun, 20 Mar 2016 10:05:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <SRS0=2jJ8=PQ=ens-lyon.org=samuel.thibault@bounce.ens-lyon.org>) id 1ahdzA-0002iZ-GD for qemu-devel@nongnu.org; Sun, 20 Mar 2016 10:05:43 -0400 Received: from domu-toccata.ens-lyon.fr ([140.77.166.138]:43644 helo=sonata.ens-lyon.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <SRS0=2jJ8=PQ=ens-lyon.org=samuel.thibault@bounce.ens-lyon.org>) id 1ahdzA-0002hs-4d for qemu-devel@nongnu.org; Sun, 20 Mar 2016 10:05:40 -0400 Received: from localhost (localhost [127.0.0.1]) by sonata.ens-lyon.org (Postfix) with ESMTP id 5A6B0200E3; Sun, 20 Mar 2016 15:05:38 +0100 (CET) Received: from sonata.ens-lyon.org ([127.0.0.1]) by localhost (sonata.ens-lyon.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Zt8tJqOgt2W7; Sun, 20 Mar 2016 15:05:38 +0100 (CET) Received: from var.youpi.perso.aquilenet.fr (LFbn-1-6757-94.w90-120.abo.wanadoo.fr [90.120.189.94]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by sonata.ens-lyon.org (Postfix) with ESMTPSA id 2B521200DD; Sun, 20 Mar 2016 15:05:38 +0100 (CET) Received: from samy by var.youpi.perso.aquilenet.fr with local (Exim 4.86_2) (envelope-from <samuel.thibault@ens-lyon.org>) id 1ahdz7-0001qq-Dt; Sun, 20 Mar 2016 15:05:37 +0100 From: Samuel Thibault <samuel.thibault@ens-lyon.org> To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Sun, 20 Mar 2016 15:05:36 +0100 Message-Id: <1458482736-7075-2-git-send-email-samuel.thibault@ens-lyon.org> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1458482736-7075-1-git-send-email-samuel.thibault@ens-lyon.org> References: <1458482736-7075-1-git-send-email-samuel.thibault@ens-lyon.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 140.77.166.138 Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>, jan.kiszka@siemens.com Subject: [Qemu-devel] [PULL] slirp: Fix memory leak on small incoming ipv4 packet X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
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 *);
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> --- slirp/ip_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)