]> git.ipfire.org Git - thirdparty/qemu.git/commit
util/error: allow non-NUL-terminated err->src
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 May 2025 07:25:50 +0000 (09:25 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 5 Jun 2025 18:24:51 +0000 (20:24 +0200)
commit230a4894f45eac5fbd6bea8dc0dd54f84cf6c0fa
tree171081e885e1d52583ff069a14787c72a0715109
parent8714d366e7e29d3ca8cebc8504e18c4cd7b5cf48
util/error: allow non-NUL-terminated err->src

Rust makes the current file available as a statically-allocated string,
but without a NUL terminator.  Allow this by storing an optional maximum
length in the Error.

Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/qapi/error-internal.h
util/error.c