[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ossec-dev] [Bug 83] New: [PATCH] Don't use non signal-safe functions in signal handler
http://www.ossec.net/bugs/show_bug.cgi?id=83
Summary: [PATCH] Don't use non signal-safe functions in signal
handler
Product: OSSEC
Version: 1.3
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P1
Component: ossec core
AssignedTo: ossec-dev@xxxxxxxxx
ReportedBy: php-coder@xxxxxxxxxxxx
Hello!
I found list of functions which may be used in signal handler
(http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html)
and test OSSEC.
I found then OSSEC violate this rule at mane places:
- merror(), DeletePID() and OSList_DeleteCurrentlyNode() uses amny non
signal-safe functions
- uses printf() (which should be replaced by write())
- uses exit() (which should be replaced by _exit() or _Exit())
For the latest two cases I create patch.
--
Configure bugmail: http://www.ossec.net/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
OSSEC home |
Main Index |
Thread Index
OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.