Fixed segfault in pidof when the -f (format) flag is used with

crafted format strings.
Avoid printing stack memory when special format string is passed
to -f.
Listed control characters for -f flag in manual page.
This commit is contained in:
Jesse Smith
2019-03-18 18:09:24 -03:00
parent e19b991bb0
commit 4e2ad6a698
3 changed files with 84 additions and 2 deletions

View File

@@ -4,6 +4,11 @@ sysvinit (2.95) unreleased; urgency=low
* Fixed various typos and control codes in manual pages.
Patch provided by Bjarni Ingi Gislason.
* Patched pidof so that the -f flag does not print memory information
from the stack when passed a specially crafted format string.
Also prevent segfault when "%s" is used in a format string.
Special characters for the format string can be found in the man
page for pidof.
sysvinit (2.94) released; urgency=low