Skip to content
Snippets Groups Projects
Commit 9badca98 authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

wire_ctx: refactor to reduce duplication and UB

It was using misaligned pointers which causes undefined behavior,
at least theoretically.

API change: data in wire_ctx_read() is now passed as void* instead of
uint8_t*, and it zeroes the data on error.
parent d17048d7
Branches
Tags
1 merge request!622wire_ctx: refactor to reduce duplication and UB
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment