mbed-os/libraries
Adam Green bfafd8a014 USBHost: Calling memcpy() instead of memset()?
The two following memcpy() calls in USBEndpoint::init() are passing in
a NULL pointer as the copy source location.

    memcpy(td_list_[0], 0, sizeof(HCTD));
    memcpy(td_list_[1], 0, sizeof(HCTD));

I suspect that these were meant to be memset() calls instead so I
switched them.  In one of the places that I found where this method is
called, USBHost::newEndpoint(), its passes in an array of HCTD objects
which have already been cleared with similar memset() calls.  I am
therefore pretty certain that these were meant to be memset() calls but
if all callers already guarantee that they are zeroed out then maybe
the memset()s can be removed from USBEndpoint::init() anyway.
2013-08-29 18:22:22 -07:00
..
USBDevice USBDevice: Silence GCC warning 2013-08-21 22:23:35 -07:00
USBHost USBHost: Calling memcpy() instead of memset()? 2013-08-29 18:22:22 -07:00
doc Initial commit of the mbed libraries and tools 2013-02-18 15:32:11 +00:00
dsp Initial commit of the mbed libraries and tools 2013-02-18 15:32:11 +00:00
fs fs: Silence GCC signed/unsigned warnings 2013-08-19 22:53:49 -07:00
mbed Fixed: The issue of interrupt vector remapping for GCC_ARM LPC1114 2013-08-29 21:40:57 +09:00
net Don't dereference NULL ipaddr in netif_set_ipaddr() 2013-08-15 19:02:51 -07:00
rpc Added LPC1114 and target for some test cases 2013-08-16 00:24:09 +09:00
rtos Merge remote-tracking branch 'upstream/master' 2013-07-26 15:50:59 +01:00
tests Support LPC1114 platform 2013-08-21 16:41:18 +09:00