summaryrefslogtreecommitdiff
path: root/usr.bin/cdio/cddb.c
AgeCommit message (Collapse)Author
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-01-06fgetln may return incomplete lines (Tobias Stoeckmann <tobias@stoeckmann.org>)Marc Espie
simple solution: error out. This is not a correct cddb answer anyways.
2014-01-04Properly validate index value received from CDDB server.Tobias Stoeckmann
ok deraadt@, millert@
2013-03-07fix atrocious code, do socket -> FILE* conversion correctly, with properMarc Espie
error handling. okay millert@, otto@
2011-04-06Avoid using NULL in non-pointer contexts: use 0 for integer values and '\0'Miod Vallat
for chars.
2008-04-27o if no argument is passed to cddbinfo, treat it as 0 in order to printFederico G. Schwindt
the list in case of multiple/inexact matches o if the argument to cddb is invalid, do not exit, just print and error and ignore the command espie@ ok.
2007-09-10Make sure we don't skip the code which sends the QUIT command to the CDDBChad Loder
server and validates the returned track names. Unreachable code spotted by lint. OK krw@, deraadt@, espie@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-05-01use strtonum; ok millert@Jason Dixon
2006-01-23Include <sys/param.h> instead of <sys/types.h> so we get MAXHOSTNAMELENTodd C. Miller
2006-01-17Fix malloc calculation to avoid memory bounds error. deraadt@ okAaron Campbell
2005-11-12more asprintf; ok dhill@mindcry.orgTheo de Raadt
2003-06-09Protect all get_line calls against null pointers.Marc Espie
Problem pointed out by Pedro Bastos, thanks Pedro.
2003-03-13my style: length is size_t, not int.Marc Espie
2003-03-13lots of sprintf -> snprintf and strcpy -> strlcpy; checked by teduTheo de Raadt
2002-12-14handle multiline replies from the server.Marc Espie
this actually happens on the 3.2 audio CD. ok millert@
2002-04-18Reuse cddb code to support FreeBSD new cdid command.Marc Espie
(who knows ? scripts might use it). ok fgs@, pval@
2002-04-18remove extra spaces, fix rcsid (noticed by millert)Marc Espie
2002-04-18KNFTheo de Raadt
2002-04-18Add cddb support.Marc Espie