fix hprintf EOL handling
All other uses of misc buffer do not include 0 byte in length..
This commit is contained in:
parent
dacb4d5126
commit
29f06964a9
@ -615,7 +615,7 @@ static void handle_hypercall_kafl_printf(struct kvm_run *run, CPUState *cpu, uin
|
|||||||
#ifdef DEBUG_HPRINTF
|
#ifdef DEBUG_HPRINTF
|
||||||
fprintf(stderr, "%s %s\n", __func__, hprintf_buffer);
|
fprintf(stderr, "%s %s\n", __func__, hprintf_buffer);
|
||||||
#endif
|
#endif
|
||||||
set_hprintf_auxiliary_buffer(GET_GLOBAL_STATE()->auxilary_buffer, hprintf_buffer, strnlen(hprintf_buffer, HPRINTF_SIZE)+1);
|
set_hprintf_auxiliary_buffer(GET_GLOBAL_STATE()->auxilary_buffer, hprintf_buffer, strnlen(hprintf_buffer, HPRINTF_SIZE));
|
||||||
synchronization_lock();
|
synchronization_lock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user