• Andrew Morton's avatar
    [PATCH] readv/writev range checking fix · fb14ef35
    Andrew Morton authored
    do-readv_writev() is trying to fail if
    
    a) any of the segments have a length < 0 or
    
    b) the sum of the segments wraps negative.
    
    But it gets b) wrong because local variable tot_len is unsigned.
    
    Fix that up.
    fb14ef35
read_write.c 13.8 KB