]> git.eshelyaron.com Git - emacs.git/commit
Fixed ctags local command execute vulnerability
authorlu4nx <lx@shellcodes.org>
Fri, 25 Nov 2022 06:38:29 +0000 (14:38 +0800)
committerEli Zaretskii <eliz@gnu.org>
Sun, 27 Nov 2022 13:20:49 +0000 (15:20 +0200)
commitd48bb4874bc6cd3e69c7a15fc3c91cc141025c51
tree21b69d8ab5b9b53034760acff3ece409c1e0388c
parentbacba02e5c7fe69e79c9ba3d65de851f8ccb86bb
Fixed ctags local command execute vulnerability

* lib-src/etags.c:

(clean_matched_file_tag): New function
(do_move_file): New function
(readline_internal):
Add `leave_cr` parameter, if true, include the \r character

* test/manual/etags/CTAGS.good_crlf: New file
* test/manual/etags/CTAGS.good_update: New file
* test/manual/etags/crlf: New file
* test/manual/etags/Makefile: Add `ctags -u` test cases
lib-src/etags.c
test/manual/etags/CTAGS.good_crlf [new file with mode: 0644]
test/manual/etags/CTAGS.good_update [new file with mode: 0644]
test/manual/etags/Makefile
test/manual/etags/crlf [new file with mode: 0644]