cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: multi_threads

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 5 Dec 2005 23:27:19 +0100 (CET)

On Mon, 5 Dec 2005, Yi Li wrote:

> The program fault. Does anybody know why?

...

> the usage is : exename inputFile threadsNumber

...

   pthread_t tid[4];

   for(i=0; i< numThread; i++) {
     error = pthread_create(&tid[i],

...

Buffer overflow when 'i' reaches 4.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-12-05