[Bugs] [Bug 1365683] Fix crash bug when mnt3_resolve_subdir_cbk fails

bugzilla at redhat.com bugzilla at redhat.com
Wed Nov 1 13:31:19 UTC 2017


https://bugzilla.redhat.com/show_bug.cgi?id=1365683



--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/15121 committed in master by  

------------- nfs: Fix crash bug when mnt3_resolve_subdir_cbk() fails

Summary:
When mnt3_resolve_subdir_cbk() fails (this can happen when racing
operations), authorized_path is sometimes NULL. We try to run strlen()
on this path and as a result we crash. This diff fixes that by checking
if path is NULL before dereferencing it.

Test Plan: Run with patch and observe that there is no crash. Prove test
for auth code.

BUG: 1365683
Change-Id: I2e2bdfdc61ae906788611e151d2c753b79b312df
Signed-off-by: Shreyas Siravara <sshreyas at fb.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=kv5dTqNzxB&a=cc_unsubscribe


More information about the Bugs mailing list