fix crash when some external APIs fail
Submitted by Zhouyang
Link to original bug (#793949)
Description
Created attachment 369129 patch of the potential API bugs
Hi,
I'm a PhD student. I analyzed the empathy 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 notify_init or pa_context_connect.
I think it's unsafe to assume the library function would be correct. It would be better if we could handle the error properly.
Attached please find the patch against version current development version. Hopefully, it can solve these potential bugs.
Best, Zhouyang
Patch 369129, "patch of the potential API bugs":
api_bugs_empathy-trunk.patch
Version: 3.25.x