Closed 0xfocu5 closed 1 year ago
Thanks for reporting this inconsistency. We've update the API to use uint8_t for the nibble parameter on the develop branch.
This is an local API functions that returns an invalid result if called with an unexpected input. Calling it with an incorrect value should actually trigger an assert instead of returning a question mark.
Can you trigger this integer overflow from a remote device via Bluetooth?
This is an local API functions that returns an invalid result if called with an unexpected input. Calling it with an incorrect value should actually trigger an assert instead of returning a question mark.
Can you trigger this integer overflow from a remote device via Bluetooth?
"I have only tried it locally and haven't attempted it remotely yet."
Describe the bug
i got a Integer Overflow with this test file。
and i saw this source c file in btstack/src/btstack_util.c
it just check nibble less than 16 but nibble is a Integer and it can be a negative,so it will be stack overflow
Discover by 0xfocu5&Taolaw@vecentek