D12744: Add null pointer check when creating SocketAddress
Chinmoy Ranjan Pradhan
noreply at phabricator.kde.org
Mon May 7 15:53:43 UTC 2018
chinmoyr created this revision.
chinmoyr added reviewers: dfaure, ossi.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.
chinmoyr requested review of this revision.
REVISION SUMMARY
If for some reason SocketAddress:make_address() fails to create a proper sockaddr_un structure
then SocketAddress::address() will return a null pointer. In such case, to prevent application
crash, check for null pointer prior to any socket operation.
Based on D10411 <https://phabricator.kde.org/D10411>
REPOSITORY
R241 KIO
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D12744
AFFECTED FILES
src/ioslaves/file/fdreceiver.cpp
src/ioslaves/file/kauth/fdsender.cpp
To: chinmoyr, dfaure, ossi
Cc: #frameworks, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180507/a37a5be2/attachment.html>
More information about the Kde-frameworks-devel
mailing list