summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/xmalloc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+2
| | | | | | | | | 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)
* use standard types and formats for size_t like variables. ok dtuckertedu2014-01-041-6/+6
|
* bye, bye xfree(); ok markus@djm2013-05-171-9/+1
|
* almost entirely get rid of the culture of ".h files that include .h files"deraadt2006-08-031-4/+1
| | | | | ok djm, sort of ok stevesk makes the pain stop in one easy step
* move #include <stdio.h> out of includes.hstevesk2006-08-011-1/+2
|
* move #include <stdlib.h> out of includes.hstevesk2006-07-261-1/+2
|
* move #include <sys/param.h> out of includes.hstevesk2006-07-261-1/+3
|
* move #include <string.h> out of includes.hstevesk2006-07-221-1/+2
|
* move #include <stdarg.h> out of includes.h; ok markus@stevesk2006-07-101-1/+3
|
* we can do the size & nmemb check before the integer overflow check; evolderaadt2006-03-271-5/+5
|
* Put $OpenBSD$ tags back (as comments) to replace the RCSID()s thatdjm2006-03-251-0/+1
| | | | Theo nuked - our scripts to sync -portable need them in the files
* change OpenSSH's xrealloc() function from being xrealloc(p, new_size) todjm2006-03-251-3/+7
| | | | | | | | xrealloc(p, new_nmemb, new_itemsize). realloc is particularly prone to integer overflows because it is almost always allocating "n * size" bytes, so this is a far safer API; ok deraadt@
* introduce xcalloc() and xasprintf() failure-checked allocations functionsdjm2006-03-251-0/+32
| | | | | | | | | | and use them throughout openssh xcalloc is particularly important because malloc(nmemb * size) is a dangerous idiom (subject to integer overflow) and it is time for it to die feedback and ok deraadt@
* RCSID() can diederaadt2006-03-191-1/+0
|
* no zero size xstrdup() error; ok markus@stevesk2001-07-231-4/+3
|
* xrealloc dealing with ptr == nULL; mouringderaadt2001-04-161-3/+4
|
* fix size_t -> int cast (use u_long). markus okitojun2001-02-071-3/+3
|
* typo in fatal()markus2001-02-071-3/+3
|
* deal with new ANSI malloc stuffderaadt2001-02-071-3/+12
|
* unexpand and remove end-of-line whitespace; ok markus@stevesk2001-02-041-2/+2
|
* use size_t for strlen() return. ok markus@stevesk2001-01-281-2/+2
|
* split ssh.h and try to cleanup the #include mess. remove unnecessary #includes.markus2001-01-211-2/+3
| | | | rename util.[ch] -> misc.[ch]
* cleanup copyright notices on all files. I have attempted to be accurate withderaadt2000-09-071-2/+7
| | | | | | | the details. everything is now under Tatu's licence (which I copied from his readme), and/or the core-sdi bsd-ish thing for deattack, or various openbsd developers under a 2-term bsd licence. We're not changing any rules, just being accurate.
* OpenBSD tagmarkus2000-06-201-1/+1
|
* whitespace cleanupmarkus2000-04-141-2/+2
|
* much more KNFderaadt1999-11-241-15/+8
|
* KNF part 1markus1999-11-231-24/+28
|
* more cullingderaadt1999-09-301-7/+1
|
* numerous sprintf, strncpy, strcpy cleanupsderaadt1999-09-291-3/+5
|
* i bet a lot of people didn't know what ssh 1.2.16 had a nice license.deraadt1999-09-261-0/+60
well, except for the patent issues. someone in sweden (forget their name at the moment) cleaned out most of the patented code, and now this code removes rsa code. when this is done, it will link against libssl, but the work isn't completely done yet. then we need to bring this up to modern days, featurewise.