Bug#890746: patch: git-style patch on nonexistent file causes stack overflow

2019-01-10 Thread Sebastian Andrzej Siewior
control: forwarded -1 http://savannah.gnu.org/bugs/?53228 control: tags -1 patch There is patch at https://lists.gnu.org/archive/html/bug-patch/2018-02/msg00010.html This behaviour (crash) is new in 2.7.6, does not happen in 2.7.5. Is it possible to get this addressed for Buster? It just

Bug#890746: patch: git-style patch on nonexistent file causes stack overflow

2018-02-18 Thread Jakub Wilk
Package: patch Version: 2.7.6-1 patch crashes when trying to apply a git-style patch to a nonexistent file: $ patch -p1 nonexistent < git.diff patching file nonexistent Hunk #1 FAILED at 1. 1 out of 1 hunk FAILED -- saving rejects to file nonexistent.rej patch: Can't reopen