diff options
author | 2022-05-10 14:17:43 +0100 | |
---|---|---|
committer | 2022-10-27 12:55:27 +0100 | |
commit | c1d8634c207defb547a57515729233e47f65718f (patch) | |
tree | a4f556b2db9b25aa876687d2d4aaab5fbc72cff2 /hw/usb/dev-hub.c | |
parent | tests: avoid DOS line endings in PSK file (diff) | |
download | qemu-c1d8634c207defb547a57515729233e47f65718f.tar.xz qemu-c1d8634c207defb547a57515729233e47f65718f.zip |
crypto: sanity check that LUKS header strings are NUL-terminated
The LUKS spec requires that header strings are NUL-terminated, and our
code relies on that. Protect against maliciously crafted headers by
adding validation.
Reviewed-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'hw/usb/dev-hub.c')
0 files changed, 0 insertions, 0 deletions