Open userlocalhost opened 8 years ago
Client call stomp_send function with large data (1024 byte, or more), then memory corruption error is occurred.
stomp_send
This is because buf_len will be begger than buf_capacity in frame_alloc function.
buf_len
buf_capacity
frame_alloc
/ - capacity = f->buf_capacity + BUFINCLEN; / + capacity = f->buf_len + len + BUFINCLEN;
Client call
stomp_send
function with large data (1024 byte, or more), then memory corruption error is occurred.This is because
buf_len
will be begger thanbuf_capacity
inframe_alloc
function.