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

boot_serial: fix misuse of 'matched' param from zcbor_map_decode_bulk() #1733

Merged

Conversation

pepe2k
Copy link
Contributor

@pepe2k pepe2k commented Jun 28, 2023

The matched param in zcbor_map_decode_bulk() function is pointer to the counter of matched keys, not length of payload buffer. Reference: https://github.com/mcu-tools/mcuboot/blob/main/boot/boot_serial/src/zcbor_bulk.h#L96, fixes: fac2cab.

The 'matched' param in zcbor_map_decode_bulk() function is 'pointer to
the counter of matched keys', not length of payload buffer.

Fixes: fac2cab ("boot_serial: Add image state set/get")
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
@carlescufi
Copy link
Collaborator

@davidvincze @d3zd3z Could you please take a look and approve/merge if happy?

@d3zd3z d3zd3z merged commit f2cb550 into mcu-tools:main Jul 5, 2023
52 checks passed
@pepe2k pepe2k deleted the fix-zcbor_map_decode_bulk-matched-param-misuse branch July 16, 2023 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants