[vim/vim] cscope: can escape from restricted mode (PR #19731)

3 views
Skip to first unread message

Christian Brabandt

unread,
Mar 17, 2026, 5:56:38 PM (6 hours ago) Mar 17
to vim/vim, Subscribed

Problem: cscope: can escape from restricted mode (pyllyukko)
Solution: Disallow :cscope in restricted mode (like :grep)


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/19731

Commit Summary

  • 2d96ab5 cscope: can escape from restricted mode

File Changes

(2 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19731@github.com>

zeertzjq

unread,
Mar 17, 2026, 7:02:20 PM (5 hours ago) Mar 17
to vim/vim, Subscribed

@zeertzjq commented on this pull request.


In src/if_cscope.c:

> @@ -254,6 +254,9 @@ do_cscope_general(
 {
     cscmd_T *cmdp;
 
+    if (check_restricted())
+	    return;
⬇️ Suggested change
-	    return;
+	return;


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/19731/review/3964164668@github.com>

Reply all
Reply to author
Forward
0 new messages