• Show log

    Commit

  • Hash : 0126e3fc
    Author : Max Kostyukevich
    Date : 2019-08-20T03:08:32

    apply: Fix a patch corruption related to EOFNL handling
    
    Use of apply's API can lead to an improper patch application and a corruption
    of the modified file.
    
    The issue is caused by mishandling of the end of file changes if there are
    several hunks to apply. The new line character is added to a line from a wrong
    hunk.
    
    The solution is to modify apply_hunk() to add the newline character at the end
    of a line from a right hunk.