Skip to content

pt_queue pointer overflow may cause wrong item index #1

@ivan7wl

Description

@ivan7wl

Happens when the limit of pointer's type is not multiple of queue size.
For example:
pointer type is unsigned byte, from 0 ~ 255
queue size is 100

wr:     255 -> 0, round over to 0
idx:    55  -> 0, will override item at 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions