OpenAFS Master Repository branch, master, updated. d9445f505ad0fc5a993d954a2d6654785c140351

Gerrit Code Review gerrit@openafs.org
Tue, 14 Jul 2009 14:54:11 -0700 (PDT)


The following commit has been merged in the master branch:
commit d9445f505ad0fc5a993d954a2d6654785c140351
Author: Jeffrey Altman <jaltman@secure-endpoints.com>
Date:   Tue Jul 14 17:49:00 2009 -0400

    Prevent crash on Windows when data version goes backwards
    
    Within cm_MergeStatus() cm_FindVolumeByID() was called with
    a NULL pointer instead of a valid cm_req_t object pointer
    in the case where the data version for an object received
    from the file server is smaller than the value already stored
    in the cache.   This results in a NULL pointer dereference.
    
    Allocate a cm_req_t object on the stack and initialize it
    before calling cm_FindVolumeByID() in this case.
    
    LICENSE MIT
    
    Reviewed-on: http://gerrit.openafs.org/83
    Verified-by: Jeffrey Altman <jaltman@openafs.org>
    Reviewed-by: Jeffrey Altman <jaltman@openafs.org>

 src/WINNT/afsd/cm_scache.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

-- 
OpenAFS Master Repository