From f2621414ee5f2f601424c22f00e207903e3b6104 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 03:03:18 +0200 Subject: Merging upstream version 1:2.12.0. Signed-off-by: Daniel Baumann --- test/t/test_info.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/t/test_info.py') diff --git a/test/t/test_info.py b/test/t/test_info.py index e12d900..2fdbcca 100644 --- a/test/t/test_info.py +++ b/test/t/test_info.py @@ -10,3 +10,11 @@ class TestInfo: @pytest.mark.complete("info -", require_cmd=True) def test_2(self, completion): assert completion + + @pytest.mark.complete( + "info nonexistent-na", + env=dict(INFOPATH="'$(echo malicious code >/dev/tty)'"), + ) + def test_infopath_code_injection(self, completion): + # no completion, no space appended + assert not completion -- cgit v1.2.3