• Show log

    Commit

  • Hash : 28662c13
    Author : lhchavez
    Date : 2017-12-08T06:00:27

    libFuzzer: Prevent a potential shift overflow
    
    The type of |base_offset| in get_delta_base() is `git_off_t`, which is a
    signed `long`. That means that we need to make sure that the 8 most
    significant bits are zero (instead of 7) to avoid an overflow when it is
    shifted by 7 bits.
    
    Found using libFuzzer.