1. 04 Mar, 2018 1 commit
    • Max Kellermann's avatar
      protocol/ArgParser: disallow negative seek times · dadd3ca6
      Max Kellermann authored
      Instead of stopping playback (due to seek time overflow), reject the
      seek command.  Closes #240
      
      Relative negative values (with "seekcur") are still allowed, and MPD
      will fix the resulting position if it turns out to be negative.  But
      the "seek" and "seekid" commands use an unsigned time stamp which must
      not be negative.
      dadd3ca6
  2. 09 Feb, 2018 2 commits
  3. 03 Jan, 2017 1 commit
  4. 06 Mar, 2016 1 commit
  5. 26 Feb, 2016 1 commit
  6. 18 Dec, 2015 1 commit
  7. 12 Aug, 2015 1 commit
  8. 11 Aug, 2015 4 commits
  9. 01 Jan, 2015 1 commit
  10. 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
  11. 29 Aug, 2014 1 commit
  12. 28 Aug, 2014 1 commit
  13. 13 Jan, 2014 1 commit
  14. 19 Oct, 2013 1 commit
  15. 17 Oct, 2013 1 commit
  16. 03 Jan, 2013 2 commits
  17. 14 Feb, 2012 1 commit