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

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



Thank you (Dave too). I started to fear that malloc was not called inside. As you might guess I am a C noob, well re-learning C or trying to learnt it properly.

Now I can see the parameters passed from the user agent.

On 10 August 2012 17:21, Chernyshev Vyacheslav <astellar@xxxxx> wrote:

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 = "">
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.



--
Riccardo Tacconi
Ruby on Rails and PHP development - System Administration
VIRTUELOGIC LIMITED

http://github.com/rtacconi
http://riccardotacconi.blogspot.com
http://twitter.com/rtacconi