diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2011-04-25 13:37:00 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-05-31 22:45:18 +0200 |
commit | 75a4a592e5ccda30715f93563d741b83e0dcf39e (patch) | |
tree | 502f745607e77a2c4386ad38d818ddcafe81489c /source/ap/vim/patches/7.2.279 | |
parent | b76270bf9e6dd375e495fec92140a79a79415d27 (diff) | |
download | current-75a4a592e5ccda30715f93563d741b83e0dcf39e.tar.gz current-75a4a592e5ccda30715f93563d741b83e0dcf39e.tar.xz |
Slackware 13.37slackware-13.37
Mon Apr 25 13:37:00 UTC 2011
Slackware 13.37 x86_64 stable is released!
Thanks to everyone who pitched in on this release: the Slackware team,
the folks producing upstream code, and linuxquestions.org for providing
a great forum for collaboration and testing.
The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a
dual-sided
32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware
project by picking up a copy from store.slackware.com. We're taking
pre-orders now, and offer a discount if you sign up for a subscription.
As always, thanks to the Slackware community for testing, suggestions,
and feedback. :-)
Have fun!
Diffstat (limited to 'source/ap/vim/patches/7.2.279')
-rw-r--r-- | source/ap/vim/patches/7.2.279 | 120 |
1 files changed, 0 insertions, 120 deletions
diff --git a/source/ap/vim/patches/7.2.279 b/source/ap/vim/patches/7.2.279 deleted file mode 100644 index bdf58fc8e..000000000 --- a/source/ap/vim/patches/7.2.279 +++ /dev/null @@ -1,120 +0,0 @@ -To: vim-dev@vim.org -Subject: Patch 7.2.279 -Fcc: outbox -From: Bram Moolenaar <Bram@moolenaar.net> -Mime-Version: 1.0 -Content-Type: text/plain; charset=UTF-8 -Content-Transfer-Encoding: 8bit ------------- - -Patch 7.2.279 -Problem: Invalid memory read with visual mode "r". (Dominique Pelle) -Solution: Make sure the cursor position is valid. Don't check the cursor - position but the position being used. And make sure we get the - right line. -Files: src/misc2.c, src/ops.c - - -*** ../vim-7.2.278/src/misc2.c 2009-05-16 21:06:36.000000000 +0200 ---- src/misc2.c 2009-11-03 16:43:10.000000000 +0100 -*************** -*** 156,162 **** - || ((ve_flags & VE_ONEMORE) && wcol < MAXCOL) - #endif - ; -! line = ml_get_curline(); - - if (wcol >= MAXCOL) - { ---- 156,162 ---- - || ((ve_flags & VE_ONEMORE) && wcol < MAXCOL) - #endif - ; -! line = ml_get_buf(curbuf, pos->lnum, FALSE); - - if (wcol >= MAXCOL) - { -*************** -*** 332,340 **** - #endif - - #ifdef FEAT_MBYTE -! /* prevent cursor from moving on the trail byte */ - if (has_mbyte) -! mb_adjust_cursor(); - #endif - - if (col < wcol) ---- 332,340 ---- - #endif - - #ifdef FEAT_MBYTE -! /* prevent from moving onto a trail byte */ - if (has_mbyte) -! mb_adjustpos(pos); - #endif - - if (col < wcol) -*** ../vim-7.2.278/src/ops.c 2009-09-30 15:15:33.000000000 +0200 ---- src/ops.c 2009-11-03 15:18:50.000000000 +0100 -*************** -*** 2020,2025 **** ---- 2020,2026 ---- - bd.is_MAX = (curwin->w_curswant == MAXCOL); - for ( ; curwin->w_cursor.lnum <= oap->end.lnum; ++curwin->w_cursor.lnum) - { -+ curwin->w_cursor.col = 0; /* make sure cursor position is valid */ - block_prep(oap, &bd, curwin->w_cursor.lnum, TRUE); - if (bd.textlen == 0 && (!virtual_op || bd.is_MAX)) - continue; /* nothing to replace */ -*************** -*** 2035,2040 **** ---- 2036,2042 ---- - { - pos_T vpos; - -+ vpos.lnum = curwin->w_cursor.lnum; - getvpos(&vpos, oap->start_vcol); - bd.startspaces += vpos.coladd; - n = bd.startspaces; -*************** -*** 2693,2703 **** - * initial coladd offset as part of "startspaces" */ - if (bd.is_short) - { -! linenr_T lnum = curwin->w_cursor.lnum; -! -! curwin->w_cursor.lnum = linenr; - (void)getvpos(&vpos, oap->start_vcol); -- curwin->w_cursor.lnum = lnum; - } - else - vpos.coladd = 0; ---- 2695,2702 ---- - * initial coladd offset as part of "startspaces" */ - if (bd.is_short) - { -! vpos.lnum = linenr; - (void)getvpos(&vpos, oap->start_vcol); - } - else - vpos.coladd = 0; -*** ../vim-7.2.278/src/version.c 2009-11-03 16:29:48.000000000 +0100 ---- src/version.c 2009-11-03 16:41:53.000000000 +0100 -*************** -*** 678,679 **** ---- 678,681 ---- - { /* Add new patch number below this line */ -+ /**/ -+ 279, - /**/ - --- -BEDEVERE: How do you know so much about swallows? -ARTHUR: Well you have to know these things when you're a king, you know. - "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD - - /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ -/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ -\\\ download, build and distribute -- http://www.A-A-P.org /// - \\\ help me help AIDS victims -- http://ICCF-Holland.org /// |