json: use secure un{base64,hex}mem for sensitive variants
authorKamil Szczęk <kamil@szczek.dev>
Wed, 5 Jun 2024 09:21:23 +0000 (11:21 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 5 Jun 2024 13:44:58 +0000 (14:44 +0100)
commit80313c55770ef0e2174fe5750680e426278416cb
treebc681b277fbdf6ff6f7ee67d7ad4e608e1045fe9
parent8b439af2c0cbe1e457fdf008eb92da42cd90546b
json: use secure un{base64,hex}mem for sensitive variants

While tracing a LUKS code path in homework, I've noticed that we don't
erase buffers when doing unbase64 or unhex on JSON variants, even if the
variant is marked as sensitive.
src/shared/json.c