mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-06 03:40:16 +00:00
hci_event_builder: fix buffer overrun check
This commit is contained in:
parent
b129caddf4
commit
368f13718e
@ -46,7 +46,7 @@
|
||||
#include <stddef.h>
|
||||
|
||||
static void hci_event_builder_increment_pos(hci_event_builder_context_t * context, uint16_t size){
|
||||
btstack_assert((context->pos + size) < context->size);
|
||||
btstack_assert((context->pos + size) <= context->size);
|
||||
context->pos += size;
|
||||
context->buffer[1] = (uint8_t) (context->pos - 2);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user