aboutsummaryrefslogtreecommitdiff
path: root/stand/libsa/zalloc_malloc.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/ Similar commit in main: (cherry picked from commit 1d386b48a555)
* zalloc_malloc:Free hexdump preceeding buffer when we detect overflowSimon J. Gerraty2020-08-291-1/+10
| | | | | | | | | | | | | | | Move hexdump from stand/common/misc.c to stand/libsa/hexdump.c (svn cp) Disable use of pager - causes linking issue for boot1 can be re-enabled by defining HEXDUMP_PAGER. Reviewed by: stevek, imp MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D26235 Notes: svn path=/head/; revision=364965
* loader: revert r352421Toomas Soome2019-09-171-3/+0
| | | | | | | As insisted by kib, malloc(0) is quite legal. Notes: svn path=/head/; revision=352451
* loader: add memalign() to libsaToomas Soome2019-09-171-2/+20
| | | | | | | Implement memalign(size_t alignment, size_t size) to allocate aligned memory. Notes: svn path=/head/; revision=352445
* loader: cstyle cleanup libsa zalloc sourcesToomas Soome2019-09-171-79/+82
| | | | | | | | | Clean up libstand zalloc* sources. Note that it is not 100% whitespace cleanup. I also reduced block in znalloc and zfree as those were obvious simplifications and did help to save one level of indent. Notes: svn path=/head/; revision=352443
* loader: factor out guard location setup from ReallocToomas Soome2019-09-171-1/+3
| | | | | | | | To simplify and make it easier to read, use ga_Bytes field from guard structure. Notes: svn path=/head/; revision=352439
* loader: Malloc(0) should return NULL.Toomas Soome2019-09-161-0/+3
| | | | | | | We really should not allocate anything with size 0. Notes: svn path=/head/; revision=352421
* Move sys/boot to stand. Fix all references to new locationWarner Losh2017-11-141-0/+200
Sponsored by: Netflix Notes: svn path=/head/; revision=325834