Skip to content

wire_ctx: refactor to reduce duplication and UB

Vladimír Čunát requested to merge wire_ctx-refactor into master

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.

Merge request reports