summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshbuf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* change explicit_bzero();free() to freezero()jsg2020-02-261-3/+2
| | | | | | | | While freezero() returns early if the pointer is NULL the tests for NULL in callers are left to avoid warnings about passing an uninitialised size argument across a function boundry. ok deraadt@ djm@
* Replace all calls to signal(2) with a wrapper around sigaction(2).dtucker2020-01-231-2/+2
| | | | | | This wrapper blocks all other signals during the handler preventing races between handlers, and sets SA_RESTART which should reduce the potential for short read/write operations.
* make grandparent-parent-child sshbuf chains robust to use-after-freedjm2018-11-161-7/+10
| | | | | faults if the ancestors are freed before the descendents. Nothing in OpenSSH uses this deallocation pattern. Reported by Jann Horn
* remove legacy buffer API emulation layer; ok djm@markus2018-07-091-20/+2
|
* unconditionally zero init size of buffer; ok markus@ deraadt@djm2017-06-011-3/+3
|
* Switch to recallocarray() for a few operations. Both growth and shrinkagederaadt2017-05-311-8/+8
| | | | | | are handled safely, and there also is no need for preallocation dances. Future changes in this area will be less error prone. Review and one bug found by markus
* sshbuf_consume: reset empty buffer; ok djm@markus2017-05-261-1/+4
|
* split allocation out of sshbuf_reserve() into a separatedjm2016-11-251-33/+43
| | | | sshbuf_allocate() function; ok markus@
* Add MAXIMUM(), MINIMUM(), and ROUNDUP() to misc.h, then use those definitionsderaadt2016-09-121-4/+4
| | | | | rather than pulling <sys/param.h> and unknown namespace pollution. ok djm markus dtucker
* use explicit_bzero() more liberally in the buffer code; ok deraadtdjm2016-01-121-5/+5
|
* Remove NULL-checks before sshbuf_free().mmcc2015-12-111-5/+3
| | | | ok djm@
* some more bzero->explicit_bzero, from Michael McConvilledjm2015-10-051-2/+2
|
* Reduce use of <sys/param.h> and transition to <limits.h> throughout.deraadt2015-01-201-2/+2
| | | | ok djm markus
* unblock SIGSEGV before raising itderaadt2014-06-251-1/+2
| | | | ok djm
* New buffer API; the first installment of the conversion/replacementdjm2014-04-301-0/+403
of OpenSSH's internals to make them usable as a standalone library. This includes a set of wrappers to make it compatible with the existing buffer API so replacement can occur incrementally. With and ok markus@ Thanks also to Ben Hawkes, David Tomaschik, Ivan Fratric, Matthew Dempsky and Ron Bowes for a detailed review.