music player daemon (fork)
Go to file
Max Kellermann 421c4ae907 protocol/ArgParser: fix integer overflow in parse_range()
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.
2014-09-04 17:37:31 +02:00
doc doc/protocol: fix description of "stats" response 2014-08-31 13:16:39 +02:00
m4 configure.ac: add function MPD_AUTO_LIB and use it 2013-10-17 00:09:08 +02:00
scripts scripts: delete obsolete scripts 2013-04-17 00:37:30 +02:00
src protocol/ArgParser: fix integer overflow in parse_range() 2014-09-04 17:37:31 +02:00
test test/test_protocol: unit test for protocol/ArgParser.cxx 2014-09-04 17:10:30 +02:00
.gitignore test/test_protocol: unit test for protocol/ArgParser.cxx 2014-09-04 17:10:30 +02:00
AUTHORS AUTHORS: add new authors 2013-10-31 00:23:41 +01:00
autogen.sh Makefile.am: require automake 1.11 2011-10-09 18:32:55 +02:00
configure.ac configure.ac: prepare for 0.18.14 2014-09-03 19:59:26 +02:00
COPYING Update the text of the GPLv2, this fixes the address and a few other oddities. 2008-12-20 19:02:09 -08:00
INSTALL doc: show .tar.xz in sample unpack command 2013-11-08 12:29:04 +01:00
Makefile.am test/test_protocol: unit test for protocol/ArgParser.cxx 2014-09-04 17:10:30 +02:00
mpd.service.in mpd.service: depend on network.target 2012-11-21 17:26:23 +01:00
NEWS protocol/ArgParser: fix integer overflow in parse_range() 2014-09-04 17:37:31 +02:00
README Word wrap to 80 char lines 2008-12-20 19:27:02 -08:00
UPGRADING UPGRADING: added a 0.14 section 2008-11-05 21:27:30 +01:00
valgrind.suppressions valgrind.suppressions: add g_get_home_dir suppression 2013-10-18 01:14:31 +02:00

		       Music Player Daemon (MPD)
			http://www.musicpd.org

A daemon for playing music of various formats.  Music is played through the 
server's audio device.  The daemon stores info about all available music, 
and this info can be easily searched and retrieved.  Player control, info
retrieval, and playlist management can all be managed remotely.

For basic installation information see the INSTALL file.

MPD is released under the GNU General Public License version 2, which is
distributed in the COPYING file.

You should have received a copy of the GNU General Public License along with
this program.  If not, see <http://www.gnu.org/licenses/>.