On Thu, Jun 05, 2025 at 12:15:33PM +0200, Paolo Bonzini wrote: > Date: Thu, 5 Jun 2025 12:15:33 +0200 > From: Paolo Bonzini <pbonz...@redhat.com> > Subject: [PATCH 04/14] util/error: allow non-NUL-terminated err->src > X-Mailer: git-send-email 2.49.0 > > 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. > > Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> > --- > include/qapi/error-internal.h | 9 ++++++++- > util/error.c | 5 +++-- > 2 files changed, 11 insertions(+), 3 deletions(-)
Reviewed-by: Zhao Liu <zhao1....@intel.com>