Skip to content

lwm2m: Do not enforce canonical CBOR deconding #86083

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

Merged
merged 1 commit into from
Apr 24, 2025

Conversation

SeppoTakalo
Copy link
Collaborator

@SeppoTakalo SeppoTakalo commented Feb 20, 2025

When receiving CBOR encoded data, we do not need to enforce canonical decoding.

See: https://github.com/zephyrproject-rtos/zephyr/pull/82318/files

rlubos
rlubos previously approved these changes Feb 20, 2025
Our decoder can handle decoding of non-deterministic CBOR just fine.
There is no need to block valid CBOR if the server does not produce
length-first deterministic CBOR.

Signed-off-by: Seppo Takalo <[email protected]>
@SeppoTakalo
Copy link
Collaborator Author

I dropped the MCUmgr part from this PR.

That should be fixed separately. For LwM2M, we don't control both sides, so allow non-canonical.

@SeppoTakalo SeppoTakalo changed the title lwm2m + mcumgr: Do not enforce canonical CBOR deconding lwm2m: Do not enforce canonical CBOR deconding Mar 3, 2025
@SeppoTakalo SeppoTakalo requested review from oyvindronningstad and rlubos and removed request for oyvindronningstad March 3, 2025 07:59
@nordicjm nordicjm assigned rlubos and unassigned nordicjm Apr 24, 2025
@nordicjm nordicjm requested a review from jukkar April 24, 2025 11:58
@kartben kartben merged commit 78ee0f0 into zephyrproject-rtos:main Apr 24, 2025
23 checks passed
@SeppoTakalo SeppoTakalo deleted the lwm2m_cbor_canonical branch April 25, 2025 06:11
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.

7 participants