mirror of
https://github.com/tmux/tmux.git
synced 2024-11-18 18:38:54 +00:00
Fix fuzzer wrapper.
This commit is contained in:
parent
f725f9bc8a
commit
4c07367bfe
@ -43,7 +43,7 @@ LLVMFuzzerTestOneInput(const unsigned char *data, size_t size)
|
|||||||
w = window_create(PANE_WIDTH, PANE_HEIGHT, 0, 0);
|
w = window_create(PANE_WIDTH, PANE_HEIGHT, 0, 0);
|
||||||
wp = window_add_pane(w, NULL, 0, 0);
|
wp = window_add_pane(w, NULL, 0, 0);
|
||||||
bufferevent_pair_new(libevent, BEV_OPT_CLOSE_ON_FREE, vpty);
|
bufferevent_pair_new(libevent, BEV_OPT_CLOSE_ON_FREE, vpty);
|
||||||
wp->ictx = input_init(wp, vpty[0]);
|
wp->ictx = input_init(wp, vpty[0], NULL);
|
||||||
window_add_ref(w, __func__);
|
window_add_ref(w, __func__);
|
||||||
|
|
||||||
input_parse_buffer(wp, (u_char*) data, size);
|
input_parse_buffer(wp, (u_char*) data, size);
|
||||||
|
Loading…
Reference in New Issue
Block a user