Skip to content

Off-by-one error in FIFO #15

Description

@StratisSofianos

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions