Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add-patch: plug a leak handling the '/' command
Plug a leak we have since d6cf873 (built-in add -p: implement the '/' ("search regex") command, 2019-12-13). This leak can be triggered with: $ printf "A\n\nB\n" >file $ git add file && git commit -m file $ printf "AA\n\nBB\n" >file $ printf "s\n/ .\n" >lines $ git add -p <lines Signed-off-by: Rubén Justo <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
- Loading branch information