Received: from eggs.gnu.org ([2001:4830:134:3::10]:48379) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fQVnI-00063o-Qu for qemu-devel@nongnu.org; Wed, 06 Jun 2018 06:35:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fQVnH-0001dI-PY for qemu-devel@nongnu.org; Wed, 06 Jun 2018 06:35:56 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:51496 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fQVnH-0001d1-Ku for qemu-devel@nongnu.org; Wed, 06 Jun 2018 06:35:55 -0400 From: P J P Date: Wed, 6 Jun 2018 16:05:47 +0530 Message-Id: <20180606103549.12031-1-ppandit@redhat.com> Subject: [Qemu-devel] [PATCH v1 0/2] correct size computation in m_cat List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Qemu Developers Cc: Samuel Thibault , Jan Kiszka , Prasad J Pandit From: Prasad J Pandit Hello, While reassembling incoming fragmented datagrams, 'm_cat' routine extends the 'mbuf' buffer if it has insufficient room. It computes a wrong buffer size, which leads to overwriting adjacent heap buffer area. This patch set fixes this issue and formats m_cat() routine as per coding style guide. Update v1: fixed indentation https://lists.gnu.org/archive/html/qemu-devel/2018-06/msg01121.html Thank you. -- Prasad J Pandit (2): slirp: correct size computation while concatenating mbuf slirp: reformat m_cat routine slirp/mbuf.c | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) -- 2.17.1