commit 77694967106b5462afed9558713f1f63fdb99216 from: Omar Polo date: Mon Jul 26 13:13:06 2021 UTC avoid read out-of-bounds commit - 8850afbc91be6f71fa7f70886d9ba5af5b929560 commit + 77694967106b5462afed9558713f1f63fdb99216 blob - 1dcdc3e0f3bd120797390ab132321125fa10d833 blob + 108da3ba3d72cfd5ad8d0a08f4ada15cfd89c913 --- listener.c +++ listener.c @@ -746,7 +746,7 @@ client_tls_readcb(int fd, short event, void *d) { struct bufferevent *bufev = d; struct client *client = bufev->cbarg; - char buf[BUFSIZ]; + char buf[IBUF_READ_SIZE]; int what = EVBUFFER_READ; int howmuch = IBUF_READ_SIZE; ssize_t ret;