Merge pull request #65 from rh0dev/qemu-nyx-4.2.0

pass correct message length to set_abort_reason_auxiliary_buffer()
This commit is contained in:
Sergej Schumilo 2024-10-03 19:35:29 +02:00 committed by GitHub
commit ff1c897321
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,6 +28,8 @@ void nyx_abort(const char *fmt, ...)
msglen = vsnprintf(msg, sizeof(msg), fmt, ap);
va_end(ap);
msglen = MIN(msglen, sizeof(msg));
nyx_error("%s\n", msg);
set_abort_reason_auxiliary_buffer(GET_GLOBAL_STATE()->auxilary_buffer, msg,
msglen);