lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [bug #45454] pbuf_take_at() skips write and returns OK if o


From: Erik Ekman
Subject: [lwip-devel] [bug #45454] pbuf_take_at() skips write and returns OK if offset is at start of pbuf in chain
Date: Wed, 01 Jul 2015 11:03:32 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:37.0) Gecko/20100101 Firefox/37.0

URL:
  <http://savannah.nongnu.org/bugs/?45454>

                 Summary: pbuf_take_at() skips write and returns OK if offset
is at start of pbuf in chain
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: yarrick
            Submitted on: Wed 01 Jul 2015 11:03:30 AM GMT
                Category: pbufs
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: git head

    _______________________________________________________

Details:

Off by one in bounds check caused write not to happen if supplied is 0, or
buf->len in case of chained pbufs.

Fix is attached, together with test cases to verify it.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 01 Jul 2015 11:03:30 AM GMT  Name:
0001-Fix-off-by-one-in-pbuf_take_at.patch  Size: 4kB   By: yarrick

<http://savannah.nongnu.org/bugs/download.php?file_id=34352>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?45454>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]