RT-Thread / RT-Thread/rt-thread
Missing address indirection in usb device
Open
@lymzzyh is already working on this.
Since May 31, 2020.
Status: waiting for test
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description
Hi,
In components/drivers/usb/usbdevice/core/core.c in _ep0_out_notify around line 888 the line that currently reads;
size = dcd_ep_read(device->dcd, EP0_OUT_ADDR, ep0->request.buffer);
should be updated to read;
size = dcd_ep_read(device->dcd, EP0_OUT_ADDR, &ep0->request.buffer);
...otherwise bad things happen, but not very often.
DAVE
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.