|
Karsten Hopp |
2b7cea |
To: vim-dev@vim.org
|
|
Karsten Hopp |
2b7cea |
Subject: patch 7.0.235
|
|
Karsten Hopp |
2b7cea |
Fcc: outbox
|
|
Karsten Hopp |
2b7cea |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
2b7cea |
Mime-Version: 1.0
|
|
Karsten Hopp |
2b7cea |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
2b7cea |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
2b7cea |
------------
|
|
Karsten Hopp |
2b7cea |
|
|
Karsten Hopp |
2b7cea |
Patch 7.0.235
|
|
Karsten Hopp |
2b7cea |
Problem: It is possible to use writefile() in the sandbox.
|
|
Karsten Hopp |
2b7cea |
Solution: Add a few more checks for the sandbox.
|
|
Karsten Hopp |
2b7cea |
Files: src/eval.c
|
|
Karsten Hopp |
2b7cea |
|
|
Karsten Hopp |
2b7cea |
|
|
Karsten Hopp |
2b7cea |
*** ../vim-7.0.234/src/eval.c Fri Apr 27 22:17:43 2007
|
|
Karsten Hopp |
2b7cea |
--- src/eval.c Sat Apr 28 21:36:02 2007
|
|
Karsten Hopp |
2b7cea |
***************
|
|
Karsten Hopp |
2b7cea |
*** 15598,15603 ****
|
|
Karsten Hopp |
2b7cea |
--- 15598,15606 ----
|
|
Karsten Hopp |
2b7cea |
int err = FALSE;
|
|
Karsten Hopp |
2b7cea |
FILE *fd;
|
|
Karsten Hopp |
2b7cea |
|
|
Karsten Hopp |
2b7cea |
+ if (check_restricted() || check_secure())
|
|
Karsten Hopp |
2b7cea |
+ return;
|
|
Karsten Hopp |
2b7cea |
+
|
|
Karsten Hopp |
2b7cea |
if (argvars[1].v_type != VAR_UNKNOWN)
|
|
Karsten Hopp |
2b7cea |
{
|
|
Karsten Hopp |
2b7cea |
/*
|
|
Karsten Hopp |
2b7cea |
***************
|
|
Karsten Hopp |
2b7cea |
*** 16430,16435 ****
|
|
Karsten Hopp |
2b7cea |
--- 16433,16441 ----
|
|
Karsten Hopp |
2b7cea |
char_u *s;
|
|
Karsten Hopp |
2b7cea |
int ret = 0;
|
|
Karsten Hopp |
2b7cea |
int c;
|
|
Karsten Hopp |
2b7cea |
+
|
|
Karsten Hopp |
2b7cea |
+ if (check_restricted() || check_secure())
|
|
Karsten Hopp |
2b7cea |
+ return;
|
|
Karsten Hopp |
2b7cea |
|
|
Karsten Hopp |
2b7cea |
if (argvars[0].v_type != VAR_LIST)
|
|
Karsten Hopp |
2b7cea |
{
|
|
Karsten Hopp |
2b7cea |
*** ../vim-7.0.234/src/version.c Fri Apr 27 22:17:43 2007
|
|
Karsten Hopp |
2b7cea |
--- src/version.c Sun Apr 29 13:54:29 2007
|
|
Karsten Hopp |
2b7cea |
***************
|
|
Karsten Hopp |
2b7cea |
*** 668,669 ****
|
|
Karsten Hopp |
2b7cea |
--- 668,671 ----
|
|
Karsten Hopp |
2b7cea |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
2b7cea |
+ /**/
|
|
Karsten Hopp |
2b7cea |
+ 235,
|
|
Karsten Hopp |
2b7cea |
/**/
|
|
Karsten Hopp |
2b7cea |
|
|
Karsten Hopp |
2b7cea |
--
|
|
Karsten Hopp |
2b7cea |
Now it is such a bizarrely improbable coincidence that anything as
|
|
Karsten Hopp |
2b7cea |
mind-bogglingly useful as the Babel fish could have evolved purely by chance
|
|
Karsten Hopp |
2b7cea |
that some thinkers have chosen to see it as a final and clinching proof of the
|
|
Karsten Hopp |
2b7cea |
NON-existence of God.
|
|
Karsten Hopp |
2b7cea |
The argument goes something like this: 'I refuse to prove that I exist,' says
|
|
Karsten Hopp |
2b7cea |
God, 'for proof denies faith, and without faith I am nothing.'
|
|
Karsten Hopp |
2b7cea |
'But,' says Man, 'the Babel fish is a dead giveaway, isn't it? It could not
|
|
Karsten Hopp |
2b7cea |
have evolved by chance. It proves you exist, and so therefore, by your own
|
|
Karsten Hopp |
2b7cea |
arguments, you don't. QED.'
|
|
Karsten Hopp |
2b7cea |
'Oh dear,' says God, 'I hadn't thought of that,' and promptly vanishes in a
|
|
Karsten Hopp |
2b7cea |
puff of logic.
|
|
Karsten Hopp |
2b7cea |
'Oh, that was easy,' says Man, and for an encore goes on to prove that black
|
|
Karsten Hopp |
2b7cea |
is white and gets himself killed on the next pedestrian crossing.
|
|
Karsten Hopp |
2b7cea |
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
|
|
Karsten Hopp |
2b7cea |
|
|
Karsten Hopp |
2b7cea |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
2b7cea |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
2b7cea |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
2b7cea |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|