• Binbin's avatar
    zunionInterDiffGenericCommand use ztrycalloc to avoid OOM panic (#13052) · 063de675
    Binbin authored
    In low memory situations, sending a big number of arguments (sets)
    may cause OOM panic. Use ztrycalloc, like we do on LCS and XAUTOCLAIM,
    and fail gracefully.
    
    This change affects the following commands: ZUNION, ZINTER, ZDIFF,
    ZUNIONSTORE, ZINTERSTORE, ZDIFFSTORE, ZINTERCARD.
    063de675
t_zset.c 153 KB