Skip to content
Snippets Groups Projects
  1. Sep 13, 2014
  2. Sep 12, 2014
  3. Sep 11, 2014
  4. Sep 10, 2014
  5. Sep 08, 2014
  6. Sep 07, 2014
    • Brandon Casey's avatar
      Ensure progress.size_dl/progress.size_ul are always >= 0 · 6beb0eee
      Brandon Casey authored
      
      Historically the default "unknown" value for progress.size_dl and
      progress.size_ul has been zero, since these values are initialized
      implicitly by the calloc that allocates the curl handle that these
      variables are a part of.  Users of curl that install progress
      callbacks may expect these values to always be >= 0.
      
      Currently it is possible for progress.size_dl and progress.size_ul
      to by set to a value of -1, if Curl_pgrsSetDownloadSize() or
      Curl_pgrsSetUploadSize() are passed a "size" of -1 (which a few
      places currently do, and a following patch will add more).  So
      lets update Curl_pgrsSetDownloadSize() and Curl_pgrsSetUploadSize()
      so they make sure that these variables always contain a value that
      is >= 0.
      
      Updates test579 and test599.
      
      Signed-off-by: default avatarBrandon Casey <drafnel@gmail.com>
      6beb0eee
    • Steve Holme's avatar
      multi.c: Avoid invalid memory read after free() from commit 3c8c8732 · 4a6fa4c2
      Steve Holme authored
      As the current element in the list is free()d by Curl_llist_remove(),
      when the associated connection is pending, reworked the loop to avoid
      accessing the next element through e->next afterward.
      4a6fa4c2
  7. Sep 06, 2014
  8. Sep 05, 2014
  9. Sep 02, 2014
  10. Sep 01, 2014
  11. Aug 31, 2014
    • Vilmos Nebehaj's avatar
      Check CA certificate in curl_darwinssl.c. · 0426670f
      Vilmos Nebehaj authored
      SecCertificateCreateWithData() returns a non-NULL SecCertificateRef even
      if the buffer holds an invalid or corrupt certificate. Call
      SecCertificateCopyPublicKey() to make sure cacert is a valid
      certificate.
      0426670f
    • Daniel Stenberg's avatar
      low-speed-limit: avoid timeout flood · cacdc27f
      Daniel Stenberg authored
      Introducing Curl_expire_latest(). To be used when we the code flow only
      wants to get called at a later time that is "no later than X" so that
      something can be checked (and another timeout be added).
      
      The low-speed logic for example could easily be made to set very many
      expire timeouts if it would be called faster or sooner than what it had
      set its own timer and this goes for a few other timers too that aren't
      explictiy checked for timer expiration in the code.
      
      If there's no condition the code that says if(time-passed >= TIME), then
      Curl_expire_latest() is preferred to Curl_expire().
      
      If there exists such a condition, it is on the other hand important that
      Curl_expire() is used and not the other.
      
      Bug: http://curl.haxx.se/mail/lib-2014-06/0235.html
      Reported-by: Florian Weimer
      cacdc27f
    • Michael Wallner's avatar
      resolve: cache lookup for async resolvers · 09b5a998
      Michael Wallner authored
      While waiting for a host resolve, check if the host cache may have
      gotten the name already (by someone else), for when the same name is
      resolved by several simultanoues requests.
      
      The resolver thread occasionally gets stuck in getaddrinfo() when the
      DNS or anything else is crappy or slow, so when a host is found in the
      DNS cache, leave the thread alone and let itself cleanup the mess.
      09b5a998
  12. Aug 30, 2014
  13. Aug 26, 2014
  14. Aug 25, 2014
  15. Aug 22, 2014
  16. Aug 21, 2014
  17. Aug 20, 2014
  18. Aug 17, 2014
  19. Aug 16, 2014
  20. Aug 15, 2014
Loading