[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #19432] netbuf_ref doesn't check pbuf_alloc result
From: |
Frédéric Bernon |
Subject: |
[lwip-devel] [bug #19432] netbuf_ref doesn't check pbuf_alloc result |
Date: |
Wed, 28 Mar 2007 09:10:35 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3 |
URL:
<http://savannah.nongnu.org/bugs/?19432>
Summary: netbuf_ref doesn't check pbuf_alloc result
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: fbernon
Submitted on: mercredi 28.03.2007 à 11:10
Category: None
Severity: 3 - Normal
Item Group: Crash Error
Status: None
Privacy: Public
Assigned to: fbernon
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
In netbuf_ref, pbuf_alloc result is not tested. A check and a return value
can be add...
err_t
netbuf_ref(struct netbuf buf, const void dataptr, u16_t size)
{ if (buf->p != NULL) {
pbuf_free(buf->p);
}
buf->ptr = buf->p = NULL;
buf->p = pbuf_alloc(PBUF_TRANSPORT, 0, PBUF_REF);
if (buf->p == NULL) {
return ERR_MEM;
}
buf->p->payload = (void*)dataptr;
buf->p->len = buf->p->tot_len = size;
buf->ptr = buf->p;
return ERR_OK;
}
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?19432>
_______________________________________________
Message posté via/par Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #19432] netbuf_ref doesn't check pbuf_alloc result,
Frédéric Bernon <=
- [lwip-devel] [bug #19432] netbuf_ref doesn't check pbuf_alloc result, Frédéric Bernon, 2007/03/28
- [lwip-devel] [bug #19432] netbuf_ref doesn't check pbuf_alloc result, Frédéric Bernon, 2007/03/28
- [lwip-devel] [bug #19432] netbuf_ref doesn't check pbuf_alloc result, Kieran Mansley, 2007/03/28
- [lwip-devel] [bug #19432] netbuf_ref doesn't check pbuf_alloc result, Frédéric Bernon, 2007/03/28
- [lwip-devel] [bug #19432] netbuf_ref doesn't check pbuf_alloc result, Kieran Mansley, 2007/03/28
- [lwip-devel] [bug #19432] netbuf_ref doesn't check pbuf_alloc result, Frédéric Bernon, 2007/03/28
- [lwip-devel] [bug #19432] netbuf_ref doesn't check pbuf_alloc result, Kieran Mansley, 2007/03/28
- [lwip-devel] [bug #19432] netbuf_ref doesn't check pbuf_alloc result, Frédéric Bernon, 2007/03/28