1. 18 Nov, 2014 2 commits
  2. 11 Nov, 2014 1 commit
  3. 10 Nov, 2014 2 commits
  4. 02 Nov, 2014 12 commits
  5. 26 Sep, 2014 9 commits
  6. 24 Sep, 2014 2 commits
  7. 18 Sep, 2014 2 commits
  8. 13 Sep, 2014 2 commits
  9. 11 Sep, 2014 1 commit
  10. 09 Sep, 2014 2 commits
  11. 07 Sep, 2014 3 commits
  12. 06 Sep, 2014 1 commit
  13. 04 Sep, 2014 1 commit
    • Max Kellermann's avatar
      protocol/ArgParser: fix integer overflow in parse_range() · 421c4ae9
      Max Kellermann authored
      Casting std::numeric_limits<unsigned>::max() to "long" leads to an
      overflow if sizeof(unsigned)==sizeof(long), and the result will be -1.
      
      This happens on some 32 bit architectures, for example ARM and WIN32.
      
      Workaround: use std::numeric_limits<int>::max(), which is the largest
      signed integer.  Since sizeof(long)>=sizeof(int), this will never
      overflow.
      
      Fixes Mantis ticket 0004080.
      421c4ae9