summaryrefslogtreecommitdiff
path: root/src/basic/strxcpyx.c
Commit message (Collapse)AuthorAgeFilesLines
* strxcpyx: assert throughout on non-NULL src/destVito Caputo2017-07-031-0/+15
|
* strxcpyx: don't overflow dest on strpcpyf truncateVito Caputo2017-07-031-4/+13
| | | | | | | | | | | | | | | When vsnprintf() truncated output, dest was advanced by the entire size of dest leaving it just past the end. Then the fall-through \0 termination scribbled one past the end. The explicit null termination is not necessary since vsnprintf() always includes the terminator even when truncated. Additionally these functions encourage calling with zero-length sizes, while assuming non-zero sizes with potential buffer overflows. Simply short-circuit the relevant functions when size == 0. Fixes https://github.com/systemd/systemd/issues/6252
* tree-wide: remove Emacs lines from all filesDaniel Mack2016-02-101-2/+0
| | | | | This should be handled fine now by .dir-locals.el, so need to carry that stuff in every file.
* basic: include only what we useThomas Hindoe Paaboel Andersen2015-11-301-0/+1
| | | | | This is a cleaned up result of running iwyu but without forward declarations on src/basic.
* tree-wide: sort includesThomas Hindoe Paaboel Andersen2015-11-161-0/+1
| | | | Sort the includes accoding to the new coding style.
* build-sys: split internal basic/ library from shared/Kay Sievers2015-06-111-0/+100
basic/ can be used by everything cannot use anything outside of basic/ libsystemd/ can use basic/ cannot use shared/ shared/ can use libsystemd/