Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed infinite loop in sn_coap_parser_options_parse_multiple_options() #2

Merged

Conversation

mjurczak
Copy link
Owner

Issuue ARMmbed/mbed-os#12929 fixed with improved boundary checks and correct end-of multiple options processing loop break conditions.

Simplified the sn_coap_parser_options_count_needed_memory_multiple_option() function by reusing extended options number/length parsing functions.
Removed the need for one being one byte behind the actual option value in case of multiple options processing.

Fixed the issue with improved boundary checks and inproved end-of multiple options processing loop break conditions.
Simplified the sn_coap_parser_options_count_needed_memory_multiple_option() function by reusing extended options number/length parsing functions.
Removed the need for one being one byte behind the actual option value in case of multiple options processing.
@mjurczak mjurczak merged commit 14aff16 into bugfix/buffer_read_out_of_bounds May 10, 2020
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