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:
commit
ff1c897321
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user