[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] How to read data coming from a POST request



10.08.2012, в 19:15, Riccardo Tacconi wrote
>     char *data;
>     evbuffer_copyout(in_evb, data, len);

Hello. You must have an initialized data buffer before copying anything to it. Something like:
char *data = malloc(len);

With your current code you try to write to memory that does not belong to you.***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.