From: P J P <ppandit@redhat.com>
To: Qemu Developers <qemu-devel@nongnu.org>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>,
Jan Kiszka <jan.kiszka@siemens.com>,
Prasad J Pandit <pjp@fedoraproject.org>
Subject: [Qemu-devel] [PATCH 0/2] correct size computation in m_cat
Date: Tue, 5 Jun 2018 23:38:34 +0530 [thread overview]
Message-ID: <20180605180836.21485-1-ppandit@redhat.com> (raw)
From: Prasad J Pandit <pjp@fedoraproject.org>
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.
Thank you.
--
Prasad J Pandit (2):
slirp: correct size computation while concatenating mbuf
slirp: reformat m_cat routine
slirp/mbuf.c | 38 +++++++++++++++++---------------------
1 file changed, 17 insertions(+), 21 deletions(-)
--
2.17.1
next reply other threads:[~2018-06-05 18:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-05 18:08 P J P [this message]
2018-06-05 18:08 ` [Qemu-devel] [PATCH 1/2] slirp: correct size computation while concatenating mbuf P J P
2018-06-06 9:09 ` Samuel Thibault
2018-06-06 18:42 ` P J P
2018-06-05 18:08 ` [Qemu-devel] [PATCH 2/2] slirp: reformat m_cat routine P J P
2018-06-06 9:18 ` Samuel Thibault
2018-06-06 8:58 ` [Qemu-devel] [PATCH 0/2] correct size computation in m_cat no-reply
2018-06-06 10:19 ` no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180605180836.21485-1-ppandit@redhat.com \
--to=ppandit@redhat.com \
--cc=jan.kiszka@siemens.com \
--cc=pjp@fedoraproject.org \
--cc=qemu-devel@nongnu.org \
--cc=samuel.thibault@ens-lyon.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).