[riot-notifications] [RIOT-OS/RIOT] FIDO2 support in RIOT (#16489)

benpicco notifications at github.com
Fri Aug 27 13:24:39 CEST 2021


@benpicco commented on this pull request.



> +    uint8_t buf[CTAP_FLASH_STATE_SZ] = { 0 };
+
+    memcpy(buf, state, sizeof(*state));

Arg I thought the MTD API would take care of this, but turns out it does not :/

I mean in theory you could just write `CTAP_FLASH_STATE_SZ` bytes withou copying and by that write some undefined bytes after your struct, but I'm not sure if that's such a clean solution.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16489#discussion_r697364856
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210827/f4093b21/attachment.htm>


More information about the notifications mailing list