[Bugs] [Bug 1602121] avoid possible glusterd crash in glusterd_verify_slave
bugzilla at redhat.com
bugzilla at redhat.com
Mon Jul 23 03:57:29 UTC 2018
https://bugzilla.redhat.com/show_bug.cgi?id=1602121
Worker Ant <bugzilla-bot at gluster.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|POST |MODIFIED
--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/20526 committed in master by "Amar Tumballi"
<amarts at redhat.com> with a commit message- geo-rep : fix possible crash
Problem : In 'glusterd_verify_slave' while tokenizing error message
we call 'strtok_r' and store return value in 'tmp' which
can be NULL. We are passing this 'tmp' as 1st argument to
'strcmp' which will lead to segmentation fault.
Solution : before calling 'strcmp' we should NULL check 'tmp'.
Change-Id: Ifd3864b904afe6cd09d9e5a4b55c6d0578e22b9d
fixes: bz#1602121
Signed-off-by: Sunny Kumar <sunkumar at redhat.com>
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=1bWrrUBczi&a=cc_unsubscribe
More information about the Bugs
mailing list