correct size computation in m_cat
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | slirp: correct size computation while concatenating mbufslirp/ | +6 | 0 replies | |
| 2/2 | slirp: reformat m_cat routineslirp/ | +16 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Qemu-devel] [PATCH v1 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.
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