diff options
author | philhofer <phofer@umich.edu> | 2018-12-23 12:42:33 -0800 |
---|---|---|
committer | Mike Frysinger <vapier@gmail.com> | 2018-12-23 21:01:39 -0500 |
commit | a9fc26ac1367ac887eab76007e8834dfe787edcd (patch) | |
tree | 3ff3fdc3f61053c7fea7ec9dc61ef732825378c8 /conf.d/fsck | |
parent | 40f70466969b340ee5e277c98a4b27a9117b795e (diff) |
src/rc/supervise-daemon.c: do not pass NULL to strcmp
The following will cause a segfault due to NULL being
passed to strcmp(3)
$ RC_SVCNAME=foo supervise-daemon
Fix the bounds check on argc in main. If argc<=1, then
it is not safe to dereference argv[1].
Diffstat (limited to 'conf.d/fsck')
0 files changed, 0 insertions, 0 deletions