Skip to content
This repository has been archived by the owner on Jan 15, 2019. It is now read-only.

Fix crashes when some external APIs fail #1608

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Fix crashes when some external APIs fail #1608

wants to merge 4 commits into from

Conversation

ZhouyangJia
Copy link

Hi,

I'm a PhD student. I analyzed the icinga source code and found some potential API bugs that may cause crashes.
These crashes are mainly caused by insufficient error handling of API functions like chown, chdir or pipe.
I think it's unsafe to assume the library function would be correct. It would be better if we could handle the error properly.

Best,
Zhouyang

Add error handling code for chdir and pipe. When those APIs fail, print error message and return.
When chown fails, print error message and return.
Add error handling for external APIs
When chown fails, print error message and return.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant