• Show log

    Commit

  • Hash : 46b67034
    Author : Patrick Steinhardt
    Date : 2017-05-19T13:59:53

    index: don't right-pad paths when writing compressed entries
    
    Our code to write index entries to disk does not check whether the
    entry that is to be written should use prefix compression for the path.
    As such, we were overallocating memory and added bogus right-padding
    into the resulting index entries. As there is no padding allowed in the
    index version 4 format, this should actually result in an invalid index.
    
    Fix this by re-using the newly extracted `index_entry_size` function.