commit | 230a4894f45eac5fbd6bea8dc0dd54f84cf6c0fa | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Mon May 26 09:25:50 2025 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Thu Jun 05 20:24:51 2025 +0200 |
tree | 171081e885e1d52583ff069a14787c72a0715109 | |
parent | 8714d366e7e29d3ca8cebc8504e18c4cd7b5cf48 [diff] |
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>