[Pidgin] #17291: Fix crashes when some external APIs fail
Pidgin
trac at pidgin.im
Sun Mar 4 07:14:04 EST 2018
#17291: Fix crashes when some external APIs fail
----------------------+--------------------------
Reporter: Zhouyang | Owner: EionRobb
Type: defect | Status: new
Milestone: | Component: unclassified
Version: 2.12.0 | Keywords: API bugs
----------------------+--------------------------
Hi,
I'm a PhD student. I analyzed the pidgin 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 fopen, g_dir_open, g_module_open, gethostbyname or socket.
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 2.12.0. Hopefully, it can
solve these potential bugs.
Best,
Zhouyang
--
Ticket URL: <https://developer.pidgin.im/ticket/17291>
Pidgin <https://pidgin.im>
Pidgin
More information about the Tracker
mailing list