Skip to content

Conversation

@urgent-canadian
Copy link

When a packet is received and all Rx buffers are full, the variable RxBank is left with its pre-initialized value of 0xFF.
The RxBank variable was then used as an array index into a buffer array of BANK_SIZE elements.
The error code value of uint8_t 0xFF used as an array index causes packet data to be written far outside the memory allocated
for the buffer table of BANK_SIZE elements (4 elements).

255 > 4

:-)

…e error code value 0xff was used as array index.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant