[Bugs] [Bug 1503394] Mishandling null check at send_brick_req of glusterfsd/src/ gf_attach.c

bugzilla at redhat.com bugzilla at redhat.com
Fri Oct 20 02:31:51 UTC 2017


--- Comment #3 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18542 committed in master by Atin Mukherjee
(amukherj at redhat.com) 
commit 87bd25b64ae34cce95e87e724acfeab4c13d60a4
Author: Sanju Rakonde <srakonde at redhat.com>
Date:   Wed Oct 18 08:06:24 2017 +0530

    glusterfsd: Dereferencing the null pointer

    Problem: When control reaches to out, one of (iobref, iobuf, frame) can
    be null.for iobref, iobuf iobref_unref() and iobuf_unref() functions
    are called respectively, which are using GF_VALIDATE_OR_GOTO(), so
    there won't be null pointer dereference. But for frame without null
    checking STACK_DESTROY(frame->root) is called causing null pointer

    Fix: adding a line for null checking, the function
    STACK_DESTROY(frame->root) is called only when frame is not null.

    Change-Id: I3a6684c11fb7b694b81d6ad4fec3bced5562ad88
    BUG: 1503394
    Signed-off-by: Sanju Rakonde <srakonde 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=vYtMdn87Sa&a=cc_unsubscribe

More information about the Bugs mailing list