1. 08 May, 2017 1 commit
    • Max Kellermann's avatar
      *: remove "pure" and "const" attributes from throwing functions · 788e3b31
      Max Kellermann authored
      The "pure" and "const" attributes are not so well-defined, and a
      recent clang version implements an optimization which pushes the
      definition's boundary beyond what I believed it was.  clang now
      assumes that functions declared "pure" cannot throw exceptions, even
      if they lack the "noexcept" specification.
      
      When compiled with this new clang version, MPD will crash randomly if
      an exception happens to get thrown by such as "pure" function
      (https://github.com/MusicPlayerDaemon/MPD/issues/41).
      
      This commit removes all such misplaced "pure" and "const" attributes,
      closing #41.
      788e3b31
  2. 03 Feb, 2017 1 commit
  3. 03 Jan, 2017 1 commit
  4. 06 Mar, 2016 1 commit
  5. 01 Mar, 2016 1 commit
  6. 26 Feb, 2016 1 commit
  7. 18 Dec, 2015 1 commit
  8. 14 Aug, 2015 3 commits
  9. 12 Aug, 2015 1 commit
  10. 11 Aug, 2015 5 commits
  11. 01 Jan, 2015 1 commit
  12. 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
  13. 29 Aug, 2014 1 commit
  14. 28 Aug, 2014 1 commit
  15. 23 Jan, 2014 1 commit
  16. 13 Jan, 2014 1 commit
  17. 30 Oct, 2013 1 commit
  18. 28 Oct, 2013 1 commit
  19. 19 Oct, 2013 1 commit
  20. 17 Oct, 2013 1 commit
  21. 15 Oct, 2013 2 commits
  22. 04 Sep, 2013 1 commit
  23. 10 Aug, 2013 1 commit
  24. 30 Jul, 2013 1 commit
  25. 19 Feb, 2013 1 commit
  26. 03 Jan, 2013 2 commits
  27. 02 Aug, 2012 1 commit
  28. 14 Feb, 2012 2 commits