]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blame - vim/patches/vim-7.3.497.patch0
vim: Import latest patches from upstream.
[people/ms/ipfire-3.x.git] / vim / patches / vim-7.3.497.patch0
CommitLineData
c6060300
MT
1To: vim_dev@googlegroups.com
2Subject: Patch 7.3.497
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.3.497
11Problem: Crash when doing ":python print" and compiled with gcc and
12 the optimizer enabled.
13Solution: Avoid the crash, doesn't really fix the problem. (Christian
14 Brabandt)
15Files: src/if_py_both.h
16
17
18*** ../vim-7.3.496/src/if_py_both.h 2012-02-04 20:17:21.000000000 +0100
19--- src/if_py_both.h 2012-04-20 13:24:31.000000000 +0200
20***************
21*** 77,82 ****
22--- 77,87 ----
23 if (!PyArg_ParseTuple(args, "et#", ENC_OPT, &str, &len))
24 return NULL;
25
26+ /* TODO: This works around a gcc optimizer problem and avoids Vim
27+ * from crashing. Should find a real solution. */
28+ if (str == NULL)
29+ return NULL;
30+
31 Py_BEGIN_ALLOW_THREADS
32 Python_Lock_Vim();
33 writer((writefn)(error ? emsg : msg), (char_u *)str, len);
34*** ../vim-7.3.496/src/version.c 2012-04-13 19:11:16.000000000 +0200
35--- src/version.c 2012-04-20 13:26:22.000000000 +0200
36***************
37*** 716,717 ****
38--- 716,719 ----
39 { /* Add new patch number below this line */
40+ /**/
41+ 497,
42 /**/
43
44--
45There can't be a crisis today, my schedule is already full.
46
47 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
48/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
49\\\ an exciting new programming language -- http://www.Zimbu.org ///
50 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///