diff options
author | Rubén Justo <rjusto@gmail.com> | 2024-04-23 00:54:14 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-04-22 16:27:42 -0700 |
commit | ec9b74b18e019a8adff827ab22380f9771ac5f00 (patch) | |
tree | fd272b3055c6c9ad2a3e88b9dc5952dec8bd471e /contrib/emacs/git.el | |
parent | 5861aa84a7a5f393e953203068bd3fc5c710fc42 (diff) | |
download | git-ec9b74b18e019a8adff827ab22380f9771ac5f00.tar.gz |
add-patch: plug a leak handling the '/' command
Plug a leak we have since d6cf873340 (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 <rjusto@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/emacs/git.el')
0 files changed, 0 insertions, 0 deletions