-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
sc_util/module_xfifo/src/xfifo.c
Line 6 in c06706f
| fifo[LEN_INDEX] = n+FIFO_START+1; |
This can cause an overflow if the size of the buffer is [FIFO_OVERHEAD + FIFO_SIZE] as per the app_xfifo_example.
In order to prevent that, the above line should read
fifo[LEN_INDEX] = n+FIFO_START;
Metadata
Metadata
Assignees
Labels
No labels