XUartPs_ReceiveBuffer corrupts memory
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1.2k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
In commit: https://github.com/Xilinx/embeddedsw/commit/7ec11fb77629dccd06f29c44764af638cb216c41
"=" has been added to this line:
while((ReceivedCount <= InstancePtr->ReceiveBuffer.RemainingBytes)&&
That creates a buffer overrun. Remaining will become 2^32-1 and keeps writing.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by inspecting commit 7ec11fb77629dccd06f29c44764af638cb216c41 and the XUartPs_ReceiveBuffer entry point. Check the loop boundary involving ReceivedCount and RemainingBytes, then verify the boundary case that causes RemainingBytes to wrap; done means the buffer is no longer overrun.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100