Skip to content
  1. Dec 11, 2013
    • Eric Lubin's avatar
      parsedate: avoid integer overflow · 7246dfff
      Eric Lubin authored
      In C, signed integer overflow is undefined behavior. Thus, the compiler
      is allowed to assume that it will not occur. In the check for an
      overflow, the developer assumes that the signed integer of type time_t
      will wrap around if it overflows. However, this behavior is undefined in
      the C standard. Thus, when the compiler sees this, it simplifies t +
      delta < t to delta < 0. Since delta > 0 and delta < 0 can't both be
      true, the entire if statement is optimized out under certain
      optimization levels. Thus, the parsedate function would return
      PARSEDATE_OK with an undefined value in the time, instead of return -1 =
      PARSEDATE_FAIL.
      7246dfff
  2. Dec 09, 2013
  3. Dec 07, 2013
  4. Dec 06, 2013
    • Christian Weisgerber's avatar
      curl.h: <sys/select.h> for OpenBSD · 92e607ab
      Christian Weisgerber authored
      curl.h should also include <sys/select.h> on OpenBSD to reliably
      pull in select().  Typically, including <sys/time.h> will be enough,
      but not if strict standards-compliance is requested (e.g. by defining
      _XOPEN_SOURCE).
      92e607ab
  5. Dec 04, 2013
  6. Dec 02, 2013
  7. Dec 01, 2013
  8. Nov 30, 2013
  9. Nov 29, 2013
  10. Nov 28, 2013
  11. Nov 27, 2013
  12. Nov 24, 2013