• Show log

    Commit

  • Hash : 6c6c15e9
    Author : Patrick Steinhardt
    Date : 2019-10-19T15:52:35

    patch_parse: reject empty path names
    
    When parsing patch headers, we currently accept empty path names just
    fine, e.g. a line "--- \n" would be parsed as the empty filename. This
    is not a valid patch format and may cause `NULL` pointer accesses at a
    later place as `git_buf_detach` will return `NULL` in that case.
    
    Reject such patches as malformed with a nice error message.