[SSSD] [PATCH] mmap_cache: prevent potential dereference of NULL

Michal Židek mzidek at redhat.com
Fri Oct 25 17:20:16 UTC 2013


On 10/25/2013 04:02 PM, Lukas Slebodnik wrote:
> ehlo,
>
> attached patch fix warnings reported by clang static analyser.
>
> LS
>

This is false-positive. If MC_SLOT_WITHIN_BOUNDS(slot, 
gr_mc_ctx.dt_size) is false, you will not get to the part where you work 
with the record (there is a check right before that part). So it does 
not matter if it is initialized or not.

Michal



More information about the sssd-devel mailing list