pt
pt copied to clipboard
pt_queue pointer overflow may cause wrong item index
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