Skip to content

correct size computation in m_cat

P J P qemu-devel 1 version Applied

Status from this message: Applied to my tree with a couple documentation improvements, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2slirp: correct size computation while concatenating mbufslirp/mbuf.c+4 -42 replies
2/2slirp: reformat m_cat routineslirp/mbuf.c+16 -201 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] correct size computation in m_cat

From: Prasad J Pandit <[email protected]>

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