evgenido / stomp

STOMP client library written in C
GNU Lesser General Public License v3.0
15 stars 15 forks source link

When a large data is send, frame_out buffer is overrun #4

Open userlocalhost opened 8 years ago

userlocalhost commented 8 years ago

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 than buf_capacity in frame_alloc function.

lukcuc commented 5 years ago

/ - capacity = f->buf_capacity + BUFINCLEN; / + capacity = f->buf_len + len + BUFINCLEN;