From 11346cb5b2e1fc5c73fb10a949f884e88ac33e99 Mon Sep 17 00:00:00 2001 From: Jacob Quinn Date: Wed, 25 Sep 2024 02:56:59 -0600 Subject: [PATCH] Fix out of bounds in loggin --- src/sockets/client.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sockets/client.jl b/src/sockets/client.jl index 703badf..e1ee50d 100644 --- a/src/sockets/client.jl +++ b/src/sockets/client.jl @@ -310,7 +310,7 @@ function c_scheduled_write(channel_task, arg, status) aws_byte_buf_append(data, cursor) msg.message_data = data[] end - socket.debug && @info "[$(_id(socket))]: c_scheduled_write: sending $(data[].len) bytes in message: $(String(writebufdata[1:40]))..." + socket.debug && @info "[$(_id(socket))]: c_scheduled_write: sending $(data[].len) bytes in message: $(String(writebufdata[1:min(length(writebufdata), 40)]))..." if aws_channel_slot_send_message(socket.slot, msgptr, AWS_CHANNEL_DIR_WRITE) != 0 aws_mem_release(msg.allocator, msgptr) socket.debug && @error "c_scheduled_write: failed to send message"