Stack overflow inside XSdPs_Setup32ADMA2DescTbl for large transfers
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- c
- Domain
- embedded-iot
Research direction
Start in embeddedsw/XilinxProcessorIPLib/drivers/sdps/src/xsdps.c at XSdPs_Setup32ADMA2DescTbl and inspect how TotalDescLines is used with Adma2_DescrTbl[32]. Exercise a large file transfer that produces more than 32 descriptors, then verify that descriptor configuration stays within the table and no adjacent memory is overwritten.
Written by the indexing model from the issue text.
Description
Inside: embeddedsw/XilinxProcessorIPLib/drivers/sdps/src/xsdps.c
Function: XSdPs_Setup32ADMA2DescTbl
For large file transfers, the total number of descriptors to be configured (TotalDescLines) can go past 32, which is how the descriptor table is declared (Adma2_DescrTbl[32]). This causes the descriptor configuration loop to start writing in other memory locations

- Dominant language
- HTML
- Stars
- 1.2k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
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.
More from Xilinx/embeddedsw
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Xilinx/embeddedsw#388 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Xilinx/embeddedsw#385 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Xilinx/embeddedsw#374 · 3 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Xilinx/embeddedsw#287 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Xilinx/embeddedsw#235 ·
All issues in Xilinx/embeddedsw
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
[adam] AdamNet network read doesn't cap to MAX_ADAM_PACKET_LEN, overflows client receive buffers Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
FujiNetWIFI/fujinet-firmware#1649 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
espressif/esp-iot-solution#786 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100